Cheatsheet: Difference between revisions

Content added Content deleted
Line 748: Line 748:
* This means "try files (/etc/hosts); and if it fails, try DNS."
* This means "try files (/etc/hosts); and if it fails, try DNS."
* i.e. If the host name is not found there, then consult the remote DNS name servers identified by the /etc/resolv.conf file.
* i.e. If the host name is not found there, then consult the remote DNS name servers identified by the /etc/resolv.conf file.
* But that order could be changed or expanded.
* This order could be changed or expanded.


* As a single file, it doesn't scale well: the size of the file becomes too big very soon.
* As a single file, it doesn't scale well: the size of the file becomes too big very soon.
Line 770: Line 770:
Override addresses that your DNS server provides
Override addresses that your DNS server provides
Control access to network traffic
Control access to network traffic

* IP-to-hostname conversion usually display only the first name found:

192.168.10.12 server.example.com myftp.example.com myhost myftp

$ ping myftp
PING myhost.example.com (192.168.10.12) 56(84) bytes of data.
64 bytes from myhost.example.com (192.168.10.12): icmp_seq=1 ttl=64 time=0.023 ms
64 bytes from myhost.example.com (192.168.10.12): icmp_seq=2 ttl=64 time=0.028 ms

Note that we pinged myftp but results come from host myhost. This is a reliable hint that you are addressing an alias, not the actual host.


== Check CPU, Memory and HDD ==
== Check CPU, Memory and HDD ==