| Summary: | PATCH for PPPD | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | cyberwin@mail.ru <Kovirshin.Alexey> | ||||
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.1-RELEASE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
State Changed From-To: open->closed Duplicated with misc/24513. |
I've modifyed pppd sources and added 3 new options: usepeerdns, update-resolv, hide-password 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. update-resolv The /etc/resolv.conf will be updated with the DNS addresses supplied by the peer (if any). But envi- ronment variables DNS1 and DNS2 are still avail- able. This option is work in conjunction with the usepeerdns option only. hide-password When logging the contents of PAP packets, this option causes pppd to exclude the password string from the log. Options usepeerdns and hide-password i've taken from pppd-2.3.9, but usepeerdns doesn't update resolve.conf automatically(like in 2.3.9) so DNS addresses are available from DNS1, DNS2, USEPEERDNS environment variables(usefull for /etc/ppp/ip-up(down) scripts). Option update-resolv update resolv.conf automatically, but DNS1, DNS2, USEPEERDNS environment variables are still available. I hope it will be usefull when pppd acts as client. Fix: 've maked a patch which can be applied to /usr/src/usr.sbin/pppd sources by this way: cd /usr/src/usr.sbin/pppd patch < pppd-DNSask.patch Here is the pppd-DNSask.patch -------------CUT HERE-------------