Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

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

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#15462 - [ppp] using different variable as rp-pppoe

Attached to Project: Arch Linux
Opened by Christofer Stoll (creyon) - Thursday, 09 July 2009, 18:48 GMT
Last edited by Thomas Bächler (brain0) - Thursday, 09 July 2009, 19:19 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Thomas Bächler (brain0)
Isenmann Daniel (ise)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The package rp-pppoe 3.10-1 says in /etc/ppp/pppoe.conf:
# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS. Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=yes

but in ppp 2.4.4-8 the file /etc/ppp/ip-up.d/00-dns.sh is checking for $USEPEERDNS.

Fix (diff):
3c3
< if [ "$USEPEERDNS" = "1" -a -f /etc/ppp/resolv.conf ]; then
---
> if [ "$PEERDNS" = "1" -a -f /etc/ppp/resolv.conf ]; then

I got both package versions from a clean install and pacman -Syu.

Cheers,
creyon
This task depends upon

Closed by  Thomas Bächler (brain0)
Thursday, 09 July 2009, 19:19 GMT
Reason for closing:  Not a bug
Comment by Thomas Bächler (brain0) - Thursday, 09 July 2009, 19:19 GMT
Excerpt from the ppp manpage:

usepeerdns
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 environment 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.

I don't know or care what rp-pppoe does, the documentation of ppp has the last word here.

Loading...