Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
[SOLVED] DNS Resolver Number of hosts to cache issue
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] DNS Resolver Number of hosts to cache issue (Read 10321 times)
Kuragari
Jr. Member
Posts: 66
Karma: 11
[SOLVED] DNS Resolver Number of hosts to cache issue
«
on:
October 13, 2015, 12:28:31 pm »
Hello,
In DNS Resolver i can't change the number of hosts to cache. Normally by default the value is 10,000. If i change the value when i click on save i always go back to 1,000 hosts to cache.
Best regards,
«
Last Edit: October 15, 2015, 08:38:00 pm by franco
»
Logged
Kuragari
Jr. Member
Posts: 66
Karma: 11
Re: DNS Resolver Number of hosts to cache issue
«
Reply #1 on:
October 13, 2015, 02:01:41 pm »
Correction, in fact that work but the page is not refreshed when we click on save button. If I click on DNS Resolver then Advanced i show the good parameters.
Logged
franco
Administrator
Hero Member
Posts: 17474
Karma: 1587
Re: DNS Resolver Number of hosts to cache issue
«
Reply #2 on:
October 13, 2015, 08:34:33 pm »
Hi Kuragari,
thanks, this should fix it:
https://github.com/opnsense/core/commit/811a3287d4aa38c713bb299974fd8cb7d4f43670
It'll be in 15.7.17 anyway, but if you could confirm that would be great.
Cheers,
Franco
Logged
Kuragari
Jr. Member
Posts: 66
Karma: 11
Re: DNS Resolver Number of hosts to cache issue
«
Reply #3 on:
October 13, 2015, 09:02:08 pm »
Yes i confirm.
The configuration is saved correctly and applied but the configuration file is not read after applied.
Anyway if we click on DNS resolver then advanced the configuration file is read correctly.
Logged
franco
Administrator
Hero Member
Posts: 17474
Karma: 1587
Re: DNS Resolver Number of hosts to cache issue
«
Reply #4 on:
October 14, 2015, 12:02:42 am »
I'm not sure I understand. I wanted you to try the patch if you can and confirm that it *fixes* your issue, but maybe I misunderstood.
Logged
Kuragari
Jr. Member
Posts: 66
Karma: 11
Re: DNS Resolver Number of hosts to cache issue
«
Reply #5 on:
October 14, 2015, 08:02:25 am »
Ok, sorry, i haven't understand i need to apply the fix.
I see the link and the modification in php file. How can i apply it ?
Logged
franco
Administrator
Hero Member
Posts: 17474
Karma: 1587
Re: DNS Resolver Number of hosts to cache issue
«
Reply #6 on:
October 14, 2015, 08:31:03 am »
On the box (preferably SSH for copy+paste):
# cd /usr/local/www
# fetch
https://raw.githubusercontent.com/opnsense/core/811a3287d4aa38c713bb299974fd8cb7d4f43670/src/www/services_unbound.php
Thanks in advance.
Logged
Kuragari
Jr. Member
Posts: 66
Karma: 11
Re: DNS Resolver Number of hosts to cache issue
«
Reply #7 on:
October 14, 2015, 09:39:20 am »
Sorry, the fix don't work.
I have attached screenshot :
1 --> the fix file from this morning
2 --> make modifications (or not) click on save, OPNSense ask to apply changes
3 --> after applying everything is empty.
Anyway after step 3 if you click on generals settings, then come back in advanced settings the configuration is ok.
Logged
franco
Administrator
Hero Member
Posts: 17474
Karma: 1587
Re: DNS Resolver Number of hosts to cache issue
«
Reply #8 on:
October 14, 2015, 06:58:15 pm »
Okay, sorry, I confused save and apply. Try this instead:
# cd /usr/local/www
# fetch
https://raw.githubusercontent.com/opnsense/core/bc0fe3d43957dced04b43ba661ae73cca60b2014/src/www/services_unbound_advanced.php
Logged
Kuragari
Jr. Member
Posts: 66
Karma: 11
Re: DNS Resolver Number of hosts to cache issue
«
Reply #9 on:
October 15, 2015, 08:02:12 am »
Second fix work perfectly.
Thank you.
Logged
franco
Administrator
Hero Member
Posts: 17474
Karma: 1587
Re: [SOLVED] DNS Resolver Number of hosts to cache issue
«
Reply #10 on:
October 15, 2015, 08:38:35 pm »
Pas de problème
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
[SOLVED] DNS Resolver Number of hosts to cache issue