Set up a Non Authoritative DNS Server on a local LAN
Mac OS X 10.3 Panther Server & Client pt2

 

~ Testing DNS Servers ~

To test your Non Authoritative DNS Server on your local Mac OS X LAN. First .....

Open Terminal

At prompt type: dig router.example.com

You should get something similar to this

Welcome to Darwin!

ns:~ spliffsmoker$ dig router.example.com

; <<>> DiG 9.2.2 <<>> router.example.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13322
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;router.example.com. IN A

;; ANSWER SECTION:
router.example.com. 86400 IN A 10.0.1.1

;; AUTHORITY SECTION:
example.com. 86400 IN NS ns.example.com.

;; ADDITIONAL SECTION:
ns.example.com. 86400 IN A 10.0.1.2

;; Query time: 29 msec
;; SERVER: 10.0.1.2#53(10.0.1.2)
;; WHEN: Tue Nov 4 00:44:14 2003
;; MSG SIZE rcvd: 84


~ DNS Server : Get the reverse PTR record ~

At prompt type: dig -x 10.0.1.1

You should get something similar to this

Welcome to Darwin!

ns:~ spliffsmoker $ dig -x 10.0.1.1

; <<>> DiG 9.2.2 <<>> -x 10.0.1.1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29363
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;1.1.0.10.in-addr.arpa. IN PTR

;; ANSWER SECTION:
1.1.0.10.in-addr.arpa. 86400 IN PTR router.example.com.

;; AUTHORITY SECTION:
1.0.10.in-addr.arpa. 86400 IN NS ns.example.com.

;; ADDITIONAL SECTION:
ns.example.com. 86400 IN A 10.0.1.2

;; Query time: 23 msec
;; SERVER: 10.0.1.2#53(10.0.1.2)
;; WHEN: Tue Nov 4 00:50:10 2003
;; MSG SIZE rcvd: 103


~ DNS Server : Checking for MX records ~

At prompt type: dig example.com mx

Again you should get something similar to this

Welcome to Darwin!

ns:~ spliffsmoker $ dig example.com mx

; <<>> DiG 9.2.2 <<>> example.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36728
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;example.com. IN MX

;; ANSWER SECTION:
example.com. 86400 IN MX 5 mail.example.com.

;; AUTHORITY SECTION:
example.com. 86400 IN NS ns.example.com.

;; ADDITIONAL SECTION:
ns.example.com. 86400 IN A 10.0.1.2

;; Query time: 24 msec
;; SERVER: 10.0.1.2#53(10.0.1.2)
;; WHEN: Sat Nov 15 23:55:40 2003
;; MSG SIZE rcvd: 79


~ DNS Server : Test a external site ~

At prompt type: dig apple.com

You should get something similar to this

Welcome to Darwin!

ns:~ spliffsmoker $ dig apple.com

; <<>> DiG 9.2.2 <<>> apple.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34143
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 0

;; QUESTION SECTION:
;apple.com. IN A

;; ANSWER SECTION:
apple.com. 3600 IN A 17.254.3.183

;; AUTHORITY SECTION:
apple.com. 172800 IN NS nserver.apple.com.
apple.com. 172800 IN NS nserver2.apple.com.
apple.com. 172800 IN NS nserver3.apple.com.
apple.com. 172800 IN NS nserver4.apple.com.
apple.com. 172800 IN NS nserver.asia.apple.com.
apple.com. 172800 IN NS nserver.euro.apple.com.

;; Query time: 569 msec
;; SERVER: 10.0.1.2#53(10.0.1.2)
;; WHEN: Tue Nov 4 00:55:58 2003
;; MSG SIZE rcvd: 188


~ One Last Point ~

For web browsing / file services you just need to put the host name in

for web browsing

http://host4/ will take you the computer with the IP Address of 10.0.1.4

and for file services

afp://host4 will take you the Mac with the IP Address of 10.0.1.4

 

Home
Connect a D-Link 300G+ to Airport
Free IP Reporter
DNS Server: Mac OS X 10.2
DNS Server: Mac OS X 10.3
Authoritative DNS Server Mac OS X 10.3
Configure Netgear DG834G & Static IP's
Netgear & Address Reservation DHCP
Mac Daddy IT
DNS Report
Meta Tag Analyser
HTML Validator
Mac Update
Version Tracker
Domain Name Services