I've just installed the latest CentOS 7.4 and I'm running into what appears to be something odd in the network stack. Using the provided Python 2.7.5 dated Apr 11, 2018, when I use the socket class, I'm getting an injected fqdn from the DNS thieves at barefruit:
Code: Select all
$ python
Python 2.7.5 (default, Apr 11 2018, 07:36:10)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.getfqdn()
'unallocated.barefruit.co.uk'
As a follow-up check, calling hostname --fqdn returns the proper internal DHCP name:
Code: Select all
$ hostname --fqdn
toaster.build.tolisgroup.com