You are not logged in.
I'm trying to get my hostname set by dnsmasq dhcp/dns. When I boot, I get an IP but the hostname doesn't get set. Running dhcpcd again or restarting netcfg.service assigns me the hostname.
Now that I'm writing this, I'd guess somewhere in the boot sequence something sets the hostname and it happens after the dhcp request? What should I do?
Last edited by tladuke (2012-11-01 19:17:40)
Offline
Here's some of my journal:
Nov 01 12:01:41 localhost kernel: e1000e 0000:00:19.0: irq 40 for MSI/MSI-X
Nov 01 12:01:41 localhost kernel: e1000e 0000:00:19.0: irq 40 for MSI/MSI-X
Nov 01 12:01:41 localhost kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Nov 01 12:01:43 localhost kernel: e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: R
Nov 01 12:01:43 localhost kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Nov 01 12:01:43 localhost dhcpcd[243]: version 5.6.2 starting
Nov 01 12:01:43 localhost dhcpcd[243]: eth0: sending IPv6 Router Solicitation
Nov 01 12:01:43 localhost dhcpcd[243]: eth0: sendmsg: Cannot assign requested address
Nov 01 12:01:43 localhost dhcpcd[243]: eth0: broadcasting for a lease
....[non relevant services]...
Nov 01 12:01:46 localhost dhcpcd[243]: eth0: offered 192.168.10.120 from 192.168.10.1
Nov 01 12:01:46 localhost dhcpcd[243]: eth0: acknowledged 192.168.10.120 from 192.168.10.1
Nov 01 12:01:46 localhost dhcpcd[243]: eth0: checking for 192.168.10.120
Nov 01 12:01:47 localhost dhcpcd[243]: eth0: sending IPv6 Router Solicitation
Nov 01 12:01:50 localhost dhcpcd[243]: eth0: leased 192.168.10.120 for 14400 seconds
Nov 01 12:01:50 IC-1 dhcpcd[243]: forked to background, child pid 275
Nov 01 12:01:50 localhost netcfg-daemon[154]: :: ethernet-dhcp up [done]
Nov 01 12:01:50 localhost systemd[1]: Started Netcfg multi-profile daemon.
Nov 01 12:01:50 localhost systemd[1]: Starting Network.
Nov 01 12:01:50 localhost systemd[1]: Reached target Network.See 5 lines from the bottom, the hostname briefly changes, then immediately changes back. IC-1 is the dns name assigned by dnsmasq.
I'm using netcfg.service. dhcpcd@ is disabled. I don't have ifplugd installed. There's no net-auto-wired service enabled.
I'm not sure what is calling dhcpcd in this log.
Maybe this should be in a different subforum...
Last edited by tladuke (2012-11-01 19:18:04)
Offline