I have a list of FQDNs and would need to get the url it points to using python. Any pointers about how I could achieve this?
Added http:// as suggested by @tetech it is giving this error:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='edge-mqtt-shv-01-any2.facebook.com', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9b534ad7f0>: Failed to establish a new connection: [Errno 111] Connection refused',)
Used this code:
import requests
requests.get("http://edge-mqtt-shv-01-any2.facebook.com")
http://to the starthttps://instead. I somehow think this isn't being done as part of a business IT environment.