Re: inconsistent DNS results - ping vs dig vs nslookup

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



--On Wednesday, June 22, 2011 03:30:18 PM -0500 Robert Henrichs
<centos@xxxxxxxxxxxx> wrote:

> root@pbx:~ $ cat /etc/resolv.conf
> search isp.com
>    nameserver 8.8.4.4
>    nameserver 216.146.36.36
>    nameserver 8.8.8.8

Get rid of the leading whitespace if it actually exists in that file.
It shouldn't make a difference, but who knows.

BTW, you don't need to reboot.

> root@pbx:~ $ ping www.yahoo.com
> ping: unknown host www.yahoo.com

Try a trailing dot on the FQDN and see if it makes a difference.
It shouldn't with ping, but should always be used with dig:

   ping www.yahoo.com.

The trailing dot changes the lookup algorithm a bit.

You could also do a
    RES_OPTIONS="debug"
    export RES_OPTIONS
    ping www.yahoo.com.
to try to figure things out.

Devin

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux