Linux DNS: expand name with a choosen domain

user190035 asked:

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


My answer:

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


View the full question and any other answers on Server Fault.

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