Re: dig knows while ping doesn't

2011-02-17 Thread CamaleĆ³n
On Thu, 17 Feb 2011 03:59:55 +, T o n g wrote: > On Thu, 17 Feb 2011 03:20:58 +, 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 name

Re: dig knows while ping doesn't

2011-02-17 Thread Chris Davies
T o n g wrote: > $ dig maroon > maroon. 0 IN A 192.168.2.100 > $ ping maroon > ping: unknown host maroon > $ cat /etc/resolv.conf > search local All host lookups are modified by the hosts entry in /etc/nsswitch.conf. This should generally be "files dns" (o

Re: dig knows while ping doesn't

2011-02-17 Thread Andrei Popescu
On Jo, 17 feb 11, 03:20:58, T o n g wrote: > > FYI: > > $ cat /etc/resolv.conf > # for interface eth0 > search local 'local' is used for zeroconf, you might want to choose something else instead. > nameserver 192.168.2.100 > nameserver 192.168.2.1 > nameserver 192.168.2.100 Third

Re: dig knows while ping doesn't

2011-02-16 Thread Tixy
On Thu, 2011-02-17 at 03:59 +, T o n g wrote: > On Thu, 17 Feb 2011 03:20:58 +, 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 n

Re: dig knows while ping doesn't

2011-02-16 Thread T o n g
On Thu, 17 Feb 2011 03:20:58 +, 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 DNSm

dig knows while ping doesn't

2011-02-16 Thread T o n g
Hi, I can't explain the following myself: $ dig maroon ; <<>> DiG 9.7.1-P2 <<>> maroon ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34832 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;