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§
- DnsRecord
Type - Record type for DNS query
Functions§
- default_
providers - Get default DNS providers
- provider_
names - List all available DNS provider names