Cool Linux Tool: Resolve domain to IP and back with ‘dig’

view full story

http://www.suseblog.com – Once in awhile, I need to find out the IP address associated with a domain name. The tool I use to do this is dig. Here’s a quick example: scott@desktop:~> dig suseblog.com ; DiG 9.7.3 suseblog.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER dig -x ; DiG 9.7.3 -x ;; global options: +cmd ;; Got answer: ;; ->>HEADER (Distributions)