Skip to content

Instantly share code, notes, and snippets.

@cxxr
Created March 1, 2014 19:20
Show Gist options
  • Save cxxr/9295595 to your computer and use it in GitHub Desktop.
Save cxxr/9295595 to your computer and use it in GitHub Desktop.
$ python
Python 2.7.5 (default, Sep 12 2013, 21:33:34)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.getfqdn()
'Seans-MacBook-Pro.local'
>>> socket.getfqdn()
'187.1.168.192.in-addr.arpa'
>>> socket.getfqdn()
'187.1.168.192.in-addr.arpa'
>>> socket.getfqdn()
'187.1.168.192.in-addr.arpa'
>>> socket.getfqdn()
'187.1.168.192.in-addr.arpa'
>>> ^D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment