Re: Machine Hostname
- From: "Roberto C. Sanchez" <roberto@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Apr 2006 06:27:51 -0400
Amir Saad wrote:
I created a boot image and it works correctly except when setting the hostname, I want it to read the name from the DNS then to use it. How can I do that? I created the image on Debian
Thanks.
I am not sure what you are asking. Are you obtaining an address from
DHCP? If so, the DHCP server needs to send the hostname. As far as I
know, there is no way to get your own hostname out of DNS during boot.
After booting, however, you could have a cron job that does a reverse
lookup on your IP and then sets the hostname accordingly.
-Roberto
--
Roberto C. Sanchez
http://familiasanchez.net/~roberto
Attachment:
signature.asc
Description: OpenPGP digital signature
- References:
- Machine Hostname
- From: Amir Saad
- Machine Hostname
- Prev by Date: Re: real media player is not working
- Next by Date: [OT] Recipe for killing a Debian threads that won't die [Was: Re: [OT] Recipe for a Debian thread that won't die]
- Previous by thread: Machine Hostname
- Next by thread: RE: Machine Hostname
- Index(es):