What the best way to resolve local domain names?

Started by +DS_DV+, August 29, 2018, 07:36:57 PM

Previous topic - Next topic
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+
with kind regards

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.

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?)
with kind regards

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.

August 31, 2018, 06:29:09 PM #4 Last Edit: August 31, 2018, 07:07:01 PM by +DS_DV+
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?
with kind regards

You can whitelist additional hostnames. By default, unknown names are blocked.

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?

with kind regards