DebianThis forum is for the discussion of Debian Linux.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian 3, 31r0, 4, slackware, DSL, RH8.0/7, MDK9/10, et al. Vista is cute but not Linux - I tried
Posts: 70
Rep:
dhcp_hostname in Debian Woody R1 where?
Trying to get aquianted with Debian (woody-R1) and am stuck with the DHCP_HOSTNAME option.
My servers are configured to deny access to hosts not registered with dns and this machine gets it's IP from dhcp so can't simply update a host file somewhere.
For some reason, this machine isn't updating the dns server. In RedHat et al, simply putting the DHCP_HOSTNAME="bla bla" option in the ifcfg-ethX works but Debian doesn't use the same format to confgure the interface.
The file you must edit is /etc/network/interfaces. The file has a manpage: basically you just need to add a line
hostname fill_in_your_hostname
in /etc/network/interfaces
Distribution: Debian 3, 31r0, 4, slackware, DSL, RH8.0/7, MDK9/10, et al. Vista is cute but not Linux - I tried
Posts: 70
Original Poster
Rep:
Thanks mate. I tried that and had no luck. I even went into the options file (same dir) with the same result.
What I ended up doing was modifying the /etc/dhcp.conf file adding
send host-name "my_hostname";
I found this file in shear desperation used the man pages. RedHat, Mandrake and even Slackware don't use this file but use the configuration scripts for the interface.
It all worked since then. Almost all of the information I found trawling the net suggested the same as you did. Have I got some sort of funny install or something?
Thanks for your help. Hopefully someone else will find this post usefull if nothing else.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.