rust-public-ip
rust-public-ip copied to clipboard
Find the public IP address of a device
I am hoping you can add Cloudflare as a backend DNS. e.g. via endpoints: ipv4: [https://1.1.1.1/cdn-cgi/trace](https://1.1.1.1/cdn-cgi/trace) ipv6: [https://[2606:4700:4700::1111]/cdn-cgi/trace](https://[2606:4700:4700::1111]/cdn-cgi/trace) or the raw DNS query: ipv4: `dig +short -4 txt ch whoami.cloudflare...
Right now, when querying for a specific address family, this generates a stream of results that query *any* resolvers, and will potentially query an incompatible resolver, just to throw away...
Partially resolves #20. Does not implement the https backend, just the DNS one, but that's probably still enough for @simbleau. This has been tested and is working as expected: ```rust...
Updates the requirements on [dns-lookup](https://github.com/keeperofdakeys/dns-lookup) to permit the latest version. Commits 1290cde Bump to version 2.0.0 8fe8618 Pin socket2 at version 0.5.2 13b2e1c Merge branch 'lookup_addr_err' of https://github.com/jfrancisco0/dns-lookup i... 680e279...
Updates the requirements on [hyper-rustls](https://github.com/ctz/hyper-rustls) to permit the latest version. Commits 31a0236 Update changelog for 0.24.0 70fa4c1 crate: bump version from 0.23.2 -> 0.24.0. 68ed9e6 deps: update rustls v0.20.1 ->...
They support querying v4 and v6 via HTTP(S), DNS, SSH, telnet(s), and STUN. They also have a second service operated in a different datacenter, with [tnedi.me](https://ipa.tnedi.me/). Details on how they...
More info on icanhazip.com over at https://major.io/2021/06/06/a-new-future-for-icanhazip/, it's operated by cloudflare and running on workers, so maybe it's an alternative to the http endpoints mentioned in #20?
Most people will be using `public_ip::addr` (or one of the address family specific subvariants), which will always take the first enabled resolver, falling back to other enabled resolvers until it...
Hey @avitex, is this still maintained at all? #23 has been sitting waiting for review, and it's been 2 years since the last commit. I'm considering forking this, but if...