DNS issues after upgrading from OMV 4 to OMV 5

  • Hello everybody it's my first post here despite I've been using OMV since 2014. This forum have been a great help for me.


    I'm experiencing a situation similar to the following post.


    I've upgrade from OVM 4 to 5 about two weeks ago. And I've lost the DNS during the upgrade.

    I've been forced to run "dhclient" manually to be able to finish the upgrade.

    The upgrade to OMV 5 end-up being successful (I had to fix some minor things/plugins)

    But since the upgrade I've always have the same issue after a restart: the DNS do not work unless I run "dhclient".

    Like the above post, if I dont run dhclient, my network works anyway. Local network no issue at all and I can ping outside with ip address.



    I've tried all the following to setup eth0 without success:

    static settings with omv-firstaid

    dhcp settings with omv-firstaid

    static settings with omv gui

    dhcp settings with omv gui


    ...everytime I have to run "dhclient" to fix the dns


    I've check netplan files and it looks ok


    Would somebody know where this issue is coming from and how to fix it?

    • Offizieller Beitrag

    Please post the output of these commands using the code box feature of the forum


    cat /etc/resolv.conf

    ls -al /etc/resolv.conf

    systemctl status systemd-resolved.service



    This will not solve the issue, but might help to find the issue.

  • cat /etc/resolv.conf

    Code
    nameserver 192.168.83.1

    ls -al /etc/resolv.conf

    Code
    -rw-r--r-- 1 root root 24 Aug 10 08:31 /etc/resolv.conf

    systemctl status systemd-resolved.service

    Code
    ● systemd-resolved.service - Network Name Resolution
       Loaded: loaded (/lib/systemd/system/systemd-resolved.service; disabled; vendor preset: enabled)
      Drop-In: /lib/systemd/system/systemd-resolved.service.d
               └─resolvconf.conf
       Active: inactive (dead)
         Docs: man:systemd-resolved.service(8)
               https://www.freedesktop.org/wiki/Software/systemd/resolved
               https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
               https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
    • Offizieller Beitrag

    Try


    sudo rm /etc/resolv.conf && sudo ln -s /run/systemd/resolve/resolv.conf /etc/

    sudo systemctl enable systemd-resolved

    sudo systemctl start systemd-resolved


    then check the network configuration with omv-firstaid option 1 "configure network interface"

  • So did perform the actions from #4. As a result I lost the DNS (I didn't check at which step)

    I restarted to find the same situation than before. And running dhclient fixed it.


    Then when I added a second DNS (8.8.8.8) in the gui in network > interface > eth0 > advance settings, after saving I loss again the DNS

  • One thing I just noticed while I was updating portainer via omv extra, is that I lose the DNS in the middle of the process, and the install doesn't complete properly:

    So I have to manually run dhclient and then run the install a second time to get it successfully completed:

    Second attempt without running dhclient:

    Code
    Docker storage :: /var/lib/docker
    Agent port:: 8000
    Web port:: 9000
    Yacht port:: 8001
    arch   :: amd64
    option :: portainer
    state  :: install
    extras :: 5.6.2
    DNS error.  Exiting ...
    Done.

    Second attempt with running dhclient:


    ...And after the second install I lose the DNS again.

  • cat /etc/resolv.conf

    Code
    # Generated by dhcpcd from eth0.dhcp
    # /etc/resolv.conf.head can replace this line
    nameserver 127.0.0.1
    # /etc/resolv.conf.tail can replace this line

    ls -al /etc/resolv.conf

    Code
    lrwxrwxrwx 1 root root 32 Aug 10 13:15 /etc/resolv.conf -> /run/systemd/resolve/resolv.conf

    systemctl status systemd-resolved.service

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!