man gethostbyname
man named
Code:
The domain name queries carried out by gethostbyname() and gethostbyaddr() use a combination of
any or all of the name server named(8), a broken out line from /etc/hosts, and the Network Information
Service (NIS or YP), depending upon the contents of the order line in /etc/host.conf.
Dakle, zavisi od redosleda u order liniji u /etc/host.conf-u. Ako je hosts prvi, onda ce gledati u
/etc/hosts i za neki mali sistem to je dovoljno: jednostavno navedes adrese i imena racunara
i to radi. Inace se koristi named koji konfigurises u /etc/named.conf.
Uostalom, nisam ti rekao nista sto ne pise na gornjim man stranama.
Milos