Stubby configuration with /etc/config/stubby or /etc/stubby/stubby.yml

Hi,

I installed stubby for DoT and configured it in /etc/config/stubby. Now I recognize, that there is also a /etc/stubby/stubby/stubby.yml file. In both seems to be the same settings made. My question is, which one of this files is the relevant one?

If you set uci stubby.global.manual to != 0 yaml is used, in default config yaml is generated from /etc/config.

If I understand it right in default, the configurations should be the same. In my case at a minimum the configured DNS servers are different.

If I understand it correctly, with the command below /etc/stubby/stubby.yml should be generated from the /etc/config/stubby file. How I can initiate this?

uci set stubby.global.manual='1'

1 Like

Yep, followed by uci commit stubby and service stubby reload
yaml example here

(it is referenced in uci file of newer stubby packages)

Thanks for your support. Unfortunately, after execution of the uci commands the stubby.yml is still unchanged. Any idea why?

Default is to generate stubby.yml somewhere in /tmp
If you set it to manual you have full config file in /etc/stubby and you have to edit that, ie one of configuraations is ignored at any given time.

Okay, and what I have to do, to set up the valid configuration in /etc/config/stubby and to transmit it to the stubby.yml file?

ps w | grep stubby
10088 stubby    8564 S    /usr/sbin/stubby -C /var/etc/stubby/stubby.yml

copy that file to /etc/

cat  /var/etc/stubby/stubby.yml > /etc/stubby/stubby.yml

Thanks, that worked.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.