Results 1 to 6 of 6

Thread: Trying to find out my DNS server address

  1. #1

    Default Trying to find out my DNS server address

    Hi,
    I am trying to
    find out my DNS server address using the command:
    # cat /etc/resolv.conf.
    However, what is returned is: nameserver fe80::1%wlan0.
    This does not look like an address! Can someone explain what is going on. All help will be greatly appreciated.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,877
    Blog Entries
    15

    Default Re: Trying to find out my DNS server address

    Quote Originally Posted by raydona View Post
    Hi,
    I am trying to
    find out my DNS server address using the command:
    # cat /etc/resolv.conf.
    However, what is returned is: nameserver fe80::1%wlan0.
    This does not look like an address! Can someone explain what is going on. All help will be greatly appreciated.
    Hi
    How are you configuring your network? I suspect NetworkManager and you have it set to dhcp/ipv6, if so it's getting the information from your wireless router and using that since fe80::1 is the gateway address. You need to log in there and see what is being used. If you want to set manually, just add via Network manager connection settings and apply to all users, then you should see /etc/resolv.conf change.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,871
    Blog Entries
    2

    Default Re: Trying to find out my DNS server address

    Quote Originally Posted by raydona View Post
    Hi,
    I am trying to
    find out my DNS server address using the command:
    # cat /etc/resolv.conf.
    However, what is returned is: nameserver fe80::1%wlan0.
    This does not look like an address! Can someone explain what is going on. All help will be greatly appreciated.
    When you run that command, it doesn't actually test what DNS server is being queried for hostname name resolution, you're reading what your machine is configured to query which is not exactly the same...

    There several commands you can run which actually execute a query which will also display the address of your DNS server,
    I prefer
    Code:
    nslookup
    When you execute the above command, your command prompt will change.
    You can now run a number of different commands that test your name resolution, two I often use are

    Simply type in a valid address, for example the following.
    Note the result which identifies the server you're querying and whether the server is authoritative
    Code:
    www.opensuse.org
    You can also specify a different DNS server temporarily by simply typing the following which points your machine to a Google DNS. Afterwards, type in an address you'd like to resolve just as you did above.
    Code:
    server 8.8.8.8
    You can exit your name server lookup (nslookup) with
    Code:
    quit
    Now, let's return to the DNS server listed in your /etc/resolv.conf
    That's a valid address, but it's IPv6 so it also means that your system is configured to support IPv6 and your DNS address was either handed to you by an IPv6 DHCP Server or was an auto-configuration (IPv6 supports setting up by detecting other machines around you).

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  4. #4
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,231

    Default Re: Trying to find out my DNS server address

    Quote Originally Posted by tsu2 View Post
    There several commands you can run which actually execute a query which will also display the address of your DNS server,
    Alas in this case dig, nslookup, etc. will probably display the local router-gateway (fe80::1%wlan0) as the name server.
    --
    slàinte mhath,
    rayH

    ~ knowing the right answer is easier than knowing the right question.

  5. #5
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,475

    Default Re: Trying to find out my DNS server address


  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,871
    Blog Entries
    2

    Default Re: Trying to find out my DNS server address

    Quote Originally Posted by eng-int View Post
    Alas in this case dig, nslookup, etc. will probably display the local router-gateway (fe80::1%wlan0) as the name server.
    That's OK,
    Many if not most SOHO Gateway devices are both the network's default gateway and provide DNS and DHCP services.
    Plus,
    As I described,
    If you want to test an alternative DNS, nslookup allows you to specify that other server.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Tags for this Thread

Posting Permissions

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