I am using Python 3.7 socket to get the FQDN, fully qualified domain name. It works for some, e.g.
socket.getfqdn('indiana.edu')
'www.indiana.edu'
and doesn't work for others, e.g.
socket.getfqdn('google.com')
'lga34s18-in-f14.1e100.net'
Using lga34s18-in-f14.1e100.net in the browser gives the 404 error, url not found.
Ok, google.com is just one example. Here is another one:
socket.getfqdn('www.finastra.com')
'ec2-52-51-237-24.eu-west-1.compute.amazonaws.com'
And using url 'ec2-52-51-237-24.eu-west-1.compute.amazonaws.com' doesn't work, obviously. So they host their website on AWS, but why does socket return it as the FQDM, isn't 'finastra.com' the FQDM?