Re: problemetto DNS
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
bodrato@mail.dm.unipi.it ha scritto:
> Ciao,
>
>>> Ovvero, "host" ha risolto il nome senza problemi, "wget" (e iceweasel)
>>> no...
>>>
>>> Dove mi consigliate di controllare?
>
>> magari hanno impostato un proxy per iceweasel e/o per il desktop
>
> Uhm... no non c'entra. Direi che il comando "host" e` praticamente l'unico
> che riesce a risolvere nomi in modo certo, non ci riescono neppure altri
> programmi che non usano il web, ad esempio:
>
> # ntpdate it.pool.ntp.org
> Error : Name or service not known
> 22 Sep 08:01:22 ntpdate[13420]: can't find host it.pool.ntp.org
> 22 Sep 08:01:22 ntpdate[13420]: no servers can be used, exiting
> # host it.pool.ntp.org
> it.pool.ntp.org has address 212.45.144.16
> it.pool.ntp.org has address 88.149.158.46
> it.pool.ntp.org has address 81.174.26.131
> it.pool.ntp.org has address 212.45.144.206
>
> E` proprio un problema di risoluzione dei nomi, e soprattutto ho il
> sospetto che tutti i programmi usino una qualche libreria per farlo (che
> magari interroga solo il primo DNS o qualcosa di similare...), mentre a
> quanto pare il comando "host" usa un metodo diverso...
>
> Altri consigli?
> Marco
>
reinstalla i pacchetti bind9-host e dnsutils, econtrolla i files
/etc/hosts e /etc/resolv.conf
ad esempio puoi usare i dns di opendns.org:
*
208.67.222.222**
208.67.220.220*
controlla che non ci siano pacchetti di cache dns installati
di seguito i files citati in una lenny 'pulita' ;-)
#/etc/hosts
#######
127.0.0.1 localhost
127.0.1.1 debian.localdomain debian
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
#######
# /etc/nsswitch.conf
#######
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed,
try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
#######
ciao,
Antonio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkq4fvoACgkQd/eBSx+n1Doj0wCeIbGd5yv4/T9MEVGL0ogdSSOK
O6cAn3bQDsfgks28fUAkipKetfQFy6fS
=D/Jj
-----END PGP SIGNATURE-----
Reply to: