DNS not working

  • Hi,


    I am lost with DNS configuration. I searched everywhere but I can´t find a working solution.


    Situtation is, that /etc/resolv.conf is always resetted to default when rebooting the OMV:


    root@intrepid:~# cat /etc/resolv.conf
    # 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


    When I enter my DNS Server manually in the file, it works. But next reboot -> defaults.


    Whatever I enter in GUI can´t be seen in /etc/resolv.conf which is linked to /etc/resolvconf/run/resolv.conf.


    I tried to run omv-firstaid to fix that, but dind´t work. I have set an static IPv4 adress with DNS server and IPv6 to DHCP.


    When I reboot the machine systemd-resolved is dead:


    root@intrepid:~# systemctl status systemd-resolved.service
    ● systemd-resolved.service - Network Name Resolution
    Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; vendor
    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-con
    https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-cl


    If I start the service by hand it is running.


    I also tried to run dpkg-reconfigure resolvconf. Didn´t help also.


    I have no more clue how to fix that.


    Can anyone help?

    • Official Post

    I deinstalled resolvconf and DNS behaves normal now

    What or who installed resolvconf?

    omv 8.0.6-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.2 | compose 8.1.2 | cterm 8.0 | borgbackup 8.0.2 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • This is a very good question.


    The system runs since OMV 3 and has always been upgraded. Perhaps something from the past?


    I also installed pihole directly on OMV, because I have no clue how I can use IPv6 with macvlan in Docker ;)


    Maybe it was pihole?

    • Official Post

    Maybe it was pihole?

    Yes and every time you update pihole, it will reinstall it. You can disable systemd-resolved in /etc/systemd/resolve.conf.

    omv 8.0.6-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.2 | compose 8.1.2 | cterm 8.0 | borgbackup 8.0.2 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!