NM doesn't pass hostname to DHCP server

Bug #210095 reported by Darryl Grennan
12
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Fix Released
Undecided
Alexander Sack

Bug Description

Binary package hint: network-manager

Hardy isn't providing the hostname to DHCP out-of-the-box.

One day I noticed that when I ping my Hardy machine (wired) from a Windows machine with:
ping -a 192.168.1.104

It doesn't resolve the hostname of the Hardy system. I then tried the same on a Gutsy system and the hostname resolved perfectly.

These systems are both "out-of-the-box" and use DHCP to acquire an IP address from a Linksys router. Both systems tell me that I have the
hostname of "ubuntu" when I type "hostname" at the command prompt. It should be noted that both systems are running on the same hardware... Hardy is installed while Gutsy is on a LiveCD.

I looking through the /var/log/daemon.log on the Hardy machine:

Mar 31 19:27:41 ubuntu NetworkManager: <info> address 192.168.1.104
Mar 31 19:27:41 ubuntu NetworkManager: <info> netmask 255.255.255.0
Mar 31 19:27:41 ubuntu NetworkManager: <info> broadcast 192.168.1.255
Mar 31 19:27:41 ubuntu NetworkManager: <info> gateway 192.168.1.1
Mar 31 19:27:41 ubuntu NetworkManager: <info> nameserver 192.168.1.1
Mar 31 19:27:41 ubuntu NetworkManager: <info> domain name 'phub.net.cable.rogers.com'

I then looking through /var/log/daemon.log on the Gutsy machine:

Apr 1 00:48:10 ubuntu NetworkManager: <info> address 192.168.1.104
Apr 1 00:48:10 ubuntu NetworkManager: <info> netmask 255.255.255.0
Apr 1 00:48:10 ubuntu NetworkManager: <info> broadcast 192.168.1.255
Apr 1 00:48:10 ubuntu NetworkManager: <info> gateway 192.168.1.1
Apr 1 00:48:10 ubuntu NetworkManager: <info> nameserver 192.168.1.1
Apr 1 00:48:10 ubuntu NetworkManager: <info> hostname 'ubuntu'
Apr 1 00:48:10 ubuntu NetworkManager: <info> domain name 'phub.net.cable.rogers.com'

