View previous topic :: View next topic |
Author |
Message |
Ezka Guru
Joined: 17 Feb 2005 Posts: 352 Location: par là, mais vraiment ...
|
Posted: Wed Jul 30, 2008 7:53 pm Post subject: [Reseau] Fichier hosts inactif (Resolu) |
|
|
Bonsoir à tous,
Il y a un grain de sable (en cette période estivale, si ça pourait être vrai) dans mon système qui m'empêche de pingé tranquille dans ce monde de bits :
- mon fichier hosts n'est pas utilisé ! Ou il n'a pas l'air d'être utilisé !
En gros :
Code: | Actis etc # ping localhost
ping: unknown host localhost |
pourtant dans /etc/hosts :
Code: | Actis etc # grep -ve '#' /etc/hosts
127.0.0.1 localhost
::1 localhost
1127.0.0.1 actis
192.168.0.2 actis
192.168.1.150 geexbox |
dans mon /etc/host.conf
Code: | order hosts, bind
multi off |
J'ai vu qu'il y avait un fichier /etc/networks ... qui n'est pas documenté dans man, mais même en y glissant un 'localhost 127.0.0.1' mon ping s'en porte pas mieux ...
J'ai raté un truc ? _________________ Ez.
Last edited by Ezka on Thu Aug 07, 2008 6:42 pm; edited 1 time in total |
|
Back to top |
|
|
El_Goretto Moderator
Joined: 29 May 2004 Posts: 3174 Location: Paris
|
Posted: Thu Jul 31, 2008 7:33 am Post subject: |
|
|
Et le fichier /etc/nsswitch.conf donne quoi? _________________ -TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT) |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8723 Location: ~Brussels - Belgique
|
Posted: Thu Jul 31, 2008 8:09 am Post subject: |
|
|
est-ce que le service net.lo est démarré ? _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
Poch Tux's lil' helper
Joined: 09 Jun 2006 Posts: 105 Location: Namur, Belgique
|
Posted: Thu Jul 31, 2008 8:44 am Post subject: |
|
|
C'est quoi ce
?
1127, ça me paraît beaucoup...
Ca vient peut-être pas de là mais avoir des valeurs correctes ne peut pas faire de mal _________________ Microsoft is not the answer. Microsoft is the question. NO, is the answer. |
|
Back to top |
|
|
Ezka Guru
Joined: 17 Feb 2005 Posts: 352 Location: par là, mais vraiment ...
|
Posted: Thu Jul 31, 2008 6:32 pm Post subject: |
|
|
Le service net.lo est bien démarré.
J'ai corrigé le 1127 ce matin en postant j'ai vu l'erreur, mais pas mieux.
Le fichier nsswitch est vide. Ca ne me semble pas trop mauvais, il n'apparait pas dans mes anciennes configurations ... je ne l'ai donc pas remplacé par erreur.
Je suis un peu désarmé sur ce problème
J'ai vérifié les droit :
Code: | -rw-r--r-- 1 root root 936 juil. 14 14:57 host.conf
-rw-r--r-- 1 root root 1,2K juil. 31 20:24 hosts |
Mais le mystère demeure ... _________________ Ez. |
|
Back to top |
|
|
Ezka Guru
Joined: 17 Feb 2005 Posts: 352 Location: par là, mais vraiment ...
|
Posted: Thu Aug 07, 2008 6:44 pm Post subject: |
|
|
Le Tips si jamais ça arrive à d'autre :
/etc/nsswitch.conf
Et ça marche. _________________ Ez. |
|
Back to top |
|
|
Kazuya Apprentice
Joined: 09 Jul 2006 Posts: 256
|
Posted: Thu Aug 07, 2008 11:56 pm Post subject: |
|
|
Hello,
je poste juste pour infos à tout hasard, moi dans mon fichier nsswitch.conf j'ai ça:
Quote: |
# /etc/nsswitch.conf:
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/nsswitch.conf,v 1.1 2006/09/29 23:52:23 vapier Exp $
passwd: compat
shadow: compat
group: compat
# passwd: db files nis
# shadow: db files nis
# group: db files nis
hosts: files dns
networks: files dns
services: db files
protocols: db files
rpc: db files
ethers: db files
netmasks: files
netgroup: files
bootparams: files
automount: files
aliases: files
|
J'utilise glibc-2.6.1 _________________ Hacker vaillant, rien d'impossible !!!
"Quand une vache boit de l'eau, cette eau devient du lait. Quand un serpent boit de l'eau, cette eau devient du poison." |
|
Back to top |
|
|
El_Goretto Moderator
Joined: 29 May 2004 Posts: 3174 Location: Paris
|
Posted: Fri Aug 08, 2008 8:24 am Post subject: |
|
|
El_Goretto wrote: | Et le fichier /etc/nsswitch.conf donne quoi? |
Ezka wrote: | Le Tips si jamais ça arrive à d'autre :
/etc/nsswitch.conf
Et ça marche. |
C'est bien jeune padawan, 1 semaine... tu feras mieux la prochaine fois _________________ -TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT) |
|
Back to top |
|
|
Ezka Guru
Joined: 17 Feb 2005 Posts: 352 Location: par là, mais vraiment ...
|
Posted: Fri Aug 08, 2008 5:11 pm Post subject: |
|
|
El_Goretto wrote: | C'est bien jeune padawan, 1 semaine... tu feras mieux la prochaine fois |
Certes j'ai pas été rapide, mais ça ne m'empêchait pas de me servir du système ... donc bug mineur à checker quand j'ai le temps.
Et puis ça ma emmerder pour autre chose, alors j'ai du m'y mettre
Quand j'ai fais le switch de la glibc ça a du merdé nsswitch ... m'en suis apperçus que bien plus tard ... aprés un reboot
Bref, merci à vous ! _________________ Ez. |
|
Back to top |
|
|
|