[Bug 90388] Re: hostname supplied by dhcp server is not used
Another approach might be to set "/etc/hostname" to the value from DHCP server, and leave the current hostname alone. That would set the host name to correct value at next boot, without any clash with netowork manager behaviour or a running X [ and hopefully the name would not change between reboots :) ] As 9.10 enables parallel initscripts with upstart, having the network up before gdm(or kdm) can be hard, you may need to change ordering of initscripts, or it may be undesirable (startup "seems" slower). I cannot comment exactly about the situation as we are still at 8.04 LTS. simply change the line hostname $new_host_name; TO if [[ -n $new_host_name ]]; then echo "$new_host_name" > /etc/hostname ; fi -- hostname supplied by dhcp server is not used https://bugs.launchpad.net/bugs/90388 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 174299] Re: System hangs after reboot when using LDAP for authentication
*** This bug is a duplicate of bug 51315 *** https://bugs.launchpad.net/bugs/51315 ** This bug has been marked a duplicate of bug 51315 udevd: nss_ldap: failed to bind to LDAP server -- System hangs after reboot when using LDAP for authentication https://bugs.launchpad.net/bugs/174299 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libnss-ldap in ubuntu (via bug 51315). -- 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 90388] Re: hostname supplied by dhcp server is not used
Hi, dhclient.conf does not need modifications. On ubuntu, /etc/network/interfaces file has only loopback interface, This causes the eth0 interface to be down until glorious NetworkManager kicks in. Add the following lines to /etc/network/interfaces as a fix auto eth0 iface eth0 inet dhcp -- hostname supplied by dhcp server is not used https://bugs.launchpad.net/bugs/90388 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 90388] Re: hostname supplied by dhcp server is not used
We solved it by putting "hostname $new_host_name" into a file at /etc/dhcp3/dhclient-exit-hooks.d/ Thanks Thomas for the tip. default host-name "NO-NETWORK" did not work, when network was not available hostname was "none" (or blank, i'm not sure) as jason said. Booting the machine took ages, so we fleed to other solutions. Maybe as a fix, for this bug, a sethostname script can be included in dhclient-exit-hooks.d. It can be disabled by default like the debug script there. Be aware that, we had problems with default ubuntu installation(and loads of packages we install afterwards). "smart" NetworkManager made DCHP client ask for leases "after" gdm started, so no-X-running condition was not satisfied at that stage. We solved this by populating /etc/network/interfaces as usual. The default had only loopback interface there. Here is a script, checks for only a running gdm though. $new_host_name is set by dhclient before calling this; === /etc/dhcp3/dhclient-exit-hooks.d/sethostname == # This script sets the machine hostname to the hostname sent from the DHCP server. # Beware, if this happens while X is running, there will be problems, so the script checks # for a running gdm and does not change the hostname if it detects one. # If you want to enable this script, change SETHOSTNAME to "yes" SETHOSTNAME="yes" if [ "$SETHOSTNAME" = "yes" ]; then if test -r /var/run/gdm.pid && ps -ef | grep $(cat /var/run/gdm.pid) | grep -q /usr/sbin/gdm ; then echo "$(date): GDM running, not changing host name" >> /tmp/dhcp-sethostname.err ; else hostname $new_host_name; fi fi ** Attachment added: "sethostname" http://launchpadlibrarian.net/13221941/sethostname -- hostname supplied by dhcp server is not used https://bugs.launchpad.net/bugs/90388 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