Results 1 to 9 of 9

Thread: ip address question

  1. #1
    Join Date
    May 2008
    Location
    St. Louis Mo
    Beans
    143
    Distro
    Ubuntu 12.04 Precise Pangolin

    ip address question

    What command do I use to find addresses for DNS Gateway DHCP local ipaddress? Like in windows when you use ipconfig -all it shows all this stuff.

  2. #2
    Join Date
    Feb 2010
    Location
    Land of Confusion
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: ip address question

    Code:
    ifconfig
    will show the local IP, but not the DNS.
    Last edited by uRock; August 18th, 2013 at 08:56 PM.
    Thank you for your contributions. "So long and thanks for the fish!"

  3. #3
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    6,420
    Distro
    Ubuntu

    Re: ip address question

    I know if you install curl you can run
    Code:
    curl ifconfig.me
    And get the Internet ip address you're using.

    There are other elaborate ways such as the site checkip.

    But, yes as per the thread ifconfig is the linux equivalent of ipconfig.
    Last edited by deadflowr; August 18th, 2013 at 11:49 PM. Reason: Twas wrong thinking
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  4. #4
    Join Date
    May 2008
    Location
    St. Louis Mo
    Beans
    143
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: ip address question

    Curl worked for me ok. what shows the ip for dhcp server and gateway ip?

  5. #5
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    6,420
    Distro
    Ubuntu

    Re: ip address question

    You can try
    Code:
    nm-tool
    Which should at least list the gateway address.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  6. #6
    Join Date
    Apr 2012
    Beans
    6,561

    Re: ip address question

    With recent version of the network-manager package, you also get 'nmcli' - which goes a bit deeper than nm-tool e.g.

    Code:
    nmcli dev list
    
    nmcli dev list iface wlan0
    
    nmcli dev list | grep '^IP\|^DHCP'

  7. #7
    Join Date
    May 2008
    Location
    St. Louis Mo
    Beans
    143
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: ip address question

    curl ifcongfig.me yields XX.XX.XX.XX
    ifconfig is 192.168..1.70
    is the XX.XX.XX.XX my external gatway ip address?
    Last edited by lisati; August 19th, 2013 at 02:45 AM. Reason: Obfuscated public IP address to help protect privacy

  8. #8
    Join Date
    Mar 2013
    Beans
    115

    Re: ip address question

    yes that is your external IP.

    if you are using ubuntu(unity) at the clock at top right click on network icon at the bottom 2nd from bottom is the connection information. will show you the gateway and dns servers.

  9. #9
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: ip address question

    Quote Originally Posted by macstl View Post
    curl ifcongfig.me yields XX.XX.XX.XX
    ifconfig is 192.168..1.70
    is the XX.XX.XX.XX my external gatway ip address?
    You're on the right track. I've edited out the public IP address to help avoid attacks by bots.
    Forum DOs and DON'Ts
    Never assume that information you find using a search engine is up-to-date.
    Please use CODE tags.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •