Linux DNS questions

just freshly installed redhat 9.0 on a server at work.


trying to ping other machines on the network is acting kind of funny though

i can ping host.domain.xxx... but i cannot just ping the host

we have a interal dns and the host i am trying to ping is registered

there is no problems on any other server on the network....

only on the server we just redid..

what would cause me not to be able to ping just the host of any other pc on the network?

eg. if i ping 123
ping: unknown host 123


if i ping 123.domain.xxx
ping works fine


any ideaS?
spyd4rAsked:
Who is Participating?
 
jlevieConnect With a Mentor Commented:
Your /etc/resolv.conf needs "search domain.xxx" for you to be able to resolve the IP of a machine using its short name.
0
 
pablouruguayCommented:
FYI and to add data about jlevie answer this is an example


[pablo@omega pablo]$ cat /etc/resolv.conf
search yourdomain.xxx
nameserver 123.123.123.123
[pablo@omega pablo]$
0
 
spyd4rAuthor Commented:
i added
domain company.xxx to the resolv.conf and it worked great guys!!

thanks

is there a difference between search and domain?
0
 
jlevieCommented:
Effectively, no.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.