def getRecords(hostname, rrtype='A', secure=True):
"""Do a lookup of a name and a rrtype, returns a list of binary coded strings. Only queries for rr_class IN."""
def getRecords(hostname, rrtype='A', secure=True):
"""Do a lookup of a name and a rrtype, returns a list of binary coded strings. Only queries for rr_class IN."""
#parser.add_argument('-4', dest='ipv4', action='store_true',help='use ipv4 networking only')
#parser.add_argument('-6', dest='ipv6', action='store_true',help='use ipv6 networking only')
parser.add_argument('--insecure', action='store_true', default=False, help='Allow use of non-dnssec secured answers')
#parser.add_argument('-4', dest='ipv4', action='store_true',help='use ipv4 networking only')
#parser.add_argument('-6', dest='ipv6', action='store_true',help='use ipv6 networking only')
parser.add_argument('--insecure', action='store_true', default=False, help='Allow use of non-dnssec secured answers')
parser.add_argument('-v', '--version', action='version', version='%(prog)s v0.1', help='show version and exit')
parser.add_argument('host', metavar="hostname")
parser.add_argument('-v', '--version', action='version', version='%(prog)s v0.1', help='show version and exit')
parser.add_argument('host', metavar="hostname")