View Single Post
  #2   (View Single Post)  
Old 20th August 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

It very normal

If I comment my hostname out
Code:
::1 localhost.utp.xnet localhost
127.0.0.1 localhost.utp.xnet localhost
::1 hercules.utp.xnet hercules
#127.0.0.1 hercules.utp.xnet hercules
A ping of hercules.utp.xnet generates the following DNS traffic
Code:
tcpdump: listening on re0, link-type EN10MB
21:28:12.805171 192.168.222.20.28847 > 192.168.222.10.53: 59717+ A? hercules.utp.xnet. (35)
21:28:12.806093 192.168.222.10.53 > 192.168.222.20.28847: 59717 1/0/0 A 192.168.222.20 (51)
Because I have a local nameserver at 192.168.222.10, which resolves my hostname, the ping succeeds
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.025 ms
64 bytes from 192.168.222.20: icmp_seq=1 ttl=255 time=0.020 ms
--- hercules.utp.xnet ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.020/0.022/0.025/0.005 ms
You probably have no local nameserver for the "my.domain" domain. In those cases you need an entry in "/etc/hosts".

What is the contents of your "/etc/resolv.conf"?
__________________
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