I did a tcpdump on Hardy while acquiring an IP address via DHCP:

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
23:49:58.128874 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:00.128883 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:00.412320 IP ubuntu.local.bootpc > DD-WRT.bootps: BOOTP/DHCP, Request from 00:07:e9:ec:70:28 (oui Unknown), length 300
23:50:00.419481 IP ubuntu.local.36815 > DD-WRT.domain: 25164+ PTR? 1.1.168.192.in-addr.arpa. (42)
23:50:00.434614 IP DD-WRT.domain > ubuntu.local.36815: 25164* 1/0/0 PTR[|domain]
23:50:02.128845 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:04.128853 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:04.440212 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:07:e9:ec:70:28 (oui Unknown), length 300
23:50:04.442248 IP DD-WRT.bootps > ubuntu.local.bootpc: BOOTP/DHCP, Reply, length 319
23:50:04.442381 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:07:e9:ec:70:28 (oui Unknown), length 300
23:50:04.448937 IP DD-WRT.bootps > ubuntu.local.bootpc: BOOTP/DHCP, Reply, length 319
23:50:04.467970 IP ubuntu.local > IGMP.MCAST.NET: igmp v3 report, 1 group record(s)
23:50:04.540072 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0*- [0q] 2/0/0 PTR[|domain]
23:50:04.556000 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 [3q] [5n][|domain]
23:50:04.567956 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _pgpkey-hkp._tcp.local. (40)
23:50:04.808026 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 [3q] [5n][|domain]
23:50:05.060036 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 [3q] [5n][|domain]
23:50:05.260165 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0*- [0q] 5/0/0[|domain]
23:50:05.419936 arp who-has DD-WRT tell ubuntu.local
23:50:05.420367 arp reply DD-WRT is-at 00:14:bf:9e:19:34 (oui Unknown)
23:50:05.420375 IP ubuntu.local.36815 > DD-WRT.domain: 25164+ PTR? 1.1.168.192.in-addr.arpa. (42)
23:50:05.422057 IP DD-WRT.domain > ubuntu.local.36815: 25164* 1/0/0 PTR[|domain]
23:50:05.422337 IP ubuntu.local.54964 > DD-WRT.domain: 18112+ PTR? 104.1.168.192.in-addr.arpa. (44)
23:50:05.424050 IP DD-WRT.domain > ubuntu.local.54964: 18112 NXDomain 0/0/0 (44)
23:50:05.424836 IP ubuntu.local.60970 > DD-WRT.domain: 16553+ PTR? 255.255.255.255.in-addr.arpa. (46)
23:50:05.426558 IP DD-WRT.domain > ubuntu.local.60970: 16553 NXDomain 0/0/0 (46)
23:50:05.515950 IP ubuntu.local > IGMP.MCAST.NET: igmp v3 report, 1 group record(s)
23:50:05.584037 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0*- [0q] 2/0/0 PTR[|domain]
23:50:05.599997 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 [3q] [5n][|domain]
23:50:05.611975 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 [2q] PTR (QM)? 255.255.255.255.in-addr.arpa.[|domain]
23:50:05.852062 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 [3q] [5n][|domain]
23:50:06.104019 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 [3q] [5n][|domain]
23:50:06.128804 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:06.304128 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0*- [0q] 5/0/0[|domain]
23:50:06.527960 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
23:50:06.571951 arp who-has DD-WRT tell ubuntu.local
23:50:06.572377 arp reply DD-WRT is-at 00:14:bf:9e:19:34 (oui Unknown)
23:50:06.572393 IP ubuntu.local.33345 > DD-WRT.domain: 61157+ A? ntp.ubuntu.com. (32)
23:50:06.573567 IP DD-WRT.domain > ubuntu.local.33345: 61157 1/0/0 A europium.canonical.com (48)
23:50:06.615996 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 [2q] PTR (QM)? 255.255.255.255.in-addr.arpa.[|domain]
23:50:06.624005 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0*- [0q] 2/0/0 PTR[|domain]
23:50:06.679384 IP ubuntu.local.ntp > europium.canonical.com.ntp: NTPv4, Client, length 48
23:50:06.793511 IP europium.canonical.com.ntp > ubuntu.local.ntp: NTPv4, Server, length 48
23:50:06.793655 IP ubuntu.local.ntp > europium.canonical.com.ntp: NTPv4, Client, length 48
23:50:06.907434 IP europium.canonical.com.ntp > ubuntu.local.ntp: NTPv4, Server, length 48
23:50:06.907517 IP ubuntu.local.ntp > europium.canonical.com.ntp: NTPv4, Client, length 48
23:50:07.021536 IP europium.canonical.com.ntp > ubuntu.local.ntp: NTPv4, Server, length 48
23:50:07.021647 IP ubuntu.local.ntp > europium.canonical.com.ntp: NTPv4, Client, length 48
23:50:07.083944 IP6 :: > ff02::1:ffec:7028: ICMP6, neighbor solicitation, who has fe80::207:e9ff:feec:7028, length 24
23:50:07.136172 IP europium.canonical.com.ntp > ubuntu.local.ntp: NTPv4, Server, length 48
23:50:07.344146 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0*- [0q] 5/0/0[|domain]
23:50:07.631944 IP ubuntu.local > IGMP.MCAST.NET: igmp v3 report, 1 group record(s)
23:50:08.083967 IP6 fe80::207:e9ff:feec:7028 > ip6-allrouters: ICMP6, router solicitation, length 16
23:50:08.128778 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:08.176021 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 [2q] [2n][|domain]
23:50:08.176179 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0*- [0q] 2/0/0 (Cache flush) HINFO, (63)
23:50:08.428036 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 [2q] [2n][|domain]
23:50:08.620012 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 [2q] PTR (QM)? 255.255.255.255.in-addr.arpa.[|domain]
23:50:08.664025 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0*- [0q] 4/0/0 PTR[|domain]
23:50:08.680018 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 [2q] [2n][|domain]
23:50:08.680163 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0*- [0q] 2/0/0 (Cache flush) HINFO, (63)
23:50:08.880089 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0*- [0q] 2/0/0[|domain]
23:50:09.384153 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0[|domain]
23:50:09.920083 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0*- [0q] 2/0/0[|domain]
23:50:10.127736 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:10.428226 IP ubuntu.local.54215 > DD-WRT.domain: 9766+ PTR? 0.0.0.0.in-addr.arpa. (38)
23:50:10.430009 IP DD-WRT.domain > ubuntu.local.54215: 9766 NXDomain 0/0/0 (38)
23:50:10.531985 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 0.0.0.0.in-addr.arpa. (38)
23:50:11.535992 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 0.0.0.0.in-addr.arpa. (38)
23:50:11.960099 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0*- [0q] 2/0/0[|domain]
23:50:12.083946 IP6 fe80::207:e9ff:feec:7028 > ip6-allrouters: ICMP6, router solicitation, length 16
23:50:12.126744 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:12.623994 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _pgpkey-hkp._tcp.local. (40)
23:50:13.539994 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 0.0.0.0.in-addr.arpa. (38)
23:50:14.125698 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:15.432289 IP ubuntu.local.43004 > DD-WRT.domain: 19070+ PTR? 22.0.0.224.in-addr.arpa. (41)
23:50:15.434095 IP DD-WRT.domain > ubuntu.local.43004: 19070 1/0/0 PTR[|domain]
23:50:15.434259 IP ubuntu.local.35310 > DD-WRT.domain: 36517+ PTR? 251.0.0.224.in-addr.arpa. (42)
23:50:15.436026 IP DD-WRT.domain > ubuntu.local.35310: 36517 NXDomain 0/0/0 (42)
23:50:15.539995 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 251.0.0.224.in-addr.arpa. (42)
23:50:15.759943 IP6 fe80::207:e9ff:feec:7028 > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
23:50:16.083951 IP6 fe80::207:e9ff:feec:7028 > ip6-allrouters: ICMP6, router solicitation, length 16
23:50:16.124700 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:16.543994 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 251.0.0.224.in-addr.arpa. (42)
23:50:18.124274 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:18.547992 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 251.0.0.224.in-addr.arpa. (42)
23:50:20.124271 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:20.440559 IP ubuntu.local.51556 > DD-WRT.domain: 42216+[|domain]
23:50:20.442493 IP DD-WRT.domain > ubuntu.local.51556: 42216 NXDomain[|domain]
23:50:20.442752 IP ubuntu.local.59549 > DD-WRT.domain: 2082+ PTR? 4.94.189.91.in-addr.arpa. (42)
23:50:20.444575 IP DD-WRT.domain > ubuntu.local.59549: 2082 1/0/0 PTR[|domain]
23:50:20.444870 IP ubuntu.local.43539 > DD-WRT.domain: 14547+[|domain]
23:50:20.446764 IP DD-WRT.domain > ubuntu.local.43539: 14547 NXDomain[|domain]
23:50:20.446922 IP ubuntu.local.58828 > DD-WRT.domain: 43194+[|domain]
23:50:20.448756 IP DD-WRT.domain > ubuntu.local.58828: 43194 NXDomain[|domain]
23:50:20.623998 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _pgpkey-hkp._tcp.local. (40)
23:50:22.124241 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:24.124228 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:25.434082 arp who-has ubuntu.local tell DD-WRT
23:50:25.434104 arp reply ubuntu.local is-at 00:07:e9:ec:70:28 (oui Unknown)
23:50:26.124203 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:28.124204 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:30.124165 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:32.124178 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:34.124137 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
23:50:36.124137 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43

