curl https://icanhazip\.com # Easy way to find your public IP address that is friendly to CLI users. There are many others, but ask yourself:

1) Do you have to parse the output?

2) Do they have SSL?

3) Have they been around for a while?

4) Are they IPv6 ready?

@climagic someone should make one that works over raw TCP. Or over DNS.

@Wolf480pl @climagic
dig +short ANY
(You need ANY to get either A/IPv4 or AAAA/IPv6 as appropriate. Luckily OpenDNS doesn't implement RFC 8482 yet.)


@voidptr @climagic
nice... but if I dig it through my ISPs resolver or through, it says NXDOMAIN. Is it filtered or sth?

@Wolf480pl If you dig through your ISP's resolver, OpenDNS can't determine your IP (since you don't have a direct connection with them). They've probably implemented blocking of some sort to avoid confusing people in that case.

@voidptr yeah, thought about that right after my previous post.

Sign in to participate in the conversation

Welcome to your niu world ! We are a cute and loving international community O(≧▽≦)O !