linux - What is the point of adding "IP domain.tld" to the ( /etc/hosts ) file if the server is not gonna be used as a mail server? -
for domain name work.. it's dns servers need point correct ip.
once domain tries connect ip
the server uses apache configuration determine domain based on in
<virtualhost *:80> </virtualhost> for servername, serveralias etc.
so if decide not set mail server, never have bother adding
ip domain.tld to /etc/hosts file ?
i suppose /etc/hosts file needs ip domain.tld if there mail server setup?
/etc/hosts file alternative dns host name resolution. has nothing mail servers. but, use mail server has found on network.
/etc/hosts local lookup file computer uses specified in /etc/nsswitch.conf.
dns network service provided each domain. example, bind. domain zone files configured , hosted on domains primary dns servers.
you can configure domain searches in /etc/resolv.conf.
Comments
Post a Comment