Linux DNS: expand name with a choosen domain

user190035 asked:

I need to expand a random name with a choosen domain. Example: nslookup abc 127.0.0.1 -> should look for abc.domainchoosen.dom.

Suggestions?

My answer:


Add the desired domain to the search line in /etc/resolv.conf. For example:

search example.com

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.