LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   "ping xxx.abc.local" ok but "ping xxx" fail (https://www.linuxquestions.org/questions/linux-networking-3/ping-xxx-abc-local-ok-but-ping-xxx-fail-492182/)

powah 10-13-2006 03:20 PM

"ping xxx.abc.local" ok but "ping xxx" fail
 
"ping xxx.abc.local" ok but "ping xxx" fail where xxx is the computer name.
How to fix this problem?

Existing file is:
# cat resolv.conf
domain powah.com
nameserver 172.20.10.20
nameserver 172.16.2.14
nameserver 172.20.10.26
nameserver 172.20.10.27
search abc.local
search powah.com

bulliver 10-13-2006 05:15 PM

Write your /etc/hosts file:
Code:

192.168.0.10 foo.domain.com foo
192.168.0.11 bar.domain.com bar
 ... etc ...


scowles 10-13-2006 08:16 PM

1) Unless you have modifed resolv.h and recompiled, then the max nameservers that can be specified in resolv.conf is three

2) The "domain" and "search" options are mutually exclusive. So use one or the other. Also, you listed the search option twice instead of listing multiple domains separated by spaces or tab on one "search" line.

See: man resolv.conf


All times are GMT -5. The time now is 06:03 AM.