Skip to content

Instantly share code, notes, and snippets.

@schmichael
Created July 9, 2013 16:26
Show Gist options
  • Save schmichael/5958841 to your computer and use it in GitHub Desktop.
Save schmichael/5958841 to your computer and use it in GitHub Desktop.
reverse dns lookup is stoopid
"""Usage: python bobserver.py"""
from SimpleHTTPServer import SimpleHTTPRequestHandler, BaseHTTPServer
class BobServer(BaseHTTPServer.HTTPServer):
def address_string(self):
return ':'.join(self.client_address[:2])
if __name__ == '__main__':
BaseHTTPServer.test(SimpleHTTPRequestHandler, BobServer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment