[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dig knows while ping doesn't

On Thu, 2011-02-17 at 03:59 +0000, T o n g wrote:
> On Thu, 17 Feb 2011 03:20:58 +0000, T o n g wrote:
> > I can't explain the following myself: . . . 
> > 
> > -- dig knows the host maroon.
> > -- yet ping doesn't know the host maroon.
> - It actually happens to all of my local hosts short names, unless the 
> domain name is appended.
> - My DNS server is DNSmasq, the whole setup is blogged at
>   http://sfxpt.wordpress.com/2011/02/06/providing-dhcp-and-dns-services-
> with-dnsmasq/

For me...

tixy@computer2:~$ ping computer1
PING computer1.home ( 56(84) bytes of data.

so the domain 'home' is getting automatically added.

What does "cat /etc/resolv.conf" return? I have 

  domain home
  search home

I believe the 'search' entry is what makes it work for me. This file is
automatically generated by the dhcp client.

Tixy               ()  The ASCII Ribbon Campaign (www.asciiribbon.org)
                   /\  Against HTML e-mail and proprietary attachments

Reply to: