Use xbill dns.