4 ms·
> what is my ip alias my-ip='dig +short myip.opendns.com @resolver1.opendns.com'
by psexec 6y ago
> what is my ip
alias my-ip='dig +short myip.opendns.com @resolver1.opendns.com'
- reaperducer 6y agoAwesome. Now try it at a client's off-site location with hardware and terminal locked down by someone else's IT department while you're trying to troubleshoot their connection.
- saagarjha 6y agoOr your mobile device…
- machello13 6y agois this a serious comment? it reads like satire of an HN comment
- olq 6y agoI for one found this very useful
- machello13 6y agoSure, it's a good command to know, but completely apropos of nothing. A command line alias is not at all an alternative to typing "what's my IP" into google, something that even my mom could do.
- bacondude3 6y agoEasier: $ curl icanhazip.com