OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: nzkiwi68 on June 25, 2020, 02:59:18 am

Title: BIND - how can I add domain and/or host overrides?
Post by: nzkiwi68 on June 25, 2020, 02:59:18 am
Wow, BIND is great.

I want to stop using unbound, I just need a way (rather than chaining unbound and BIND together... which I could do..) to simply add host and domain overrides like in the Unbound DNS overrides section.
Title: Re: BIND - how can I add domain and/or host overrides?
Post by: mimugmail on June 25, 2020, 07:46:22 am
Just create a domain and the needed records :)
Title: Re: BIND - how can I add domain and/or host overrides?
Post by: nzkiwi68 on June 26, 2020, 01:39:55 am
Yes, I can see that functionality, but it's not really it.

Some of the DNS servers for domain names I'd like to use have many 100's of records. I don't want to be a slave DNS server, I'd just like to conditionally forward DNS queries for those domain names to specific authoritative name servers, Microsoft DNS calls that conditional forwarders.

I know BIND does support this type of this behavior, "Forward Zones".
https://docstore.mik.ua/orelly/networking_2ndEd/dns/ch10_05.htm (https://docstore.mik.ua/orelly/networking_2ndEd/dns/ch10_05.htm)

Code: [Select]
zone "domain.com" {
   type forward;
   forwarders { 123.123.123.123; 123.123.123.124; };
};
Title: Re: BIND - how can I add domain and/or host overrides?
Post by: mimugmail on June 26, 2020, 08:05:22 am
Yes, there is already an open feature request.
Title: Re: BIND - how can I add domain and/or host overrides?
Post by: nzkiwi68 on June 27, 2020, 03:50:55 am
Thanks.