|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/share/doc/ppp-2.4.4/scripts/ |
Upload File : |
# # This sample code shows you one way to modify your setup to allow automatic # configuration of your resolv.conf for peer supplied DNS addresses when using # the `usepeerdns' option. # # In my case I just added this to my /etc/ppp/ip-up.local script. You may need to # create an executable script if one does not exist. # # Nick Walker (nickwalker@email.com) # . /etc/sysconfig/network-scripts/network-functions if [ -n "$USEPEERDNS" -a -f /var/run/ppp/resolv.conf ]; then rm -f /var/run/ppp/resolv.prev if [ -f /etc/resolv.conf ]; then cp /etc/resolv.conf /var/run/ppp/resolv.prev rscf=/var/run/ppp/resolv.new grep domain /var/run/ppp/resolv.prev > $rscf grep search /var/run/ppp/resolv.prev >> $rscf change_resolv_conf $rscf rm -f $rscf else change_resolv_conf /var/run/ppp/resolv.conf fi fi