Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-dns/openresolv with net-dialup/ppp bad /etc/resolv.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dekeonus
n00b
n00b


Joined: 14 Mar 2005
Posts: 9

PostPosted: Thu Mar 13, 2014 7:02 am    Post subject: net-dns/openresolv with net-dialup/ppp bad /etc/resolv.conf Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum