• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

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?
  • 2
1 Solution
Your /etc/resolv.conf needs "search domain.xxx" for you to be able to resolve the IP of a machine using its short name.
FYI and to add data about jlevie answer this is an example

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


is there a difference between search and domain?
Effectively, no.
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.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now