udhcpc can’t pick hostname→ip table from DHCP server
I have two machines with gentoo. One of them is server and runs dnsmasq, which configuration file contain lines like
Code:
address=/binhost/192.168.0.2 The second one is client, it uses "/bin/busybox udhcpc" as dhcp client. The problem is client cannot find hostnames from dnsmasq config until the interface is restarted. It never works just from the start. Portage cannot find named host to download binary packages from, and traceroute shows no hostname Code:
# /bin/busybox traceroute 192.168.0.1 Code:
# /bin/busybox traceroute 192.168.0.1 |
Refer
https://wiki.gentoo.org/wiki/Dnsmasq It seems like dnsmasq configuration file is not set correctly. |
It wasn’t dnsmasq. It’s the directive dns_servers_eth0 from /etc/conf.d/net that was messing the resolv.conf. The services eth0 and wlan0 are set to be running in parallel in runlevel boot; wlan’s getting up has a lag when is calls wpa_supplicant, and in that time eth0 was rewriting resolv.conf.
|
All times are GMT -5. The time now is 12:05 AM. |