Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - yoGhurt

#1
25.7 Series / BIND on Opnsense as Secondary to MS DNS
September 08, 2025, 04:40:21 PM
Hi,

Could someone help me with configuring BIND in my environment, as I'm stuck?
I'm trying to figure out how to configure BIND with my AD enabled DNS server on WS 2019. I've seen a few topics on this forum and around the Internet, but I'm definitely missing some pieces.

According to what I have I should on AD DNS:
- Enable BIND secondaries on AD DNS
- Add Opnsense to Name Servers for all Forward Lookup Zones
- Enable Zone Transfer for machines on list above


On Opnsense:
- Add both DNSes to System -> General -> Networking
- Confirm that "Allow DNS server list to be overridden by DHCP/PPP on WAN" is unchecked
- Disable other DNS services like Unbound
- Do basic BIND configuration
- Add my domain.local and _msdcs.domain.local to Secondary Zones

and with that I'm stuck - access to the Internet works, but from test client I still cannot ping any test service that's under this domain.
I wasn't sure if ACL was needed, but created one basic for my whole IP range, but that helped only partly. Previously I had errors where Opnsense couldn't sync with AD DNS. Now, at least it syncs something, but I'm getting "Transfer status: unexpected end of input" in BIND log.

Any advice where I should check next, would be helpful.

Inb4:
- Why? Because currently I'm using only Unbound that has query forwarders to my DC controllers. Problem is, that this isn't redundant in any way and when Opnsense isn't available (for any reason), my local network dies.
- Why not 2x MS DNS? Because I'm not sure if want to keep everything on these servers, wanted to still use Opnsense for DNS and it was interesting to test if it's even possible. Also, for non-domain devices, Opnsense is "closer" in network then my DNSes on domain controllers.


Edit:

Nevermind - I figured this out.

- Instead of System -> General -> Networking, you have to add your DNSes to DHCP configuration. In my case it was Services -> ISC DHCPv4 -> [LAN] -> DNS Servers. If you want more then two DNS Servers, check this topic https://forum.opnsense.org/index.php?topic=22078.0.
- Create basic ACL with your IP subnet - for example 192.168.1.0/24. Then assign this ACL to "Recursion", "Allow Transfer" and "Allow query" in General tab.
- On AD DNS, optionally instead of adding your router to Name Servers, select last option in "Zone Transfer" and add Opnsense on list there. Everything depends on your situation

#2
Hi,
I'm refreshing this topic to thanks franco for your suggestion and to leave more information for anyone who would have same or similar problem in future. For me removing physical interface from PPoE configuration solved most of my problems with WAN's connection stability.
I searched a lot of threads and tried a lot of options, including:
- https://forum.opnsense.org/index.php?topic=41574.0
- https://forum.opnsense.org/index.php?topic=28508.0
- tried most of tunables from https://forum.opnsense.org/index.php?topic=37006.30
and many others over Internet, but still there was same pattern:
 
2025-07-21T17:27:44 Notice ppp [wan_link0] LCP: Down event
2025-07-21T17:27:44 Notice ppp [wan_link0] Link: DOWN event
2025-07-21T17:27:44 Notice ppp [wan_link0] PPPoE connection timeout after 9 seconds
2025-07-21T17:27:35 Notice ppp [wan_link0] PPPoE: Connecting to ''
2025-07-21T17:27:35 Notice ppp [wan_link0] Link: reconnection attempt 659
2025-07-21T17:27:34 Notice ppp [wan_link0] Link: reconnection attempt 659 in 1 seconds
2025-07-21T17:27:34 Notice ppp [wan_link0] LCP: Down event
2025-07-21T17:27:34 Notice ppp [wan_link0] Link: DOWN event
2025-07-21T17:27:34 Notice ppp [wan_link0] PPPoE connection timeout after 9 seconds
2025-07-21T17:27:25 Notice ppp [wan_link0] PPPoE: Connecting to ''
2025-07-21T17:27:25 Notice ppp [wan_link0] Link: reconnection attempt 658
2025-07-21T17:27:21 Notice ppp [wan_link0] Link: reconnection attempt 658 in 4 seconds
2025-07-21T17:27:21 Notice ppp [wan_link0] LCP: Down event
2025-07-21T17:27:21 Notice ppp [wan_link0] Link: DOWN event
2025-07-21T17:27:21 Notice ppp [wan_link0] PPPoE connection timeout after 9 seconds
2025-07-21T17:27:12 Notice ppp [wan_link0] PPPoE: Connecting to ''
2025-07-21T17:27:12 Notice ppp [wan_link0] Link: reconnection attempt 657
2025-07-21T17:27:09 Notice ppp [wan_link0] Link: reconnection attempt 657 in 3 seconds
2025-07-21T17:27:09 Notice ppp [wan_link0] LCP: Down event
2025-07-21T17:27:09 Notice ppp [wan_link0] Link: DOWN event
2025-07-21T17:27:09 Notice ppp [wan_link0] PPPoE connection timeout after 9 seconds
2025-07-21T17:27:00 Notice ppp [wan_link0] PPPoE: Connecting to ''
2025-07-21T17:27:00 Notice ppp [wan_link0] Link: reconnection attempt 656
2025-07-21T17:26:58 Notice ppp [wan_link0] Link: reconnection attempt 656 in 2 seconds
2025-07-21T17:26:58 Notice ppp [wan_link0] LCP: Down event
2025-07-21T17:26:58 Notice ppp [wan_link0] Link: DOWN event
2025-07-21T17:26:58 Notice ppp [wan_link0] PPPoE connection timeout after 9 seconds
2025-07-21T17:26:49 Notice ppp [wan_link0] PPPoE: Connecting to ''
2025-07-21T17:26:49 Notice ppp [wan_link0] Link: reconnection attempt 655
2025-07-21T17:26:48 Notice ppp [wan_link0] Link: reconnection attempt 655 in 1 seconds
2025-07-21T17:26:48 Notice ppp [wan_link0] LCP: Down event
2025-07-21T17:26:48 Notice ppp [wan_link0] Link: DOWN event

After removing interface from PPPoE in Point-to-Point section, I no longer see these information in general log. In result I have setup:
WAN -> PPPoE -> vlan01 -> physical interface (igc0).

What's funny, I ended with this setup after taking together information from older and newer topics that pointed igc0 and vlan01 should be assigned to PPPoE. I guess that 40hzshadow ended with same result.