Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Reseau] Fichier hosts inactif (Resolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Ezka
Guru
Guru


Joined: 17 Feb 2005
Posts: 352
Location: par là, mais vraiment ...

PostPosted: Wed Jul 30, 2008 7:53 pm    Post subject: [Reseau] Fichier hosts inactif (Resolu) Reply with quote

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
View user's profile Send private message
El_Goretto
Moderator
Moderator


Joined: 29 May 2004
Posts: 3174
Location: Paris

PostPosted: Thu Jul 31, 2008 7:33 am    Post subject: Reply with quote

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
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8723
Location: ~Brussels - Belgique

PostPosted: Thu Jul 31, 2008 8:09 am    Post subject: Reply with quote

est-ce que le service net.lo est démarré ?
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Poch
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2006
Posts: 105
Location: Namur, Belgique

PostPosted: Thu Jul 31, 2008 8:44 am    Post subject: Reply with quote

C'est quoi ce
Code:

1127.0.0.1 actis
?
1127, ça me paraît beaucoup...
Ca vient peut-être pas de là mais avoir des valeurs correctes ne peut pas faire de mal :D :D
_________________
Microsoft is not the answer. Microsoft is the question. NO, is the answer.
Back to top
View user's profile Send private message
Ezka
Guru
Guru


Joined: 17 Feb 2005
Posts: 352
Location: par là, mais vraiment ...

PostPosted: Thu Jul 31, 2008 6:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ezka
Guru
Guru


Joined: 17 Feb 2005
Posts: 352
Location: par là, mais vraiment ...

PostPosted: Thu Aug 07, 2008 6:44 pm    Post subject: Reply with quote

Le Tips si jamais ça arrive à d'autre :

/etc/nsswitch.conf
Code:
hosts: files dns


Et ça marche. :roll:
_________________
Ez.
Back to top
View user's profile Send private message
Kazuya
Apprentice
Apprentice


Joined: 09 Jul 2006
Posts: 256

PostPosted: Thu Aug 07, 2008 11:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
El_Goretto
Moderator
Moderator


Joined: 29 May 2004
Posts: 3174
Location: Paris

PostPosted: Fri Aug 08, 2008 8:24 am    Post subject: Reply with quote

El_Goretto wrote:
Et le fichier /etc/nsswitch.conf donne quoi?


Ezka wrote:
Le Tips si jamais ça arrive à d'autre :
/etc/nsswitch.conf
Code:
hosts: files dns

Et ça marche. :roll:


C'est bien jeune padawan, 1 semaine... tu feras mieux la prochaine fois :P
_________________
-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
View user's profile Send private message
Ezka
Guru
Guru


Joined: 17 Feb 2005
Posts: 352
Location: par là, mais vraiment ...

PostPosted: Fri Aug 08, 2008 5:11 pm    Post subject: Reply with quote

El_Goretto wrote:
C'est bien jeune padawan, 1 semaine... tu feras mieux la prochaine fois :P


Certes j'ai pas été rapide, mais ça ne m'empêchait pas de me servir du système ... donc bug mineur :arrow: à 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 :roll:

Bref, merci à vous !
_________________
Ez.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum