Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56317 - Automatically setting hostname via DHCP or DNS
Summary: Automatically setting hostname via DHCP or DNS
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Handbook (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Xavier Neys (RETIRED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-07 04:41 UTC by Estienne Swart
Modified: 2004-07-09 04:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Estienne Swart 2004-07-07 04:41:02 UTC
In the Gentoo Handbook section "Configuring your Network" (http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=3), there is no mention of automatically assigning a hostname via DNS (with a reverse lookup?) or DHCP. This seems like a very useful thing to document for anyone installing Gentoo on more than one machine...

It would be very useful to show how hostnames can automatically be obtained by DHCP (assuming that the server has been configured correctly) by adding the appropriate flags for dhcpcd: 

dhcpcd_eth0="-HD"

to /etc/conf.d/net

It would also be nice if there was some clarification about what name comes from where (e.g. if one has a hostname in /etc/hostname, why is it not the same as the hostname assigned by the above-mentioned DHCP automation).

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Xavier Neys (RETIRED) gentoo-dev 2004-07-07 10:41:33 UTC
That would rather be at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=8#doc_chap2

I don't mind adding an extra example in code listing 14. with -HD along with a *very* short explanation.

I'm afraid anything else, dhcp/dns configuration e.g., is beyond the scope of the current handbook. Besides, if you already know how to configure & use your DNS server, you should be able to handle it IMHO.
Comment 2 Xavier Neys (RETIRED) gentoo-dev 2004-07-09 04:26:52 UTC
Fixed. Thanks for reporting.

I also threw in a note about -N because so many users hit f.g.o wondering what overwrote their /etc/ntp.conf file.
dhcpcd -N is the answer.