DNS, dnsmasq and unbound

Hello all,

I tried to find a precise answer by myself but after an amount of time searching online and reading documentation here I am.
I have the next scenario:

  • dnsmasq, providing only dhcp as the DNS port is set to zero
  • Unbound DNS as a DNS server for the plan.

So, with that in mind and without going into the details, dnsmasq is working perfectly as DHCP server and unbound is working perfectly as DNS server.

But, I am interested to find out an answer for the next questions:

  • Is dnsmasq adding a static DNS<>host entry somewhere that could be read by unbound to resolve A and PTR records associated to the hosts in the lan based on the DHCP information and hostname used there?
  • If no....
    -- Do I need to add entris manually to a specific file? just that?
    -- OR, do I need to enable dnsmasq on a port like 5353 to active the DNS functionality there and then point unbound via a zone configuration to query the internal dnsmasq server somehow? Note: I actually enabled dnsmasq on port 5353, restarted the service etc etc etc and it does not resolve PTR records for a host in the lan.
    -- I read I must create a A record manually and that will create a PTR record, but, does it apply to dnsmasq or unbound or how does it work?
    -- Do I need to install "dnsmasq-full" package?

Installed:

# opkg list-installed  | egrep -i unbound
libunbound - 1.17.1-1
luci-app-unbound - git-23.338.81752-6612893
luci-i18n-unbound-en - git-24.034.32907-d24e3be
unbound-anchor - 1.17.1-1
unbound-checkconf - 1.17.1-1
unbound-control - 1.17.1-1
unbound-daemon - 1.17.1-1
unbound-host - 1.17.1-1
root@OpenWrt:/etc# opkg list-installed  | egrep -i dns
dnsmasq - 2.86-16
rpcd-mod-rrdns - 20170710

I am missing something but I don't know exactly what.
I just need resolution, A and PTR, for the local hosts in the lan.

You have 3 documented choices from the Unbound package README (How to: Integrate with DHCP):

I would personally choose the parallel dnsmasq option.

Exactly, I was using and testing Parallel dnsmasq.setup
So dnsmasq is listening on 5353

Now, with dnsmasq running on 5353 I go to another computer in the same lan and I was doing nslookup with "set port=5353" but... here is windows...

C:\Windows\System32>nslookup -port=5353
Default Server:  UnKnown
Address:  192.168.14.1

> www.google.com
Server:  UnKnown
Address:  192.168.14.1

Non-authoritative answer:
Name:    www.google.com
Addresses:  2a00:1450:400b:c02::6a
          2a00:1450:400b:c02::69
          2a00:1450:400b:c02::93
          2a00:1450:400b:c02::63
          209.85.203.99
          209.85.203.106
          209.85.203.147
          209.85.203.104
          209.85.203.105
          209.85.203.103

>

hehe, but here is wireshark...

So basically nslookup with "set port=" or "--port=" does not work, misleading me.

Ok, with that info I can go back to work on the setup. Thanks for the info and the quick response.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.