SyntaxFix
Write A Post
Hire A Developer
Questions
To get fully qualified hostname use socket.getfqdn()
import socket print socket.getfqdn()