Module nameserver

Source

Functionsยง

get_nxdomain_nodata_soa
Check if this is an NXDOMAIN or NODATA response and return the SOA if so.
query_nameserver
Send a message to a remote nameserver, preferring UDP if the request is small enough. If the request is too large, or if the UDP response is truncated, tries again using TCP.
query_nameserver_tcp ๐Ÿ”’
Send a message to a remote nameserver over TCP, returning the response. This has the same return value caveats as query_nameserver_udp.
query_nameserver_tcp_notimeout ๐Ÿ”’
Timeout-less version of query_nameserver_tcp.
query_nameserver_udp ๐Ÿ”’
Send a message to a remote nameserver over UDP, returning the response. If the message would be truncated, or an error occurs while sending it, None is returned. Otherwise the deserialised response message is: but this response is NOT validated - consumers MUST validate the response before using it!
query_nameserver_udp_notimeout ๐Ÿ”’
Timeout-less version of query_nameserver_udp.
response_matches_request ๐Ÿ”’
Very basic validation that a nameserver response matches a message: