Python Get Linux Hostname Resolution