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

Re: resolv.conf et serveurs



>     USEPEERDNS=no
> 
>     DNS1=193.252.19.3
>     DNS2=193.252.19.4
> 
> donc il faut tout simplement regarder dans les fichiers de configuration
> pour éviter d'avoir à refaire à chaque fois qu'il y a une re-connexion :)

alors voici ce qui se passe chez moi:

bash-2.05a$ cat /etc/hosts
127.0.0.1       localhost
192.168.0.1     moulinette.dyndns.org   moulinette
192.168.0.2     gizmotronics.dyndns.org gizmotronics gizmo

bash-2.05a$ cat /etc/host.conf
order hosts,bind
multi on

bash-2.05a$ cat /etc/resolv.conf
nameserver 192.168.0.1
nameserver 62.4.16.70
nameserver 62.4.16.80

(je vire ~/.ssh/known-hosts pour bien vous montrer l'IP de la machine...)

bash-2.05a$ ssh moulinette.dyndns.org
The authenticity of host 'moulinette.dyndns.org (62.212.100.237)' can't be established.
RSA key fingerprint is 00:47:12:83:f6:24:a3:8e:26:99:f9:10:7b:40:66:c8.

bash-2.05a$ ping moulinette.dyndns.org
PING moulinette.dyndns.org (192.168.0.1): 56 data bytes


Mais : 

bash-2.05a$ ssh moulinette
The authenticity of host 'moulinette (192.168.0.1)' can't be established.
RSA key fingerprint is 00:47:12:83:f6:24:a3:8e:26:99:f9:10:7b:40:66:c8.

bash-2.05a$ ping moulinette
PING moulinette.dyndns.org (192.168.0.1): 56 data bytes


sur moulinette, qui masquarade l'ADSL pour l'autre machine, voici un extrait de
/etc/ppp/pppoe.conf :

# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=NOCHANGE

# Obtain DNS server addresses from the peer (recent versions of pppd only)
USEPEERDNS=no

DNS1=
DNS2=

Voilà....
Si quelqu'un pouvait m'expliquer ce qui se passe...

NB : je ne sais pas si c'est lié, mais mozilla se démerde très bien sans /etc/resolv.conf!

Charles









Reply to: