[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux-team] Dns qui ne fait pas son travail
On Sun, 27 Jun 1999 Vincent_Geers@adhoc-computing.com wrote:
> Salut a Tous,
> Enfin les exams passés, on a fini de faire la fête et on se remet a
> configurer son petit linux.
> J'ai installé Redhat 6.0, installation facile et config simple avec
> linuconf.
> Je me suis dit je vais configurer mon dns avec linuxconf.
> Voila c'est fait j'essaye je fais ping machine1 depuis machine2 et
> inversemant et ca marche, je cré des alliasses comme www et ftp. Je ping
> tout baigne.
> Je lance netscape et je fais http://machine1 depuis machine2 et la il
> cherche pendant une heure pour enfin me dire qu'il ne trouve pas la
> machine.
Quelques pistes à explorer (non-exhaustif :-( )
1) Y a-t-il un fichier /etc/hosts reprenant
127.0.0.1 localhost localhost. loopback loopback.
xx.yy.zz.ww machine1.full.domain machine1
idem pour machine 2
2) un exemple de /etc/host.conf :
order hosts, bind (interroger hosts avant de faire un appel DNS)
nospoof on
3) un exemple de /etc/resolv.conf
domain full.domain
search full.domain, another.domain
nameserver xx.yy.zz.ww (IP de la machine qui fait le DNS)
4) enfin, si ta machine est sous glibc2, tu dois avoir un fichier
/etc/nsswitch.conf, avec typiquement :
passwd: compat
group: compat
shadow: compat
hosts: db files dns [!UNAVAIL=return]
networks: db files
ethers: db files
protocols: db files
rpc: db files
services: db files
la ligne 'hosts' est particulièrement importante : elle dit d'essayer dans
l'ordre la base de données (dans /var/db) dont la génération est laissée à
titre d'exercice au lecteur ;-), le fichier /etc/hosts, et enfin le dns.
Pascal Dupuis
--
The generation of random numbers is too important to be left to chance.
---------
This message was sent by Majordomo 1.94.3. Please report problems to
manu@rtfm.be. If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.