Results 1 to 8 of 8

Thread: DNS server detected by Network not written to resolv.conf

  1. #1

    Default DNS server detected by Network not written to resolv.conf

    Hi,

    Backgroud: Previously a 42.3 installation, then installation of a fresh Leap 15.1, and (in /etc/) I migrated only NetworkManager - to reuse the existing connections) and cups.

    The Network manager detects the DNS server correctly, according to it's log/journal and:
    Code:
    nmcli -f IP4.DNS connection show Kabelnetzverbindung
    IP4.DNS[1]:                                10.0.0.138
    But /etc/resolv.conf does not show an entry, and consequently name resolution does not work.
    After manually adjusting the file, I always run netconfig update -f afterwards, which always leads to an empty file again.

    Does anyone have an idea why NetworkManager does not pass on the DNS server information?

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,802
    Blog Entries
    14

    Default Re: DNS server detected by Network not written to resolv.conf

    I don't remember the details, but
    Code:
    sudo netconfig -f update
    should fix this.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3

    Default Re: DNS server detected by Network not written to resolv.conf

    Quote Originally Posted by Knurpht View Post
    I don't remember the details, but
    Code:
    sudo netconfig -f update
    should fix this.
    Well, I wrote that I did this already.

  4. #4
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,951

    Default AW: DNS server detected by Network not written to resolv.conf

    Post:
    Code:
    ls -al /etc/resolv.conf

  5. #5

    Default Re: DNS server detected by Network not written to resolv.conf

    Code:
    # ls -la /etc/resolv.conf
    lrwxrwxrwx 1 root root 30 Jul  8 12:56 /etc/resolv.conf -> /var/run/netconfig/resolv.conf
    netconfig itself is writing that file without the nameserver, so I suspect that netconfig and NetworkManager are not working properly together.

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

    Default Re: DNS server detected by Network not written to resolv.conf

    Pls clafiry and verify that your system is set up using Network Manager and that your network connection is configured entirely as a DHCP client without any settings that might over-ride the DHCP provided DNS servers.

    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!

  7. #7

    Default Re: DNS server detected by Network not written to resolv.conf

    Quote Originally Posted by tsu2 View Post
    Pls clafiry and verify that your system is set up using Network Manager and that your network connection is configured entirely as a DHCP client without any settings that might over-ride the DHCP provided DNS servers.
    I didn't know how to do that, because as NW already handled everything according to the logs and to the applet. I went to YAST and it's network connection section and applied the "handle by NW" setting again and now it works \o/

    Thanks assistance

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

    Default Re: DNS server detected by Network not written to resolv.conf

    all's well that ends well...

    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!

Posting Permissions

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