Name resolution

Michalis Kabrianis kabrianis at hellug.gr
Fri Nov 12 02:23:34 EET 1999


O.k. 
as mou pei kapoios ti sk#%@ kanw lathos giati egw den mporw na katalabw.

A) /etc/hosts (metaksy twn allwn:)
192.168.0.1     asterix.hellug.gr       asterix
192.168.0.2     ovelix.hellug.gr        ovelix
B) /etc/host.conf
order hosts bind
multi on
C) /etc/nsswitch.conf (metaksy twn allwn)
hosts:  files dns
D) /etc/resolv.conf
search hellug.gr
194.219.227.2
193.92.150.3

kabrianis at asterix:/ > hostname
asterix
kabrianis at asterix:/ > hostname -f
asterix.hellug.gr

Alla:
kabrianis at asterix:/ > host asterix
Host not found, try again.
kabrianis at asterix:/ > host www.hellug.gr
Host not found, try again.
Kai, to pio asteio:
kabrianis at asterix:/ > ping ovelix
PING ovelix.hellug.gr (192.168.0.2): 56 data bytes
64 bytes from 192.168.0.2: icmp_seq=0 ttl=255 time=0.560 ms
64 bytes from 192.168.0.2: icmp_seq=1 ttl=255 time=0.505 ms
--- ovelix.hellug.gr ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.505/0.532/0.560 ms

Me ta idia arxeia sto (idio Suse 6.2) exw se allo mixanima:
kabrianis at ovelix:~ > host www.hellug.gr
www.hellug.gr is a nickname for tux.hellug.gr
tux.hellug.gr has address 194.219.170.190
(syndedemenos sto internet edw)
kabrianis at ovelix:~ > host asterix
Host not found.

To squid sto asterix pou sikwnei child dns processes trexei mia xara (kai
kanei name resolution mia xara).
To ovelix oso eimai syndedemenos briskei ola ta ekswterika hosts, ara kanei
name resolution mia xara ki auto, AN rwtaei DNS server diladi, giati osa exei
sto hosts mporei na ta kanei ping (telnet, ftp otidipote) alla den mporei na
brei tin IP tous :-)
H idia symperifora, eite syndedemenos eite oxi.
Me nscd kai xwris nscd. H Suse (exw v. 6.2) den exei kanena paromoio problima
sti support database

Kamia kali idea kaneis?

Michalis Kabrianis
kabrianis at hellug.gr
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list