←back to thread

224 points gurjeet | 3 comments | | HN request time: 0.418s | source
Show context
4mine ◴[] No.26634476[source]
Here is my favorite. only using DNS:

$ nslookup myip.opendns.com resolver1.opendns.com

replies(2): >>26634719 #>>26638512 #
1. yakubin ◴[] No.26634719[source]
Wow. That's a great idea! nslookup is available on more devices than curl/wget.
replies(2): >>26634879 #>>26635586 #
2. e12e ◴[] No.26634879[source]
Put it another way, if you cannot lookup dns, odds are curl won't work. Of course, some nets might require the use of internal dns servers and block outbound traffic to dns.
3. john37386 ◴[] No.26635586[source]
I always like to learn new trick. I'm definitely adding this nslookup trick to my IT swiss army knife kit. Thanks