Added try/except to use old socket.get_gqdn if socket.getaddrinfo fails

References #11660

Added a ```try:except:``` to ```network.get_fqhostname``` to handle the thrown exception in gethostbyname when ```sockets.getaddrinfo``` fails. 

Some basic tests are forthcoming.