DNSMasq add dns server using a specific port

I have a DNS server running on port 54 and would like DNSMasq to set localhost:54 as a server. I know I could create a firewall redirect config, but it's important it goes through DNSMasq first.

As far as I can tell the dhcp_option 6 and server option don't allow specifying ports. I also thought about redirecting calls to an internal address and have an iptables rules to direct to port 54. But I was hoping there was something directly in DNSMasq.


1 Like