Open jetmore opened 7 months ago
Jan refined this
dig @ns.sslip.io txt ip.sslip.io +short | sed 's/:/-/g' | sed 's/"//g' | sed 's/$/.sslip.io/'
This returns something like 1.2.3.4.sslip.io
. This means there could be yet another path for what someone wants the hostname to be:
One way to implement this would be to look at the IP we're connecting to (after we make the connection, since we might not have an IP before the connection) and, if it's RFC1918, use the local hostname as we always have. But if it's not, then use the "find my public hostname" method above. This might be too clever though. And I don't think there's an rfc1918 equiv for ipv6.
This was requested via email by stembera.jan0#seznam.cz. I initially rejected it but after seeing how easy it is to do with DNS and thinking about it a bit, this is actually a pretty good fit for the proposed MUA mode