I then did a tcpdump on Gutsy while acquiring an IP address via DHCP:

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
03:39:00.128212 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:02.128206 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:04.128288 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:05.511070 arp who-has DD-WRT tell ubuntu.phub.net.cable.rogers.com
03:39:05.511527 arp reply DD-WRT is-at 00:14:bf:9e:19:34 (oui Unknown)
03:39:05.511539 IP ubuntu.phub.net.cable.rogers.com.bootpc > DD-WRT.bootps: BOOTP/DHCP, Request from 00:07:e9:ec:70:28 (oui Unknown), length 300
03:39:05.511829 IP ubuntu.phub.net.cable.rogers.com.32769 > DD-WRT.domain: 38838+ PTR? 1.1.168.192.in-addr.arpa. (42)
03:39:05.513412 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32769: 38838* 1/0/0 PTR[|domain]
03:39:05.513625 IP ubuntu.phub.net.cable.rogers.com.32769 > DD-WRT.domain: 40332+ PTR? 104.1.168.192.in-addr.arpa. (44)
03:39:05.533615 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32769: 40332 NXDomain* 0/1/0 (141)
03:39:06.128301 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:08.128367 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:09.003221 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:07:e9:ec:70:28 (oui Unknown), length 300
03:39:09.005338 IP DD-WRT.bootps > ubuntu.phub.net.cable.rogers.com.bootpc: BOOTP/DHCP, Reply, length 319
03:39:09.005462 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:07:e9:ec:70:28 (oui Unknown), length 300
03:39:09.013947 IP DD-WRT.bootps > ubuntu.phub.net.cable.rogers.com.bootpc: BOOTP/DHCP, Reply, length 327
03:39:09.047081 IP ubuntu.phub.net.cable.rogers.com > IGMP.MCAST.NET: igmp v3 report, 1 group record(s)
03:39:09.075081 IP ubuntu.phub.net.cable.rogers.com > IGMP.MCAST.NET: igmp v3 report, 1 group record(s)
03:39:09.275151 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 [3q] [5n][|domain]
03:39:09.303149 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0*- [0q] 2/0/0 PTR[|domain]
03:39:09.527148 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 [3q] [5n][|domain]
03:39:09.779132 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 [3q] [5n][|domain]
03:39:09.979233 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0*- [0q] 5/0/0[|domain]
03:39:10.091075 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
03:39:10.128387 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:10.147067 arp who-has DD-WRT tell ubuntu.phub.net.cable.rogers.com
03:39:10.147478 arp reply DD-WRT is-at 00:14:bf:9e:19:34 (oui Unknown)
03:39:10.147490 IP ubuntu.phub.net.cable.rogers.com.32770 > DD-WRT.domain: 49398+ AAAA? ntp.ubuntu.com. (32)
03:39:10.148663 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32770: 49398 0/0/0 (32)
03:39:10.150899 IP ubuntu.phub.net.cable.rogers.com.32770 > DD-WRT.domain: 60569+[|domain]
03:39:10.151862 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32770: 60569 NXDomain 0/0/0 (58)
03:39:10.151941 IP ubuntu.phub.net.cable.rogers.com.32770 > DD-WRT.domain: 6197+ A? ntp.ubuntu.com. (32)
03:39:10.152859 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32770: 6197 1/0/0 A europium.canonical.com (48)
03:39:10.253286 IP ubuntu.phub.net.cable.rogers.com.ntp > europium.canonical.com.ntp: NTPv4, Client, length 48
03:39:10.371065 IP6 :: > ff02::1:ffec:7028: ICMP6, neighbor solicitation, who has fe80::207:e9ff:feec:7028, length 24
03:39:10.371998 IP europium.canonical.com.ntp > ubuntu.phub.net.cable.rogers.com.ntp: NTPv4, Server, length 48
03:39:10.372076 IP ubuntu.phub.net.cable.rogers.com.ntp > europium.canonical.com.ntp: NTPv4, Client, length 48
03:39:10.455156 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0*- [0q] 2/0/0 PTR[|domain]
03:39:10.485804 IP europium.canonical.com.ntp > ubuntu.phub.net.cable.rogers.com.ntp: NTPv4, Server, length 48
03:39:10.485837 IP ubuntu.phub.net.cable.rogers.com.ntp > europium.canonical.com.ntp: NTPv4, Client, length 48
03:39:10.511061 IP ubuntu.phub.net.cable.rogers.com.32769 > DD-WRT.domain: 40332+ PTR? 104.1.168.192.in-addr.arpa. (44)
03:39:10.512353 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32769: 40332* 1/0/0 (90)
03:39:10.512828 IP ubuntu.phub.net.cable.rogers.com.32770 > DD-WRT.domain: 45324+ PTR? 255.255.255.255.in-addr.arpa. (46)
03:39:10.528697 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32770: 45324 NXDomain* 0/1/0 (125)
03:39:10.603113 IP europium.canonical.com.ntp > ubuntu.phub.net.cable.rogers.com.ntp: NTPv4, Server, length 48
03:39:10.603175 IP ubuntu.phub.net.cable.rogers.com.ntp > europium.canonical.com.ntp: NTPv4, Client, length 48
03:39:10.631098 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 255.255.255.255.in-addr.arpa. (46)
03:39:10.716869 IP europium.canonical.com.ntp > ubuntu.phub.net.cable.rogers.com.ntp: NTPv4, Server, length 48
03:39:11.131251 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0*- [0q] 5/0/0[|domain]
03:39:11.371076 IP6 fe80::207:e9ff:feec:7028 > ip6-allrouters: ICMP6, router solicitation, length 16
03:39:11.575141 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 [2q] [2n][|domain]
03:39:11.635074 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 255.255.255.255.in-addr.arpa. (46)
03:39:11.827109 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 [2q] [2n][|domain]
03:39:11.827238 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0*- [0q] 2/0/0 (Cache flush) HINFO, (63)
03:39:12.079116 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 [2q] [2n][|domain]
03:39:12.127964 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:12.279250 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0*- [0q] 2/0/0[|domain]
03:39:12.607212 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0*- [0q] 5/0/0 PTR[|domain]
03:39:13.283268 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0[|domain]
03:39:13.431217 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0*- [0q] 1/0/0 (110)
03:39:13.635125 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 255.255.255.255.in-addr.arpa. (46)
03:39:13.883055 IP6 fe80::207:e9ff:feec:7028 > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
03:39:14.126999 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:15.146358 arp who-has ubuntu.phub.net.cable.rogers.com tell DD-WRT
03:39:15.146385 arp reply ubuntu.phub.net.cable.rogers.com is-at 00:07:e9:ec:70:28 (oui Unknown)
03:39:15.371070 IP6 fe80::207:e9ff:feec:7028 > ip6-allrouters: ICMP6, router solicitation, length 16
03:39:15.531364 IP ubuntu.phub.net.cable.rogers.com.32770 > DD-WRT.domain: 2029+ PTR? 0.0.0.0.in-addr.arpa. (38)
03:39:15.549066 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32770: 2029 NXDomain* 0/1/0 (117)
03:39:15.583195 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0*- [0q] 2/0/0[|domain]
03:39:15.651130 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 0.0.0.0.in-addr.arpa. (38)
03:39:15.767064 IP ubuntu.phub.net.cable.rogers.com > IGMP.MCAST.NET: igmp v3 report, 1 group record(s)
03:39:16.126072 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:16.655114 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 0.0.0.0.in-addr.arpa. (38)
03:39:18.125534 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:18.655128 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 0.0.0.0.in-addr.arpa. (38)
03:39:19.371071 IP6 fe80::207:e9ff:feec:7028 > ip6-allrouters: ICMP6, router solicitation, length 16
03:39:20.125609 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:20.551398 IP ubuntu.phub.net.cable.rogers.com.32770 > DD-WRT.domain: 46001+ PTR? 22.0.0.224.in-addr.arpa. (41)
03:39:20.552805 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32770: 46001 1/0/0 PTR[|domain]
03:39:20.552950 IP ubuntu.phub.net.cable.rogers.com.32770 > DD-WRT.domain: 32766+ PTR? 251.0.0.224.in-addr.arpa. (42)
03:39:20.569600 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32770: 32766 NXDomain* 0/1/0 (116)
03:39:20.671112 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 251.0.0.224.in-addr.arpa. (42)
03:39:21.675131 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 251.0.0.224.in-addr.arpa. (42)
03:39:22.125625 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:23.679125 IP ubuntu.phub.net.cable.rogers.com.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 251.0.0.224.in-addr.arpa. (42)
03:39:24.125711 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:25.571429 IP ubuntu.phub.net.cable.rogers.com.32770 > DD-WRT.domain: 50160+[|domain]
03:39:25.572963 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32770: 50160 NXDomain[|domain]
03:39:25.573256 IP ubuntu.phub.net.cable.rogers.com.32770 > DD-WRT.domain: 33665+ PTR? 4.94.189.91.in-addr.arpa. (42)
03:39:25.656700 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32770: 33665 1/3/3 PTR[|domain]
03:39:25.656975 IP ubuntu.phub.net.cable.rogers.com.32770 > DD-WRT.domain: 3902+[|domain]
03:39:25.658461 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32770: 3902 NXDomain[|domain]
03:39:25.658572 IP ubuntu.phub.net.cable.rogers.com.32770 > DD-WRT.domain: 57338+[|domain]
03:39:25.660040 IP DD-WRT.domain > ubuntu.phub.net.cable.rogers.com.32770: 57338 NXDomain[|domain]
03:39:26.125721 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:28.125800 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:30.125834 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:32.125904 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:34.125928 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:36.125996 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:38.126019 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:40.126088 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:42.126105 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:44.126173 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:46.126198 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:48.126272 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:50.126295 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:52.126370 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:54.126410 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:56.126458 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:39:58.126490 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:40:00.126559 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:40:02.126629 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:40:04.126669 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:40:06.126670 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43
03:40:08.126768 STP 802.1d, Config, Flags [none], bridge-id 8000.00:14:bf:9e:19:34.8001, length 43

I can't figure it out. The local machine isn't passing the hostname to the DHCP server and is therefore not named on the network.

Michael Rooney (mrooney)
Changed in network-manager:
status: New → Confirmed
Revision history for this message
Darryl Grennan (darryl-grennan) wrote :

Tried this on multiple computers with both LiveCD and installed systems. The resulting comparison between Gutsy and Hardy is the same as I indicated in the original report above. No hostname.

Changed in network-manager:
assignee: nobody → asac
Revision history for this message
Marius Marais (marius-fireflight) wrote :

This seems to happen only on new Hardy installs; upgrades preserve the required file. The missing piece is the line

send host-name "<hostname>";

in /etc/dhcp3/dhclient.conf -- EXACTLY as typed (include <, > & ").

Revision history for this message
zedic (zedic) wrote :

Upgraded to intrepid ibex Alpha 4 - Still Not Working...

I have confirmed the line send host-name "<hostname>"; in my /etc/dhcp3/dhclient.conf file. NetworkManager still doesn't send the hostname.

My company's DHCP sever won't give out a DHCP address unless the host name starts with a specific string. The DHCP client must send my host name.

**This Works**
ifconfig eth0 up
dhclient eth0

**Does NOT Work**
When I select Auto eth0 from the NetworkManager applet 0.7.0

While NetworkManager was trying to connect I did sudo cat /var/run/nm-dhclient-eth0.conf
  The file only contains # Created by NetworkManager

Revision history for this message
Sean Dague (sdague) wrote :

I've been fighting with this bug for the last few days once I finally realized that it was the cause of my system backups not happening. My dhcp server is keyed based on hostname, and in Hardy it completely seems to be ignoring the send host-name string in /etc/dhcp3/dhclient.conf. This means it comes up with a dynamic IP address instead of it's slotted one, and the backup server can't contact my laptop.

Revision history for this message
zedic (zedic) wrote :

I found one solution that worked for me in UBUNTU Intrepid Ibex Alpha 4. Just setup a new profile for the interface in NetworkManager and tell it what host name to use in the profile settings. It seems NetworkManager is looking for the settings in the interface's profile, but it's ignoring the settings in /etc/dhcp3/dhclient.conf.

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 210095] Re: NM doesn't pass hostname to DHCP server

