Skip to main content

Module dns

Module dns 

Source
Expand description

DNS protocol implementation for public IP detection

Uses DNS TXT/A records from special domains to detect public IP. This implementation uses raw UDP sockets instead of external DNS libraries.

§Security

Transaction IDs are generated with getrandom (OS-level CSPRNG), preventing DNS transaction ID spoofing attacks.

Structs§

DnsProvider
DNS provider configuration

Enums§

DnsRecordType
Record type for DNS query

Functions§

default_providers
Get default DNS providers
provider_names
List all available DNS provider names