Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to configure where the system will look for the machine if I enter just a short domain name?

I work in a grid environment where the machines are many and spread across multiple domains, but they have unique naming, therefore let say skirit23 will only be found as skirit23.ics.muni.cz

I could configure the full mappings, but that would be a big file (and constantly changing one). Therefore I was thinking if I could configure the system to look into the ics.muni.cz then try ncbr.muni.cz then try fav.zcu.cz etc...

share|improve this question
up vote 4 down vote accepted

This is usually done by specifying search in /etc/resolv.conf (see man 5 resolv.conf).

Example (no more than six domains possible):

search ics.muni.cz ncbr.muni.cz fav.zcu.cz
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.