Results 1 to 6 of 6

Thread: How do I find my DNS servers?

  1. #1
    Join Date
    Mar 2008
    Beans
    294

    How do I find my DNS servers?

    In windows I can type ipconfig/all to see my DNS servers what can I do in ubuntu to find my primary and secondary DNs servers. Interestingly my Ubuntu network connection is working fine but windows 7 is all fubared and I wanted to try setting a static IP address to see if that fixed it. The problem is I need my DNS servers to do so and I have no idea what they are.
    Ubuntu user from April 4, 2008. Never going back.

  2. #2
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How do I find my DNS servers?

    If you are behind a router, try using the routers gateway IP for a DNS entry. Alternately, you can just use OpenDNS's DNS servers which are:
    Code:
    208.67.222.222
    208.67.220.220
    There's a command out there somewhere to do this, but at present, it is escaping me.
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

  3. #3
    Join Date
    Jul 2008
    Location
    Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do I find my DNS servers?

    Quote Originally Posted by PoopyTheJ View Post
    In windows I can type ipconfig/all to see my DNS servers what can I do in ubuntu to find my primary and secondary DNs servers. Interestingly my Ubuntu network connection is working fine but windows 7 is all fubared and I wanted to try setting a static IP address to see if that fixed it. The problem is I need my DNS servers to do so and I have no idea what they are.
    Code:
    cat /etc/resolv.conf
    And -> Right click on the Network Manager icon -> Connection Information.

  4. #4
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I find my DNS servers?

    Quote Originally Posted by PoopyTheJ View Post
    In windows I can type ipconfig/all to see my DNS servers what can I do in ubuntu to find my primary and secondary DNs servers. Interestingly my Ubuntu network connection is working fine but windows 7 is all fubared and I wanted to try setting a static IP address to see if that fixed it. The problem is I need my DNS servers to do so and I have no idea what they are.
    If you use DHCP then these are assigned by your DHCP server - and this can be just your modem/DHCP server's IP address because it can act as a DHCP proxy.

    To see what your modem is actually using for DHCP, you need to access that device.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  5. #5
    Join Date
    Apr 2008
    Beans
    10

    Re: How do I find my DNS servers?

    I just can't believe that theres no simple method in Linux to check currently used DNS server but searching in my router configuration.

    "cat /etc/resolv.conf" gives me
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 127.0.0.1
    So it doesn't help.

  6. #6
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    16,196
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: How do I find my DNS servers?

    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.

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
  •