On Sun, Aug 24, 2008 at 03:06:56AM -0000, zedic wrote:
> I found one solution that worked for me in UBUNTU Intrepid Ibex Alpha 4.
> Just setup a new profile for the interface in NetworkManager and tell it
> what host name to use in the profile settings. It seems NetworkManager
> is looking for the settings in the interface's profile, but it's
> ignoring the settings in /etc/dhcp3/dhclient.conf.
>

What do you mean by "interface" profile? is that in gnome network admin?

 - Alexander

Revision history for this message
zedic (zedic) wrote :

Okay, I was switching back and forth between Fedora 10 Alpha and Ubuntu Intrepid Ibex Alpha. I'm in Ubuntu now, and it's not working, so I guess that was in Fedora. In Fedora I believe I ran system-config-network and setup eth0. I believe in system-config-network there is an Advanced button where you can specify a specific DHCP host name for each profile. I'm trying to duplicate this in Ubuntu using gnome-network-admin but it doesn't seem to have this setting. I believe the network profiles in debian/ubuntu are kept in /etc/network/interfaces, but i'm not sure what to setup there.

I'm going to boot back into fedora and look at where system-config-network put that dhcp hostname setting.

Revision history for this message
zedic (zedic) wrote :

Okay in Fedora it looks like this configuration was setup in a user profile. I found an awesome article on Fedora Network Configuration that tells where all the different networking scripts are kept. http://openskill.info/infobox.php?ID=247 So the workaround for Fedora is to use a network profile in system-config-network.

I'm trying to find something similar for Ubuntu. I'm not sure where NetworkManager is getting the information for it's DHCP script or if it's possible to customize the DHCP script at all using NetworkManager. It would be nice if there were an advanced section to customize how dhclient is invoked. At lest in system-config-network you can specify the DHCP host name.

Revision history for this message
zedic (zedic) wrote :

Okay I have finally figured out the workaround for NetworkManager 0.7.0 in Ubuntu/Debian.

NetworkManager should be looking at "/etc/dhcp3/dhclient.conf", but it's not. It seems to be looking for /etc/dhclient-eth0.conf or /etc/dhclient-wlan0.conf.

For example if your interface is eth0 here is how you'd fix it.
    sudo cp /etc/dhcp3/dhclient.conf /etc/dhclient-eth0.conf

Revision history for this message
Alexander Sack (asac) wrote :

On Fri, Aug 29, 2008 at 02:07:36PM -0000, zedic wrote:
> Okay I have finally figured out the workaround for NetworkManager 0.7.0
> in Ubuntu/Debian.
>
> NetworkManager should be looking at "/etc/dhcp3/dhclient.conf", but
> it's not. It seems to be looking for /etc/dhclient-eth0.conf or /etc
> /dhclient-wlan0.conf.
>
>
> For example if your interface is eth0 here is how you'd fix it.
> sudo cp /etc/dhcp3/dhclient.conf /etc/dhclient-eth0.conf
>

