We have a Debian 8.2 system foo provided by our IT department for production. Its /etc/hosts file contains these two lines:
127.0.0.1 localhost
127.0.1.1 foo.example.com foo
This maps the FQDN of the system to 127.0.1.1, while the real IP address of the system is 10.5.1.38 (which is not given in hosts).
Is this correct or should /etc/hosts not contain the FQDN?
Note that the system is networked, has access to DNS and nslookup with the FQDN gives the correct IP address (10.5.1.38).