commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
The host command comes with the bind-utils package, which is has a better chance to be installed than resolveip from mysql. The last word of the query result is displayed, which is the last result host got.
This works with CNAMEs.
You get "3(NXDOMAIN)" in case of failure.
There are 6 alternatives - vote for the best!
resolveip -s 216.34.181.xxx
If you can do better, submit your command here.
You must be signed in to comment.