SieuHoTro.Com
 
Home My Account Register Domain Transfer Domain Contact Us Whois Documentation
 
Forum Home Forum Home > Information Technology > HĐH Windows
  New Posts New Posts RSS Feed: Cấu Hình DNS Server Core bằng Command Line
  FAQ FAQ  Forum Search   Register Register  Login Login
If this is your first visit, be sure to check out theForum by clicking the link above. You may have toregister before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
ASG Vietnam

Cấu Hình DNS Server Core bằng Command Line

 Post Reply Post Reply
Author
admingroup View Drop Down
Admin
Admin

ad

Joined: 14 October 2005
Online Status: Offline
Posts: 508
  Quote admingroup Quote  Post ReplyReply Direct Link To This Post Topic: Cấu Hình DNS Server Core bằng Command Line
    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 để quản trị server core. Bài viết này nhằm giới thiệu command line để 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

đổ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 động lại máy

shutdown -r -t 0

Add role DNS

start /w ocsetup DNS-Server-Core-Role

xem lại DNS server đã start chưa

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

đăng 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

Sưu tầm
  Share Topic     
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.063 seconds.
[Free Express Edition]
Copyright ©2001-2009 Web Wiz
Support: raovatphanmem Support: Info hanoi software
Online(s): 106.
Visitors Counter:37470264, AVERAGE/day(3593) is: 10429
Begin count is day 02/16/2009

You are browsing this site with: CCBot/2.0 (https://commoncrawl.org/faq/)
Your IP address is: 54.90.109.231
The DNS lookup of the IP address is: 54.90.109.231
The method used to call the page: GET
The server's domain name: sieuhotro.com
The link
BaoKyNam Viêm gan b Thẩm mỹ viện Hoa Kỳ