Server DNS
Carlo Bertoldi
mcbain a tiscali.it
Mer 17 Dic 2008 09:37:11 UTC
Carlo wrote, on the 17/12/2008 10.23:
> Ciao a tutti,
>
> avrei la necessità di impostare il server DNS in modo dinamico, senza
> memorizzarlo in un file (resolv.conf o interfaces).
> Un comando analogo a:
>
> route add default gw xxxx
>
> che al successivo riavvio della macchina si resetta automaticamente al
> valore di default presente nel file intefaces.
> E' possibile anche con il DNS?
> Come si fa?
> Ciao, grazie.
> Carlo.
>
Ciao,
se intendi impostare i dns con la connessione dsl puoi usare l'opzione
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, and the environment variable USEPEERDNS will be
set to 1. In addition,
pppd will create an /etc/ppp/resolv.conf file containing
one or two nameserver
lines with the address(es) supplied by the peer.
Da mettere nel file options, solitamente in /etc/ppp
Carlo
--
È molto più bello sapere qualcosa di tutto, che sapere tutto di una cosa.
Blaise Pascal
Maggiori informazioni sulla lista
Lug
|