Description of problem:
ppp doesn't update resolv.conf when connection is established
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Establish a connection using ppp
2. Check the contents of /etc/resolv.conf
3. "rm -f /etc/resolv.conf && ln -s /var/run/ppp/resolv.conf /etc/resolv.conf" to be able to browse the internet
no /etc/resolv.conf update
updated /etc/resolv.conf on each successful connection
how do you establish ppp connection? (NetworkManager, pppd call <script>, ...)
to establish a connection, here is what i do :
br2684ctl -c 0 -b -a 8.35
ifconfig nas0 up
pppd call menara-adsl
rm -f /etc/resolv.conf
ln -s /var/run/ppp/resolv.conf /etc/resolv.conf
I have an PPPoE ADSL Connection using the USB Modem Sagem Fast 800 ( based on Eagle IV chipset ).
I didn't have this pb with Ubuntu or Mandriva, so I think it is a Fedora Patch that is creating this behavior.
well, pppd call .... invokes /etc/ppp/ip-up that tries to invoke /etc/ppp/ip-up.local that executes update of /etc/resolve.conf.
The ip-up.local is not installed by default you can find sample in:
I had to modify it for my test connection with Nokia mobile - you can see it in #517470.
Perhaps I describe you well-known thing but I shouldn't avoid elementary things.
I didn't go through all the scripts but why should ppp write its dns information in /var/run/ppp/resolv.conf and not directly to /etc/resolv.conf ?
I'm not ppp maintainer so long to be able to answer it BUT I suppose that the main reason is to give a possibility make custom /etc/reslov.conf and after dis-connection restore original one.
I tested NetworkManager that updates /etc/resolv.conf and I made also scripts to connect via ppp and then I had to take care about /etc/resolv.conf too. I suppose it was an intention of developers.
I've investigated it a bit. This is really an intention of ppp to write proper resolv.conf. The mandatory option to create proper resolv.conf is 'usepeerdns'
If you use pppd daemon to create ppp connection the daemon calls /etc/ppp/ip-up script. This tries to invoke ip-up.local script but the one is not initially installed on right place. You should copy this from /usr/share/doc/ppp-2.4.?/scripts/ip-up.local.add. This script provides update of /etc/resolv.conf.
Don't forget on up-down.... part.
I tested it and it works fine.
i use usepeersdns in config file, and no auto-upadate of resolv.conf
why the script ip-up.local is not installed in the right place? what is the point ?
forgive me if i didn't understand well :)
I've checked for default installation on Ubuntu and there isn't ip-up.local installed into /etc/... too! (you've mentioned Ubuntu in commend #2)
There is only one difference between distros - which package owns ip-up(down). There is an owner ppp in Ubuntu and initscripts in the case of Fedora.
Did you try to copy ip-up.locoal? What results?