OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: imei on June 01, 2025, 01:42:41 PM

Title: strinct binding of Network Interfaces on Dnsmasq and Bind
Post by: imei on June 01, 2025, 01:42:41 PM
Hello all,
sorry in advance if this is a newbie question or I am posting it in the wrong place.
I have a firewall VM currently running on pfsense and I want it to be replaced by OPNsense.
So on my old box, I have enabled both dnsmasq and bind9 on port 53, but strictly binding them on their respect network connections. i.e bind9 on wan and dnsmasq on lan. none of them interfere w/ the other.
So I'm trying to copy cat the old configuration on new box, but I am confused about if there is a way around this implementation or not.
I mean whenever I want to enabled the bind server, I get the message "Dnsmasq DNS/DHCP is currently using this port." On bind panel there is no where to specify the network interface however I specified the IP addresses that are only associated to wan network . can't make it more strict so bind doesn't try to listen on LAN:53 .
On the other hand, on dnsmasq, there is this "interface" field that I put on lan so dnsmasq doesn't listen on global address and stays on LAN:53 only.
I assume that bind is trying to listen on 53 port on all interfaces and interferes with dnsmasq on lan interface.
any help? any thought are appreciated.