## Fully Qualified Machine Name

Machines on our network obtain their fully qualified domain names from a DHCP server. But where does the DHCP server obtain its name? To configure a machine to return a fully qualified domain name (horn.example.com), you need to edit /etc/hosts

127.0.0.1   horn.example.com horn localhost
127.0.1.1   horn


Order matters. This will ensure that your fqdn can be queried by Python's socket.getfqdn().