[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PPP



 David Soulayrol <david.soulayrol@ago.fr> écrivait :
« 
« - Sous /etc/ppp, on trouve un fichier resolv.conf. J'aimerais savoir
« quel est son role, et dans quel cas exactement celui-ci est utilise
« plutot que /etc/resolv.conf. »

man pppconfig :
       
       It can help you set your nameservers, or, if your ISP uses
       'dynamic DNS', it can set up ppp to use that.
       
       et
       /etc/ppp/resolv is a directory where resolv.conf files for
        each provider are stored.
       
       /etc/ppp/ip-up.d/0dns-up is a script that arranges for the
       correct resolv.conf file to be copied into  place  when  a
	connection comes up.
	
less /etc/ppp/ip-up.d/0dns_up :

# 0dns-up sets up /etc/resolv.conf for the provider being connected to.  In
# conjunction with pppd's usepeerdns option it also handles dynamic dns.


man pppd :

usepeerdns
      Ask the peer for up to 2 DNS server addresses.  
      addresses  supplied by the peer (if any) are passed
      to the /etc/ppp/ip-up  script  in  the  environment
      variables  DNS1  and  DNS2.  In addition, pppd will
      create an /etc/ppp/resolv.conf file containing  one
      or  two  nameserver lines with the address(es) sup­
      plied by the peer.


-- 
philippe batailler
in girum imus nocte et consumimur igni



Reply to: