Print Page | Close Window

C?u H�nh DNS Server Core b?ng Command Line

Printed From: Sieu ho tro
Category: Information Technology
Forum Name: HĐH Windows
Forum Description: Hệ điều hành Windows
URL: http://sieuhotro.com/forum_posts.asp?TID=22697
Printed Date: 19 April 2024 at 16:41
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: C?u H�nh DNS Server Core b?ng Command Line
Posted By: administrator
Subject: C?u H�nh DNS Server Core b?ng Command Line
Date Posted: 27 February 2012 at 16:42
C?u H�nh DNS Server Core b?ng Command Line
C?u h�nh DNS Server Core

sau khi c�i xong server core c�c b?n c� th? d�ng remote administrator tool d? qu?n tr? server core. B�i vi?t n�y nh?m gi?i thi?u command line d? c�c b?n tham kh?o th�m

xem t�n card m?ng

Netsh interface ip show interface

khai b�o ip

Netsh interface ip set address "local area connetion" static 192.168.15.2 255.255.255.0 192.168.15.200 1

khai b�o DNS

Netsh interface ip set dns "local area connetion" static 192.168.15.2

d?i t�n PCname

netdom renamecomputer %computername% /newname:PCNN /reboot:0

khai b�o DNS sufix

netdom computername pcNN /add:pcnn.nhatnghe.info
netdom computername pcnn /makeprimary:pcnn.nhatnghe.info

kh?i d?ng l?i m�y

shutdown -r -t 0

Add role DNS

start /w ocsetup DNS-Server-Core-Role

xem l?i DNS server d� start chua

Net start

t?o forward lookup zone l� Nhatnghe.info

dnscmd pcnn /zoneadd nhatnghe.info /primary

t?o reverse lookup zone l� 192.168.15

dnscmd pcnn /zoneadd 15.168.192.in-addr.arpa /primary

cho ph�p forward lookup zone allow update

dnscmd pcnn /config nhatnghe.info /allowupdate 1

cho ph�p reverse lookup zone allow update

dnscmd pcnn /config 15.168.192.zonein-addr.arpa /allowupdate 1

dang k� DNS (t?o pointer)

ipconfig /registerdns

test DNS

NSlookup
exit

t?o alias l� www ch? v? m�y pcnn.nhatnghe.info

dnscmd pcnn /recordadd nhatnghe.info www Cname pcnn.nhatnghe.info

t?o alias l� mail ch? v? m�y pcnn.nhatnghe.info

dnscmd pcnn /recordadd nhatnghe.info mail Cname pcnn.nhatnghe.info

t?o MX record

dnscmd pcnn /recordadd nhatnghe.info . MX 10 pcnn.nhatnghe.info

forwarder DNS ISP

dnscmd pcnn /resetforwarders 203.162.4.191

conditional forwarders (forwarder qua domain kh�c)

dnscmd pcnn /zoneadd ctl.net /forwarder 192.168.15.3
dnscmd pcnn /zoneadd tnt.com /forwarder 192.168.15.4

test l?i DNS
Nslookup

Suu t?m



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net