[LUNI] nslookup works, ping does not
Frank Pittel
fwp at deepthought.com
Tue Apr 11 23:55:54 CDT 2006
Does the "hosts" entry in your nsswitch.conf file have a "dns" entry to have
the resolver use dns?
Frank
On Tue, Apr 11, 2006 at 10:37:17PM -0500, Jay Strauss wrote:
> Hi,
>
> I have a local dnsmasq server running resolving my local machines. On my
> ubuntu laptop & my M$ I can't ping by hostname, but both can do an nslookup,
> and more oddly I can ping the hostname if I add a "." on the end. On my
> other random linux boxes everything works correctly.
>
> - I've been googling but can find anything helpful
> - I've compared the working to unworking /etc/network/interfaces
> and /etc/resolv.conf - no differences
>
> I'm out of ideas, suggestions would be welcomed
> Thanks
> Jay
>
> On my ubuntu laptop I get:
>
> jstrauss at ubuntu:~$ ping pt
> ping: unknown host pt
> jstrauss at ubuntu:~$ nslookup pt
> Server: 192.168.1.1
> Address: 192.168.1.1#53
>
> Name: pt
> Address: 192.168.1.78
>
> jstrauss at ubuntu:~$ ping -c 1 pt.
> PING pt (192.168.1.78) 56(84) bytes of data.
> 64 bytes from platinum (192.168.1.78): icmp_seq=1 ttl=64 time=2.89 ms
>
> --- pt ping statistics ---
> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> rtt min/avg/max/mdev = 2.890/2.890/2.890/0.000 ms
> --
> Linux Users Of Northern Illinois - Technical Discussion
> http://luni.org/mailman/listinfo/luni
More information about the luni
mailing list