Skip to content

Instantly share code, notes, and snippets.

View adepasquale's full-sized avatar

Andrea De Pasquale adepasquale

View GitHub Profile
#!/usr/bin/python
# This script will query a name server nonrecursively
# RFC 1912 recommends that the $TTL value on the name server
# be set to 1 day or longer
# -*- coding: utf-8 -*-
import sys
import dns
from dns.exception import DNSException
from dns.rdataclass import *