Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
15.1 Legacy Series
»
[SOLVED] DNS Forwarder: Can't resolve on LAN
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] DNS Forwarder: Can't resolve on LAN (Read 24742 times)
weust
Hero Member
Posts: 650
Karma: 57
[SOLVED] DNS Forwarder: Can't resolve on LAN
«
on:
March 18, 2015, 11:54:18 am »
I am using the DNS Fordwarder (default setting) and added some override entries for a couple of machines on my home LAN network.
Maybe I am doing things wrong, but I can't resolve any of those machines. Not with a ping or a nslookup.
In nslookup, when I type in the hostname of one of those entries, it returns the message:
Quote
*** opnsense.local.net can't find hostname: Non-existent domain
To me that means that the entry is simply not registered in the DNS server file/database.
Perhaps I am interpreting the override entries wrong, and if so, where do I add my own entries?
If this is a bug, I will add an issue on GitHub.
«
Last Edit: March 25, 2015, 10:13:15 am by franco
»
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.
AdSchellevis
Administrator
Hero Member
Posts: 907
Karma: 184
Re: DNS Forwarder: Can't resolve on LAN
«
Reply #1 on:
March 18, 2015, 09:04:26 pm »
Apparently the hosts file is not regenerated after apply.
Should be fixed with commit :
https://github.com/opnsense/core/commit/c30080e503a20fbd379800374d29ec679e72fea0
Logged
weust
Hero Member
Posts: 650
Karma: 57
Re: DNS Forwarder: Can't resolve on LAN
«
Reply #2 on:
March 18, 2015, 09:08:15 pm »
Ah, that explains it
Is it safe for me to commit those changes by hand?
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.
AdSchellevis
Administrator
Hero Member
Posts: 907
Karma: 184
Re: DNS Forwarder: Can't resolve on LAN
«
Reply #3 on:
March 18, 2015, 09:11:42 pm »
The safest way is to only add the single line "system_hosts_generate();" to
/usr/local/www/services_dnsmasq.php
Around line 108.
Logged
weust
Hero Member
Posts: 650
Karma: 57
Re: DNS Forwarder: Can't resolve on LAN
«
Reply #4 on:
March 18, 2015, 09:14:09 pm »
Will do, thanks.
Want me to create an issue on GitHub for this or have you already?
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.
AdSchellevis
Administrator
Hero Member
Posts: 907
Karma: 184
Re: DNS Forwarder: Can't resolve on LAN
«
Reply #5 on:
March 18, 2015, 09:16:11 pm »
Already fixed, so let's ignore this on for now
Logged
weust
Hero Member
Posts: 650
Karma: 57
Re: DNS Forwarder: Can't resolve on LAN
«
Reply #6 on:
March 18, 2015, 09:58:17 pm »
Alrighty then
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
15.1 Legacy Series
»
[SOLVED] DNS Forwarder: Can't resolve on LAN