dekeonus n00b
Joined: 14 Mar 2005 Posts: 9
|
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
Code: | # Generated by net-scripts for interface ppp0
domain domain.tld
search domain.tld
nameserver 127.0.0.1 |
/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
Code: | Mar 13 17:37:23 cascade dnsmasq[2621]: no servers found in /etc/dnsmasq-resolv.conf, will retry
Mar 13 17:37:45 cascade dnsmasq[2621]: reading /etc/ppp/resolv.conf
Mar 13 17:37:45 cascade dnsmasq[2621]: using nameserver 192.231.203.3#53
Mar 13 17:37:45 cascade dnsmasq[2621]: using nameserver 192.231.203.132#53
Mar 13 17:37:47 cascade dnsmasq[2621]: 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. |
|