jsocol/pystatsd — pull request #7 by dgholz (2012-03-30 09:39:39+00:00)
Title: use gethostbyname instead of gethostbyaddr

gethostbyaddr does a forward lookup to find the canonical IP addr for a DNS name, then does a reverse lookup on the IP addr to find the canonical hostname. It fails if there is no reverse DNS entry.

gethostbyname does a simple forward lookup only and handles names or IP addrs just fine.