paulc / dnslib

A Python library to encode/decode DNS wire-format packets
https://github.com/paulc/dnslib
BSD 2-Clause "Simplified" License
299 stars 85 forks source link

IPv6 #69

Closed anpic closed 1 month ago

anpic commented 1 month ago

How do I get lookups through DNS servers with IPv6 public addresses?

domain = "github.com" q = DNSRecord.question(domain, qtype = "AAAA") p = q.send("2001:4860:4860::8888", ipv6 = True)

File .../dnslib/dns.py in send sock.sendto(self.pack(),(dest,port)) OSError: [Errno 101] Network is unreachable

anpic commented 1 month ago

maybe there is a similar case here https://github.com/aio-libs/aiohttp/issues/5112 and although OS supports IPv6 but there is no ISP IPv6 routing?

paulc commented 1 month ago

You don't have an IPv6 network connection