Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#25256 - [ppp] Replace a file "/etc/resolv.conf" by default is a bad idea.

Attached to Project: Arch Linux
Opened by Natrio (natrio) - Monday, 25 July 2011, 14:30 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 18 November 2012, 23:06 GMT
Task Type General Gripe
Category Packages: Core
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


This "feature" that was added in version 2.4.4-8 Arch-package (but not into upstream!), conflicts with any local DNS-server. You can't get DNS from peer into "/etc/ppp/resolv.conf" without replacing the main "/etc/resilv.conf" file! Of course, you can not get the file "/etc/ppp/resolv.conf" at all, because the file has already moved.
This is a wrong way.
The files "/etc/ppp/ip-*.d/" can to be added optionally, but not by default. And even better - just once to create a link, if necessary:
ln -s /etc/ppp/resolv.conv /etc/
Additional info:
* package version(s): 2.4.4-8 and higher
This task depends upon

Closed by  Thomas Bächler (brain0)
Sunday, 18 November 2012, 23:06 GMT
Reason for closing:  Not a bug
Comment by John Sivak (jsivak) - Monday, 25 July 2011, 23:53 GMT
The 'usepeerdns' setting will "keep" the /etc/ppp/resolv.conf file. I had to add this to my /etc/ppp/options file when using a dialup modem connection.

See man pppd:
Ask the peer for up to 2 DNS server addresses. The addresses
supplied by the peer (if any) are passed to the /etc/ppp/ip-up
script in the environment variables DNS1 and DNS2, and the envi‐
ronment variable USEPEERDNS will be set to 1. In addition, pppd
will create an /etc/ppp/resolv.conf file containing one or two
nameserver lines with the address(es) supplied by the peer.
Comment by Natrio (natrio) - Tuesday, 26 July 2011, 05:43 GMT
pppd works properly, it stores the DNS addresses in the file "/etc/ppp/resolv.conf", and transmits them to the script "ip-up" in the variables DNS1 and DNS2.

And then activated script, which makes it like this:
mv /etc/ppp/resolv.conf /etc/resolv.conf
This action is clearly beyond what is described in "man pppd" (and Arch-wiki too), it is useless and harmful.
The practice of automatically rewriting the basic configuration files are completely flawed.
Comment by Alexander F. Rødseth (xyproto) - Sunday, 18 November 2012, 23:00 GMT
Some time has passed. Is this still an issue?
Comment by Thomas Bächler (brain0) - Sunday, 18 November 2012, 23:05 GMT
It never was an issue. If you don't want resolv.conf to be replaced, configure pppd accordingly (as mentioned, the usepeerdns option is meant for that).