Hi there,
I've been using OpenWrt 22.03.5 on my Belkin RT3200 for the last couple of months, and have been enjoying it. I'm sort of stumped on something right now, and I can't find a direct answer through Googling, so I was hoping maybe the community had a solution.
For both of the iOS devices on my network, they seem to be hit or miss whether or not they can resolve to my server's local address. The server and the iOS devices are on the same LAN network. I've configured both devices to use a "manual" DNS server of my OpenWrt router.
Here is a portion of my dnsmasq
config that shows the DNS records I have setup:
config dnsmasq
...
list address '/mydomain.com/fd17:b6b2:88cd::42b'
list address '/mydomain.com/192.168.1.69'
Here is the log I'm seeing from logread
when I try to query one of my domains from my iOS device:
Sun Dec 3 03:35:25 2023 daemon.info dnsmasq[1]: 1757 192.168.1.178/56747 query[type=65] sub.mydomain.com from 192.168.1.178
Sun Dec 3 03:35:25 2023 daemon.info dnsmasq[1]: 1757 192.168.1.178/56747 forwarded sub.mydomain.com to 1.0.0.1
Sun Dec 3 03:35:25 2023 daemon.info dnsmasq[1]: 1758 192.168.1.178/53661 query[AAAA] sub.mydomain.com from 192.168.1.178
Sun Dec 3 03:35:25 2023 daemon.info dnsmasq[1]: 1758 192.168.1.178/53661 config sub.mydomain.com is fd17:b6b2:88cd::42b
Sun Dec 3 03:35:25 2023 daemon.info dnsmasq[1]: 1759 192.168.1.178/62199 query[A] sub.mydomain.com from 192.168.1.178
Sun Dec 3 03:35:25 2023 daemon.info dnsmasq[1]: 1759 192.168.1.178/62199 config sub.mydomain.com is 192.168.1.69
Sun Dec 3 03:35:25 2023 daemon.info dnsmasq[1]: 1757 192.168.1.178/56747 reply sub.mydomain.com is <CNAME>
Sun Dec 3 03:35:25 2023 daemon.info dnsmasq[1]: 1757 192.168.1.178/56747 reply pixie.porkbun.com is NODATA
Sun Dec 3 03:35:25 2023 daemon.info dnsmasq[1]: 1760 192.168.1.178/50035 query[A] pixie.porkbun.com from 192.168.1.178
Sun Dec 3 03:35:25 2023 daemon.info dnsmasq[1]: 1760 192.168.1.178/50035 forwarded pixie.porkbun.com to 1.0.0.1
Sun Dec 3 03:35:25 2023 daemon.info dnsmasq[1]: 1760 192.168.1.178/50035 reply pixie.porkbun.com is 44.227.76.166
Sun Dec 3 03:35:25 2023 daemon.info dnsmasq[1]: 1760 192.168.1.178/50035 reply pixie.porkbun.com is 44.227.65.245
Right now, my domain is parked on Porkbun, but it looks like both the A
and AAAA
records are resolving to the correct internal address. It's the pesky query[type=65]
that is being forwarded to the Cloudflare DNS server and returning the NODATA
response from my parked domain. I figure this is why I can intermittently connect to my local server, since sometimes the correct local address is returned to the device before the other response can return.
Reading through the docs, I've tried out the banip
package (which I have other future uses for), but as I understand it, the "doh" list won't really help me in this situation because it is dnsmasq
that is forwarding the request to my upstream DNS server anyway. Maybe I'm misunderstanding this, but it didn't seem to help when I added the "doh" list.
I've also seen others have similar questions on the PiHole subreddit which were solved by enabling a specific filter to ignore these types of DNS queries. This kind of functionality doesn't seem to natively exist in the OpenWrt version of dnsmasq
.
Are there any other solutions to this beyond setting up a local DNS server separate from OpenWrt? I'm sure a local DNS server is a future project for me, but I was hoping to solve this within OpenWrt to tide me over until then.
Thank you very much!