One would set up his hostname in
I wonder why one might need to use FQDN if he has his DNS server properly configured?
Say, for example, one has following configuration of bind that servers his FQDN too.
$ORIGIN department.domain. @ IN SOA department.domain. dnsmaster ( 1 604800 86400 2419200 604800) IN NS department.domain. IN NS ns.department.domain. department.domain. IN A 192.168.0.7 ns.department.domain. IN A 192.168.0.8 employee007.department.domain. IN A 192.168.12.2
Now configuration of client machine:
search department.domain. nameserver 192.168.0.8
I see that it is possible to resolve FQDN of this host just issuing
dig @192.168.0.8 employee007.department.domain
Why one might need to have /etc/hostname filled with hostname or string in /etc/hosts like this:
127.0.1.1 employee007.department.domain. employee007
If DNS server alone solves the problem? One might consider dropping out /etc/hostname and unneeded stuff in /etc/hosts altogether if gets a reasonable rationale. Thanks.