How to set hostnam alias

"Andrei Smirnov" <[email protected]> Fri, 2 Mar 2007 09:38:33 -0500
Newsgroups gmane.org.user-groups.linux.morlug
Message-ID <[email protected]>
--===============2045926935==
Content-Type: multipart/alternative; 
	boundary="----=_Part_97196_27284549.1172846313690"

------=_Part_97196_27284549.1172846313690
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I used to set the hostname alias like 'hostname' instead of '
hostname.domainname' in /etc/hosts, like

192.168.1.1  myhost.mydoamin  myhost

But what if the host is on DHCP and I don't know it's IP? I could not find
how Ican bypass writing
the IP in /etc/hosts. Anyone knows the answer?

Andrei

------=_Part_97196_27284549.1172846313690
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I used to set the hostname alias like &#39;hostname&#39; instead of &#39;hostname.domainname&#39; in /etc/hosts, like<br><br><a href="http://192.168.1.1">192.168.1.1</a>&nbsp; myhost.mydoamin&nbsp; myhost<br><br>But what if the host is on DHCP and I don&#39;t know it&#39;s IP? I could not find how Ican bypass writing 
<br>the IP in /etc/hosts. Anyone knows the answer?<br clear="all"><br>Andrei<br>

------=_Part_97196_27284549.1172846313690--

--===============2045926935==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Morlug mailing list
[email protected]
http://mailman.morlug.org/mailman/listinfo/morlug

--===============2045926935==--