In SSH, how to replace a full domain name with an alias
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
@protozorq /etc/resolv.conf file is where you enter the DNS name, you will have to use the way vimal suggested or use the alias as macemoneta suggested. what you did is not correct though it will give you the desire output.
"search Search list for host-name lookup.
The search list is normally determined from the local domain
name; by default, it contains only the local domain name. This
may be changed by listing the desired domain search path follow‐
ing the search keyword with spaces or tabs separating the names."
This is for intranet networks with multiple sub-domains and thus it
works great for me.
The actual reason I looked again into this forum is, that it does not work
with DHCP clients. Those need an entry like