I read This manual and I'm a little confused.
This is what I don't undetstand:
When your system tries to resolve a hostname to an IP address or determine the
ostname for an IP address, it refers to the /etc/hosts file before using the
name servers
So:
1)When DOES the system tries to resolve a hostname? To my understanding its when a datagrams's header specifies a hostname, am I right?
2)Why does it refer to hosts
before resolv.conf
?
3)After the hostname is resolved, the system turns to the routing table?