- version 3.6
Check those constraints:
$this->anything()
| # http://notmysock.org/blog/hacks/a-twisted-dns-story.html | |
| # http://blog.inneoin.org/2009/11/i-used-twisted-to-create-dns-server.html | |
| # twistd -y dns.py | |
| import socket | |
| from twisted.internet.protocol import Factory, Protocol | |
| from twisted.internet import reactor | |
| from twisted.names import dns | |
| from twisted.names import client, server |
| # Python/Twisted/Redis backed DNS server - resolves from NAME to IP addrs | |
| # fallback to google or any other DNS server to resolv domains not present on Redis | |
| # to set a new domain on redis, just issue a SET domain.tld ip_addr | |
| # run with twistd -ny txredns.tac | |
| # gleicon 2011 | |
| from twisted.names import dns, server, client, cache | |
| from twisted.application import service, internet | |
| from twisted.internet import defer | |
| from twisted.python import log |