NM doesn't pass hostname to DHCP server
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.
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.
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:
23:50:00.128883 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
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.
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:
23:50:04.128853 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
23:50:04.440212 IP 0.0.0.0.bootpc > 255.255.
23:50:04.442248 IP DD-WRT.bootps > ubuntu.
23:50:04.442381 IP 0.0.0.0.bootpc > 255.255.
23:50:04.448937 IP DD-WRT.bootps > ubuntu.
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-
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.
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.
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.
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.
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:
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.
23:50:06.615996 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 [2q] PTR (QM)? 255.255.
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.
23:50:06.793511 IP europium.
23:50:06.793655 IP ubuntu.local.ntp > europium.
23:50:06.907434 IP europium.
23:50:06.907517 IP ubuntu.local.ntp > europium.
23:50:07.021536 IP europium.
23:50:07.021647 IP ubuntu.local.ntp > europium.
23:50:07.083944 IP6 :: > ff02::1:ffec:7028: ICMP6, neighbor solicitation, who has fe80::207:
23:50:07.136172 IP europium.
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:
23:50:08.128778 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
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.
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:
23:50:10.428226 IP ubuntu.local.54215 > DD-WRT.domain: 9766+ PTR? 0.0.0.0.
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.
23:50:11.535992 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 0.0.0.0.
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:
23:50:12.126744 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
23:50:12.623994 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _pgpkey-
23:50:13.539994 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 0.0.0.0.
23:50:14.125698 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
23:50:15.432289 IP ubuntu.local.43004 > DD-WRT.domain: 19070+ PTR? 22.0.0.
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.
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.
23:50:15.759943 IP6 fe80::207:
23:50:16.083951 IP6 fe80::207:
23:50:16.124700 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
23:50:16.543994 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 251.0.0.
23:50:18.124274 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
23:50:18.547992 IP ubuntu.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 251.0.0.
23:50:20.124271 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
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.
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-
23:50:22.124241 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
23:50:24.124228 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
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:
23:50:28.124204 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
23:50:30.124165 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
23:50:32.124178 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
23:50:34.124137 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
23:50:36.124137 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
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:
03:39:02.128206 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:04.128288 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:05.511070 arp who-has DD-WRT tell ubuntu.
03:39:05.511527 arp reply DD-WRT is-at 00:14:bf:9e:19:34 (oui Unknown)
03:39:05.511539 IP ubuntu.
03:39:05.511829 IP ubuntu.
03:39:05.513412 IP DD-WRT.domain > ubuntu.
03:39:05.513625 IP ubuntu.
03:39:05.533615 IP DD-WRT.domain > ubuntu.
03:39:06.128301 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:08.128367 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:09.003221 IP 0.0.0.0.bootpc > 255.255.
03:39:09.005338 IP DD-WRT.bootps > ubuntu.
03:39:09.005462 IP 0.0.0.0.bootpc > 255.255.
03:39:09.013947 IP DD-WRT.bootps > ubuntu.
03:39:09.047081 IP ubuntu.
03:39:09.075081 IP ubuntu.
03:39:09.275151 IP ubuntu.
03:39:09.303149 IP ubuntu.
03:39:09.527148 IP ubuntu.
03:39:09.779132 IP ubuntu.
03:39:09.979233 IP ubuntu.
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:
03:39:10.147067 arp who-has DD-WRT tell ubuntu.
03:39:10.147478 arp reply DD-WRT is-at 00:14:bf:9e:19:34 (oui Unknown)
03:39:10.147490 IP ubuntu.
03:39:10.148663 IP DD-WRT.domain > ubuntu.
03:39:10.150899 IP ubuntu.
03:39:10.151862 IP DD-WRT.domain > ubuntu.
03:39:10.151941 IP ubuntu.
03:39:10.152859 IP DD-WRT.domain > ubuntu.
03:39:10.253286 IP ubuntu.
03:39:10.371065 IP6 :: > ff02::1:ffec:7028: ICMP6, neighbor solicitation, who has fe80::207:
03:39:10.371998 IP europium.
03:39:10.372076 IP ubuntu.
03:39:10.455156 IP ubuntu.
03:39:10.485804 IP europium.
03:39:10.485837 IP ubuntu.
03:39:10.511061 IP ubuntu.
03:39:10.512353 IP DD-WRT.domain > ubuntu.
03:39:10.512828 IP ubuntu.
03:39:10.528697 IP DD-WRT.domain > ubuntu.
03:39:10.603113 IP europium.
03:39:10.603175 IP ubuntu.
03:39:10.631098 IP ubuntu.
03:39:10.716869 IP europium.
03:39:11.131251 IP ubuntu.
03:39:11.371076 IP6 fe80::207:
03:39:11.575141 IP ubuntu.
03:39:11.635074 IP ubuntu.
03:39:11.827109 IP ubuntu.
03:39:11.827238 IP ubuntu.
03:39:12.079116 IP ubuntu.
03:39:12.127964 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:12.279250 IP ubuntu.
03:39:12.607212 IP ubuntu.
03:39:13.283268 IP ubuntu.
03:39:13.431217 IP ubuntu.
03:39:13.635125 IP ubuntu.
03:39:13.883055 IP6 fe80::207:
03:39:14.126999 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:15.146358 arp who-has ubuntu.
03:39:15.146385 arp reply ubuntu.
03:39:15.371070 IP6 fe80::207:
03:39:15.531364 IP ubuntu.
03:39:15.549066 IP DD-WRT.domain > ubuntu.
03:39:15.583195 IP ubuntu.
03:39:15.651130 IP ubuntu.
03:39:15.767064 IP ubuntu.
03:39:16.126072 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:16.655114 IP ubuntu.
03:39:18.125534 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:18.655128 IP ubuntu.
03:39:19.371071 IP6 fe80::207:
03:39:20.125609 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:20.551398 IP ubuntu.
03:39:20.552805 IP DD-WRT.domain > ubuntu.
03:39:20.552950 IP ubuntu.
03:39:20.569600 IP DD-WRT.domain > ubuntu.
03:39:20.671112 IP ubuntu.
03:39:21.675131 IP ubuntu.
03:39:22.125625 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:23.679125 IP ubuntu.
03:39:24.125711 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:25.571429 IP ubuntu.
03:39:25.572963 IP DD-WRT.domain > ubuntu.
03:39:25.573256 IP ubuntu.
03:39:25.656700 IP DD-WRT.domain > ubuntu.
03:39:25.656975 IP ubuntu.
03:39:25.658461 IP DD-WRT.domain > ubuntu.
03:39:25.658572 IP ubuntu.
03:39:25.660040 IP DD-WRT.domain > ubuntu.
03:39:26.125721 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:28.125800 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:30.125834 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:32.125904 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:34.125928 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:36.125996 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:38.126019 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:40.126088 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:42.126105 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:44.126173 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:46.126198 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:48.126272 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:50.126295 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:52.126370 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:54.126410 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:56.126458 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:39:58.126490 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:40:00.126559 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:40:02.126629 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:40:04.126669 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:40:06.126670 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
03:40:08.126768 STP 802.1d, Config, Flags [none], bridge-id 8000.00:
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.
Changed in network-manager: | |
status: | New → Confirmed |
Changed in network-manager: | |
assignee: | nobody → asac |
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.