View previous topic :: View next topic |
Author |
Message |
CRV§ADER//KY Guru
Joined: 30 Aug 2004 Posts: 405 Location: Torino
|
Posted: Tue Jun 14, 2005 8:00 pm Post subject: [RISOLTO] /etc/hosts non funzionante |
|
|
Ho una piccola LAN con IP statici e i nomi host definiti in /etc/hosts: Code: | 127.0.0.1 localhost
192.168.52.1 eva.cky.net eva
192.168.52.2 michele.cky.net michele
192.168.52.3 usamm.cky.net usamm
192.168.52.5 vmware.cky.net vmware |
in seguito ad esecuzione di cruft (pulizia di files non utilizzati) non funziona più la risoluzione di tali host. Ciò è _critico_ perché gli host non riescono neanche più a pingare sé stessi; questo comporta lag paurosi al login e problemi ad avviare X.
Ho già provato a ri-emergere baselayout.
mayday... mayday... _________________ Kyrie, Ignis Divine, Eleison ~ Elfen Lied
Last edited by CRV§ADER//KY on Tue Jun 14, 2005 8:57 pm; edited 1 time in total |
|
Back to top |
|
|
cloc3 Advocate
Joined: 13 Jan 2004 Posts: 4810 Location: http://www.gentoo-users.org/user/cloc3/
|
Posted: Tue Jun 14, 2005 8:38 pm Post subject: |
|
|
Credo che /etc/hosts dipenda da questa riga:
Code: |
cloc3@gentoo-amd ~ $ cat /etc/host.conf |grep order
# recognized are order, trim, mdns, multi, nospoof, spoof, and reorder.
order hosts, bind
|
PS:
Code: |
gentoo-amd livecd # equery b host.conf
[ Searching for file(s) host.conf in *... ]
sys-libs/glibc-2.3.5 (/etc/host.conf)
|
_________________ vu vu vu
gentù
mi piaci tu |
|
Back to top |
|
|
CRV§ADER//KY Guru
Joined: 30 Aug 2004 Posts: 405 Location: Torino
|
Posted: Tue Jun 14, 2005 8:41 pm Post subject: |
|
|
Anch'io ho hosts,bind. E in /etc/conf.d/domainname ho: Code: | # /etc/conf.d/domainname
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/conf.d/domainname,v 1.1.4.1 2005/02/19 02:13:53 vapier Exp $
# When setting up resolv.conf, what should take precedence?
# If you wish to always override DHCP/whatever, set this to 1.
OVERRIDE=1
# To have a proper FQDN, you need to setup /etc/hosts and /etc/resolv.conf
# properly (domain entry in /etc/resolv.conf, and FQDN in /etc/hosts).
#
DNSDOMAIN="cky.net"
# This only set what /bin/hostname returns. If you need to setup NIS, meaning
# what /bin/domainname returns, please see:
#
# http://www.linux-nis.org/nis-howto/HOWTO/
#
#NISDOMAIN="" |
_________________ Kyrie, Ignis Divine, Eleison ~ Elfen Lied |
|
Back to top |
|
|
CRV§ADER//KY Guru
Joined: 30 Aug 2004 Posts: 405 Location: Torino
|
Posted: Tue Jun 14, 2005 8:55 pm Post subject: |
|
|
risolto; cruft aveva cancellato /etc/nsswitch.conf. Per fortuna avevo una copia di backup.
FIUUUUUUUU _________________ Kyrie, Ignis Divine, Eleison ~ Elfen Lied |
|
Back to top |
|
|
|
|
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
|
|