Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
What the best way to resolve local domain names?
« previous
next »
Print
Pages: [
1
]
Author
Topic: What the best way to resolve local domain names? (Read 7634 times)
+DS_DV+
Newbie
Posts: 45
Karma: 1
What the best way to resolve local domain names?
«
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+
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: What the best way to resolve local domain names?
«
Reply #1 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.
Logged
+DS_DV+
Newbie
Posts: 45
Karma: 1
Re: What the best way to resolve local domain names?
«
Reply #2 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?)
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: What the best way to resolve local domain names?
«
Reply #3 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.
Logged
+DS_DV+
Newbie
Posts: 45
Karma: 1
Re: What the best way to resolve local domain names?
«
Reply #4 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?
«
Last Edit: August 31, 2018, 07:07:01 pm by +DS_DV+
»
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: What the best way to resolve local domain names?
«
Reply #5 on:
September 01, 2018, 07:48:24 am »
You can whitelist additional hostnames. By default, unknown names are blocked.
Logged
+DS_DV+
Newbie
Posts: 45
Karma: 1
Re: What the best way to resolve local domain names?
«
Reply #6 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?
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
What the best way to resolve local domain names?