OPNsense Forum

Archive => 15.7 Legacy Series => Topic started by: Kuragari on October 13, 2015, 12:28:31 pm

Title: [SOLVED] DNS Resolver Number of hosts to cache issue
Post by: Kuragari 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,
Title: Re: DNS Resolver Number of hosts to cache issue
Post by: Kuragari 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.
Title: Re: DNS Resolver Number of hosts to cache issue
Post by: franco 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
Title: Re: DNS Resolver Number of hosts to cache issue
Post by: Kuragari 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.
Title: Re: DNS Resolver Number of hosts to cache issue
Post by: franco 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. :)
Title: Re: DNS Resolver Number of hosts to cache issue
Post by: Kuragari 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 ?
Title: Re: DNS Resolver Number of hosts to cache issue
Post by: franco 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. :)
Title: Re: DNS Resolver Number of hosts to cache issue
Post by: Kuragari 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.
Title: Re: DNS Resolver Number of hosts to cache issue
Post by: franco 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
Title: Re: DNS Resolver Number of hosts to cache issue
Post by: Kuragari on October 15, 2015, 08:02:12 am
Second fix work perfectly.  :)

Thank you.
Title: Re: [SOLVED] DNS Resolver Number of hosts to cache issue
Post by: franco on October 15, 2015, 08:38:35 pm
Pas de problème :)