How To Guide: Encrypt DNS on your DD-WRT

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page Previous  1, 2, 3
Author Message
itwontbewe
DD-WRT User


Joined: 29 Sep 2020
Posts: 260
Location: United States

PostPosted: Thu Oct 26, 2023 18:22    Post subject: Reply with quote
apologies

I didn't realize that had changed

I use startup script
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Thu Oct 26, 2023 18:28    Post subject: Reply with quote
No worries. Things change, documentation falls behind. That's why when questions are asked, the issue is eventually solved.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Thu Oct 26, 2023 19:09    Post subject: Reply with quote
unbound.c line 170:
Code:
log_eval("unbound", "-c", getdefaultconfig("unbound", path, sizeof(path), "unbound.conf"));


getdefaultconfig:
Code:
const char *getdefaultconfig(char *service, char *path, size_t len, char *configname)
{
   sprintf(path, "/jffs/etc/%s", configname);
   FILE *fp = fopen(path, "r");   //test if custom config is available
   if (fp != NULL) {
      if (service)
         registerCustom(service);
      fclose(fp);
   } else {
      sprintf(path, "/tmp/%s", configname);
   }
   return path;
}


So to me it looks like that unbound will look for /jffs/etc/unbound.conf
But a slow USB stick will not always be up already so you might have to restart unbound after sleep 10 or is-mounted after a reboot.

But I did not test it so I might be wrong Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Thu Oct 26, 2023 19:45    Post subject: Reply with quote
Thanks for chasing the rabbit further down the hole, sir @egc. I stand by my previous statement: I was using the wrong search text Laughing
Quote:
Unless the specific bits syntax has changed or is hard-coded somewhere else in the source code, custom configs are gone outside of using a startup script. Unbound has been updated since either thread was started.

Found where it moved to Cool :
https://svn.dd-wrt.com/browser/src/router/libutils/libutils/bcmutils.c#L387

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Thu Oct 26, 2023 19:48    Post subject: Reply with quote
Yes it is hidden and difficult to read Sad
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Goto page Previous  1, 2, 3 Display posts from previous:    Page 3 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum