OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: +DS_DV+ on August 29, 2018, 07:36:57 pm

Title: What the best way to resolve local domain names?
Post by: +DS_DV+ on August 29, 2018, 07:36:57 pm
Hi,

i try to set local domain names like eg
firewall.local
switch1.local
san.local
vm1.local
etc ...

i use unbound dns but it seems i cant figure out how to get it running.
the gola is that if i enter one of the adresses into firefox it "redirects" to the ip:port so its easyer to remember all the adresses.

with kind regards +DS_DV+
Title: Re: What the best way to resolve local domain names?
Post by: fabian on August 29, 2018, 08:30:59 pm
you don't want that - local is reserved for mdns. Others, for example "test", exist for internal use.
The easiest way is to use a host override like firewall.test for 192.168.0.1.
Title: Re: What the best way to resolve local domain names?
Post by: +DS_DV+ on August 31, 2018, 03:59:37 pm
the .local was only for example but thanks for the headsup.

can you tell me where to look for host overrides?

since overrrides from unbound dont seem to work.
(i set up opn.sense and if i use that in chomre it just opens up google)


PS: or is there a reverse Proxy in OPNSense which i can use (maybe also to add ports?)
Title: Re: What the best way to resolve local domain names?
Post by: fabian on August 31, 2018, 06:05:24 pm
Maybe you forgot to reload the unbound server after updating its configuration.

There are multiple reverse proxies. relayd, haproxy and nginx. All of them can be configured via a plugin.
Title: Re: What the best way to resolve local domain names?
Post by: +DS_DV+ on August 31, 2018, 06:29:09 pm
nvm got it working.

Only firewall doenst seem to like it - 501

i guess i cant use Host override for the sysem which unboundDNS is runing on.
is there an option to make an exeption rule for this one domain?
Title: Re: What the best way to resolve local domain names?
Post by: fabian on September 01, 2018, 07:48:24 am
You can whitelist additional hostnames. By default, unknown names are blocked.
Title: Re: What the best way to resolve local domain names?
Post by: +DS_DV+ on September 02, 2018, 11:58:11 am
i rebooted the firewall today to upgrade to a specter hardend bios.
afterwards the overrides dont work anymore.
i cant figure out why.

Are there any settings i have to set or enable in order to get the overrides working?