could you please try to apply the following patch to the package?

=== modified file 'src/dhcp-manager/nm-dhcp-dhclient.c'
--- src/dhcp-manager/nm-dhcp-dhclient.c 2008-08-27 17:22:32 +0000
+++ src/dhcp-manager/nm-dhcp-dhclient.c 2008-09-06 23:02:08 +0000
@@ -27,16 +27,18 @@
 #include <stdlib.h>
 #include <errno.h>
 #include <unistd.h>
 #include <stdio.h>

 #include "nm-dhcp-manager.h"
 #include "nm-utils.h"

+#include <config.h>
+

 #define NM_DHCP_MANAGER_PID_FILENAME "dhclient"
 #define NM_DHCP_MANAGER_PID_FILE_EXT "pid"

 #define NM_DHCP_MANAGER_LEASE_FILENAME "dhclient"
 #define NM_DHCP_MANAGER_LEASE_FILE_EXT "lease"

 #define ACTION_SCRIPT_PATH LIBEXECDIR "/nm-dhcp-client.action"

 - Alexander

Revision history for this message
Alan Porter (alan.porter) wrote :

I can confirm the behavior described above. Intrepid-5

ifup/ifdown uses the settings in /etc/dhcp3/dhclient.conf.
NetworkManager does not.

Workaround:
ln -s dhcp3/dhclient.conf /etc/dhclient-wlan0.conf
ln -s dhcp3/dhclient.conf /etc/dhclient-eth0.conf

Under "edit connections", <connection-name>, "IPv4 settings",
leave DHCP Client ID empty. Otherwise, it will send this string
as the DHCP Client Identifier, and it will not send a hostname.

Alan Porter

Revision history for this message
Alexander Sack (asac) wrote :

/etc/dhcp3/dhclient.conf should be honoured in packages uploaded yesterday/today.

Changed in network-manager:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.