View Single Post
Old 6th December 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

Yes, you can have a 'private' zone in your local network. I use 'utp.xnet' for my private domain
Code:
$ dig -t ns utp.xnet @192.168.222.11

; <<>> DiG 9.3.4 <<>> -t ns utp.xnet @192.168.222.11
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54374
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;utp.xnet.                      IN      NS

;; ANSWER SECTION:
utp.xnet.               259200  IN      NS      ns1.utp.xnet.

;; ADDITIONAL SECTION:
ns1.utp.xnet.           259200  IN      A       192.168.222.11

;; Query time: 2 msec
;; SERVER: 192.168.222.11#53(192.168.222.11)
;; WHEN: Sun Dec  6 12:20:20 2009
;; MSG SIZE  rcvd: 60
So I can refer to hosts by name
Code:
$ ping -c2 hercules.utp.xnet
PING hercules.utp.xnet (192.168.222.20): 56 data bytes
64 bytes from 192.168.222.20: icmp_seq=0 ttl=255 time=0.024 ms
64 bytes from 192.168.222.20: icmp_seq=1 ttl=255 time=0.016 ms
--- hercules.utp.xnet ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.016/0.020/0.024/0.004 ms
A reverse lookup:
Code:
$ dig -x 192.168.222.88 

; <<>> DiG 9.3.4 <<>> -x 192.168.222.88
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33621
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

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

;; ANSWER SECTION:
88.222.168.192.in-addr.arpa. 604800 IN  PTR     xenophanes.utp.xnet.

;; Query time: 3 msec
;; SERVER: 192.168.222.10#53(192.168.222.10)
;; WHEN: Sun Dec  6 12:23:15 2009
;; MSG SIZE  rcvd: 78
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote