[Bug 10239] Re: dhcp3-client: Does not send hostname to server by default
** Changed in: dhcp3 (Debian) Status: Confirmed = Fix Released -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in Ubuntu. https://bugs.launchpad.net/bugs/10239 Title: dhcp3-client: Does not send hostname to server by default To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dhcp3/+bug/10239/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 10239] Re: dhcp3-client: Does not send hostname to server by default
i don't know toomuch about these things and am completely new to ubuntu...but...i have been hacked for 4 years and, among other things am on a network controlled by others who set permissions, global policy etc and hide themselves effectively..so nothing new here -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in Ubuntu. https://bugs.launchpad.net/bugs/10239 Title: dhcp3-client: Does not send hostname to server by default To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dhcp3/+bug/10239/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 10239] Re: dhcp3-client: Does not send hostname to server by default
Wow. A 6+ year old bug in basic network connectivity. My home router runs DD-WRT with DNSMasq enabled which ...is designed to provide DNS and, optionally, DHCP, to a small network. It can serve the names of local machines which are not in the global DNS. But DNSMasq was unable to resolve a hostname for my Ubuntu 10.10 machine, thus other machines failed to locate it. This broke BackupPC for me as it could never resolve the hostname and gave errors like this: Error: Can't find IP address for [myHostname] [myHostname] is a DHCP host, and I don't know its IP address. I checked the netbios name of [myIP_Address], and found that that machine is not [myHostname]. Until I see [myHostname] at a particular DHCP address, you can only start this request from the client machine itself. I checked /etc/dhcp3/dhclient.conf and it already contained: send host-name hostname; However, as mentioned in comment #47, adding the following after that line made it work for me: send fqdn.server-update on Now my router knows my hostname and I can ping it (by hostname) from other machines. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in ubuntu. https://bugs.launchpad.net/bugs/10239 Title: dhcp3-client: Does not send hostname to server by default -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 10239] Re: dhcp3-client: Does not send hostname to server by default
Dec. 2010; bug is still present in Mint Linux Debian Edition. A nice way to fix this would be to modify dhclient, adding a function to its Data Expression parser called, something like, hostname that would simply return the client's hostname. Or, solve this and the whole class of related problems in one blow by adding a more generic function called shell, which would take a shell command string as its argument and return the string output to stdout as its result. With such a shell function, one could simply add the following to the dhclient.conf file: send host-name = shell hostname -s #the -s suppresses any domain name Such functions would be straightforward extensions. See man page dhcp- eval.5 for details on Data Expressions. I don't understand the earlier comment that the program doesn't work this way But, given that the upstream maintainers do not seem to be readily accepting patches, I have resorted to the simple hack of rewriting the dhclient.conf file just before dhclient starts. # mv /etc/dhcp/dhclient.conf /etc/dhcp/dhclient.base # mv /sbin/dhclient /sbin/dhclient.original # save the attached script to /sbin/dhclient # chmod +x /sbin/dhclient After you do this, just remember that dhclient.conf will be rewritten. Make any configuration changes in dhclient.base instead. If the upstream devs indicate that they are interested in accepting the Data Function patches described above, I would be willing to submit them. However, I won't investigate further until the basic idea is discussed and accepted. Otherwise, the effort is just wasting everyone's time. (mostly mine :-) ** Attachment added: Script automate sending current hostname by rewriting dhclient.conf https://bugs.launchpad.net/debian/+source/dhcp3/+bug/10239/+attachment/1765383/+files/dhclient -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in ubuntu. https://bugs.launchpad.net/bugs/10239 Title: dhcp3-client: Does not send hostname to server by default -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 10239] Re: dhcp3-client: Does not send hostname to server by default
Sept. 2010; bug is still present, I still have to comment the send host-name hostname; for Network Manager to send the string entered into the 'DHCP Client ID' field. Otherwise it simply gets ignored. -- dhcp3-client: Does not send hostname to server by default https://bugs.launchpad.net/bugs/10239 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 10239] Re: dhcp3-client: Does not send hostname to server by default
I still have this problem even though it says it is fixed. ** Description changed: -- dhcp3-client: Does not send hostname to server by default https://bugs.launchpad.net/bugs/10239 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 10239] Re: dhcp3-client: Does not send hostname to server by default
** Changed in: dhcp3 (Ubuntu) Status: Fix Released = Fix Committed ** Changed in: dhcp3 (Ubuntu) Status: Fix Committed = Fix Released -- dhcp3-client: Does not send hostname to server by default https://bugs.launchpad.net/bugs/10239 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 10239] Re: dhcp3-client: Does not send hostname to server by default
I'm not entirely sure if this is the same bug, I can always open a new one, but my University wired network requires me to send my student ID (e.g. an arbitrary string) as hostname. Uni laptops have their hostname setup as heir student ID. Of course, I could just setup my hostname as my student ID but why if there's a proper way of doing this. With ISC dhcpcd I simply supplied the -h parameter and it worked. Network manager since then has under the DHCP Client ID field under IPV4 settings for a wired connection. However this does not seem to get passed to dhclient, as send host-name hostname; from the config file gets used and always sent. E.g. the DHCP Client ID field doesn't do anything. A workaround is to go into /etc/dhcp3/dhclient.conf and comment out the send host-name hostname ; part. Now network manager nicely passes along the host- name from the DHCP Client ID field and everything works. So I suppose, 'a' proper fix would be to set the DHCP Client ID field to hostname default and pass that to dhclient and not have a hardcoded override in dhclient.conf. I also belive, and I do not know the inner workings of network-manager, but this should be in the daemon bit of it, and not only in the GUI bit. oliver -- dhcp3-client: Does not send hostname to server by default https://bugs.launchpad.net/bugs/10239 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 10239] Re: dhcp3-client: Does not send hostname to server by default
Thanks for your quick response Mat. The default was the first I've tried. I thought I had tried everything, but I overlooked post #23 about the FRITZ!Box that I have as well. The solution mentioned there works for me too !! I don't understand the logic behind it, the FRITZ!Box already knows the MAC address (from the nic itself, I guess). Upgrading the firmware did not change this behaviour, but it does now enable you to enter the hostname yourself. -- dhcp3-client: Does not send hostname to server by default https://bugs.launchpad.net/bugs/10239 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 10239] Re: dhcp3-client: Does not send hostname to server by default
A week ago I installed Xubuntu 9.04 Jaunty Jackalope on my old Pentium Pro machine and this bug still seems to exists. Spend days with trying to solve this, found many posts about it, none where recent though. I have installed all the available updates, still the problem persists. -- dhcp3-client: Does not send hostname to server by default https://bugs.launchpad.net/bugs/10239 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 10239] Re: dhcp3-client: Does not send hostname to server by default
On Sat, Oct 24, 2009 at 07:08:35PM -, Adrie wrote: A week ago I installed Xubuntu 9.04 Jaunty Jackalope on my old Pentium Pro machine and this bug still seems to exists. Spend days with trying to solve this, found many posts about it, none where recent though. I have installed all the available updates, still the problem persists. Works for me here; check that you have: send host-name hostname; in /etc/dhcp3/dhclient.conf (this is in the default configuration file) -- - mdz -- dhcp3-client: Does not send hostname to server by default https://bugs.launchpad.net/bugs/10239 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 10239] Re: dhcp3-client: Does not send hostname to server by default
** Changed in: dhcp3 (Debian) Status: Fix Released = Confirmed -- dhcp3-client: Does not send hostname to server by default https://bugs.launchpad.net/bugs/10239 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs