OPNsense Forum

Archive => 16.1 Legacy Series => Topic started by: Pedro on March 16, 2016, 07:12:24 pm

Title: DNS Overides and subdomains
Post by: Pedro on March 16, 2016, 07:12:24 pm
Hi All,

I'm rather new to opnsense and firewalls in general. I have however been tasked with migrating from an aging Zentyal install to something more secure and focused (we don't need all the bells and whistles Zentyal offers).

I've managed to get things setup and working normally, and now I'm trying to mirror what we currently have, and this is where I've hit a snag.

We currently have a couple realms or domains in Zentyal, something along the lines of:

Code: [Select]
company.lan =>
dev.company.lan =>

company.lan is a dhcp pool whereas dev.company.lan are statically assigned IPs.

I've created a static lease for vm1.dev.company.lan with and added a host override in DNS Resolver with vm1.dev.company.lan and the ip. However, whenever I try and do a lookup from another machine in company.lan, I get:

vm1.company.lan has address and not vm1.dev.company.lan

I hope this makes sense to some and hopefully you'll be able to help.

Title: Re: DNS Overides and subdomains
Post by: franco on March 17, 2016, 08:29:51 am
Hi P,

Welcome. :)

I've tried this with the DNS forwarder in the "host overrides" section for individual IPs and it works.

The resolver is indeed not 100% correct. The code for this is newer and just underwent a substantial rework. We have a few remaining bugs that will be fixed soon, e.g.:


For now I can only triage and offer a workaround using the forwarder, unless that setup is not flexible enough WRT your previous setup. More on this soon.

Title: Re: DNS Overides and subdomains
Post by: Pedro on March 17, 2016, 10:19:44 am
Hi Franco.

Thank you for your prompt reply. I've tested this and it is indeed working as I need it to work, so until those bugs are squashed, this will suffice as a workaround.

Thanks again for the help and good luck fixing those bugs. If I can help troubleshoot anything further, do let me know.