Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.