avitex / rust-public-ip

Find the public IP address of a device
MIT License
28 stars 7 forks source link

Add Cloudflare as backend DNS #20

Open simbleau opened 2 years ago

simbleau commented 2 years ago

I am hoping you can add Cloudflare as a backend DNS.

e.g. via endpoints: ipv4: https://1.1.1.1/cdn-cgi/trace ipv6: https://[2606:4700:4700::1111]/cdn-cgi/trace

or the raw DNS query: ipv4: dig +short -4 txt ch whoami.cloudflare @1.1.1.1 ipv6: dig +short -6 txt ch whoami.cloudflare @2606:4700:4700::1111