Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96356 - net.ppp0 should be more optimized
Summary: net.ppp0 should be more optimized
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High minor
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-17 03:29 UTC by Bash
Modified: 2005-06-28 14:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for suggested optimization (net.ppp0.patch,961 bytes, patch)
2005-06-17 03:32 UTC, Bash
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bash 2005-06-17 03:29:34 UTC
My laptop has ethernet adapter which is started by default (95% of time my
Laptop connected to ethernet LAN). But sometimes I use ppp connections. So, all
optimization related for my situation :)

1. My resolv.conf contains my DNS servers which is usable only from my home LAN
via eth0. So when ppp connection is established new dns entry will be added
after my home DNSes => all resolv operation will take many times, because
my linux will try to use dns one by one from head of /etc/resolv.conf....

Solution: I suggest to add "#ppp" entry to /etc/resolv.conf. And modified ip-up
will substitute "#ppp" with DNS entry for ppp conection. This changes will allow
to point any position in /etc/resolv.conf (as you wish :)) for new dns entry.

2. /etc/net.ppp0 wants to remove default route, if seted PEERDNS="yes" from
/etc/conf.d/net.ppp0.
But /sbin/route | egrep "default" takes very much times, because eth0 network
unplugged and route cant resolv names :/

Solution: use "/sbin/route -n" -- no resolving!


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Bash 2005-06-17 03:32:07 UTC
Created attachment 61377 [details, diff]
patch for suggested optimization
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2005-06-23 14:38:06 UTC
1) doesn't make sense. Either you want to use the peer's DNS entries or not -
there is no point in mixing tons of DNS servers.

2) A valid point, but I'm not fixing it because we plan to remove the actual
net.ppp0 script in favor of the upcoming ppp baselayout net module.
Comment 3 Bash 2005-06-28 14:08:51 UTC
(In reply to comment #2)
> 1) doesn't make sense. Either you want to use the peer's DNS entries or not -
> there is no point in mixing tons of DNS servers.

heh, not "tons". just one "bad" dns entry will take much more time 4 resolve 
 
> 2) A valid point, but I'm not fixing it because we plan to remove the actual
> net.ppp0 script in favor of the upcoming ppp baselayout net module.

ok, let's wait and see :)