Replacing DNS/DHCP plug-in

  • I've been using the DNS/DHCP plugin for a long time now on earlier versions of OMV. I understand that it's not being ported to OMV5 and that Pi-Hole in a Docker would be a suitable replacement, and I'm finally getting around to looking at that, but I've hit what looks like quite a stumbling block for me.


    I currently make heavy use of the plug-in's flexibility of adding aliases to a "static entry", combined with Nginx named servers in Nginx server blocks. That allows me to have web siteA, siteB, siteC etc. hosted on my OMV machine, all listening on default port 80, so I can access them all by name without mucking about with separate port numbers in the URLs. Pi-Hole says "MAC address is mandatory and only one entry per MAC address is allowed", which seems to rule out multiple names per IP address, and yet both the OMV plug-in and Pi-Hole seem to be front-ends to DNSMasq.


    I know this isn't the place to ask for Pi-Hole support but, before I go asking elsewhere, can anyone tell me whether support for aliases like this is a clever feature added by the OMV plug-in rather than being an inherent feature of DNSMasq?

  • I know this isn't the place to ask for Pi-Hole support but, before I go asking elsewhere, can anyone tell me whether support for aliases like this is a clever feature added by the OMV plug-in rather than being an inherent feature of DNSMasq?

    There are at least two options (I use them). Either use the local dns section -> dns records of pihole (doesn't require mac) or add file to /etc/dnsmasq.d/.

    omv 5.6.13 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • I looked at that section but didn't think it would help because it takes domain names, not host names. Is the trick to use subdomains instead of hostnames (foo.mynet.lan, bar.mynet.lan, ...) instead of the hostname approach the plugin provides?


    I'd prefer using Pi-Hole to using a file in dnsmasq.d because I'd rather have a UI. I could create one I suppose but that's a wheel I'd rather not reinvent. Thanks for suggesting the option though.

  • I looked at that section but didn't think it would help because it takes domain names, not host names. Is the trick to use subdomains instead of hostnames (foo.mynet.lan, bar.mynet.lan, ...) instead of the hostname approach the plugin provides?

    dns is dns. A subdomain and hostname if using the same IP address are the same thing. I am using it for many hostnames right now. That is why I suggested it.

    omv 5.6.13 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Ah, right, thanks. I have a bit of a blind spot when it comes to network stuff - just as I think I'm getting my head around it I hit something that reminds me how little I fully understand. I had a bit of trouble with hostnames having to be fully-qualified until I realised that expansion requires the "search domain" to be set on the client and that it has to be set manually if it's not sent by DHCP. I've been spoiled by your plug-in that Just Worked! Now up & running with PiHole though, thanks for the guiding hand.

  • macom

    Added the Label resolved
  • macom

    Added the Label OMV 5.x

Participate now!

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