LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-13-2006, 03:20 PM   #1
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Rep: Reputation: 30
"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
 
Old 10-13-2006, 05:15 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Write your /etc/hosts file:
Code:
192.168.0.10 foo.domain.com foo
192.168.0.11 bar.domain.com bar
 ... etc ...
 
Old 10-13-2006, 08:16 PM   #3
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Error, some other host already uses address XXX.XXX.XXX.XXX" mwbb_support Linux - Networking 5 01-20-2014 08:59 AM
How to write a bash script to replace all "KH" to "K" in file ABC??? cqmyg5 Slackware 4 07-24-2007 09:00 AM
How to setup "NETWORK" in ifcfg-XXX file? stny Linux - Networking 1 04-06-2006 05:32 AM
"network is unreachable" but I can ping local machines MrGaiters Linux - Newbie 3 03-24-2006 02:38 AM
"host" ok, but "ping" can't find ip address hardigunawan Linux - Networking 2 05-16-2002 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration