<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Twisted Documentation: Twisted Names code examples</title> <link href="../howto/stylesheet.css" rel="stylesheet" type="text/css"/> </head> <body bgcolor="white"> <h1 class="title">Twisted Names code examples</h1> <div class="toc"><ol><li><a href="#auto0">DNS (Twisted Names)</a></li></ol></div> <div class="content"> <span/> <h2>DNS (Twisted Names)<a name="auto0"/></h2> <ul> <li><a href="testdns.py" shape="rect">testdns.py</a> - Prints the results of an Address record lookup, Mail-Exchanger record lookup, and Nameserver record lookup for the given domain name.</li> <li><a href="dns-service.py" shape="rect">dns-service.py</a> - Searches for SRV records in DNS.</li> <li><a href="gethostbyname.py" shape="rect">gethostbyname.py</a> - Returns the IP address for a given hostname.</li> </ul> </div> <p><a href="../howto/index.html">Index</a></p> <span class="version">Version: 13.1.0</span> </body> </html>