Joined: 14 Mar 2005
|Posted: Thu Mar 13, 2014 7:02 am Post subject: net-dns/openresolv with net-dialup/ppp bad /etc/resolv.conf
|while I'm not actually allowing openresolv to update the /etc/resolv.conf file the file that is generated is still wrong. openresolv is writing an empty file.
my guess is that
/etc/ppp/ip-up.d/50-initd.sh is sending nothing to the openresolv invocation
|# Generated by net-scripts for interface ppp0
/etc/ppp/ip-up.d/40-dns.sh does write correct information but it doesn't stick (even after renaming it to be run after the 50-initd.sh)
I use dnsmasq and each time the pppoe session is started or restarts I need to manually force it to use a different file to reach tthe dns servers
|Mar 13 17:37:23 cascade dnsmasq: no servers found in /etc/dnsmasq-resolv.conf, will retry
Mar 13 17:37:45 cascade dnsmasq: reading /etc/ppp/resolv.conf
Mar 13 17:37:45 cascade dnsmasq: using nameserver 18.104.22.168#53
Mar 13 17:37:45 cascade dnsmasq: using nameserver 22.214.171.124#53
Mar 13 17:37:47 cascade dnsmasq: no servers found in /etc/dnsmasq-resolv.conf, will retry
thankfully while using usepeerdns and openresolv the ppp still writes the /etc/ppp/resolv.conf file so a simple touch gets it noted as the most recent source of dns servers by dnsmasq. But this is an UGLY hack. I would rather have the openresolv with pppd and netifrc work as intended: plug and go updating of the /etc/resolv.conf file.
has anyone else got ideas or insight on how to resolve this issue.