Skip to content

Finding out your IP address by DNS querying

July 30, 2010

A little trick to find out your outgoing IP address through a DNS query:

iarlyy@wolfman $ dig +short

This is it!… Happy Linuxing!


From → General, Linux

  1. Manuel permalink

    Why to complicate?

    Simple do:
    $ ifconfig

    and obtain the same result.


    • iarlyy permalink

      if you are behind a Firewall ifconfig wouldn’t answer your real outgoing IP address but your pc IP address

  2. mike permalink

    Great tip. Went straight into my .aliases


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: