Skip to content

Instantly share code, notes, and snippets.

@jhotta
Created November 10, 2016 11:08
Show Gist options
  • Save jhotta/2b17b0787322049b676c6553e08e38c4 to your computer and use it in GitHub Desktop.
Save jhotta/2b17b0787322049b676c6553e08e38c4 to your computer and use it in GitHub Desktop.
/opt/datadog-agent/embedded/bin/python
Python 2.7.12 (default, Sep 29 2016, 21:18:00)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.getfqdn()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment