How to add second DoH Resolver from SSH

I am using ControlD as DoH provider. It's showing wrong in the UI interface, reflected as AhaDNS. I need to know the commands to add two DoH providers from the SSH as doing this from the Web UI replacing my ControldD with AhaDNS as a main DOH when saving the configurations.

root@OpenWrt:~# cat /etc/config/https-dns-proxy

config main 'config'
        option update_dnsmasq_config '*'
        list force_dns_port '53'
        list force_dns_port '853'
        option force_dns '1'

config https-dns-proxy 'dns'
        option bootstrap_dns 'Controld IP Addresses - Correct'
        option resolver_url 'Controld URL Correct'
        option listen_addr '127.0.0.1'
        option listen_port '5053'

Add a 2nd entry, check the file, change based on your needs.

What isn't in there, should be displayed if you run uci show.

Yes, Sir.. but how I can do that; Adding another section from SSH?

root@OpenWrt:~# uci set https-dns-proxy.@https-dns-proxy[1].bootstrap_dns[1]="1.1.1.2,1.0.0.2"
uci: Parse error
root@OpenWrt:~# uci set https-dns-proxy.@https-dns-proxy.bootstrap_dns[1]="1.1.1.2,1.0.0.2"
uci: Parse error
root@OpenWrt:~# uci set https-dns-proxy[1].@https-dns-proxy.bootstrap_dns[1]="1.1.1.2,1.0.0.2"
uci: Parse error
root@OpenWrt:~# uci set https-dns-proxy[1].@https-dns-proxy.bootstrap_dns="1.1.1.2,1.0.0.2"
uci: Entry not found
root@OpenWrt:~# uci set https-dns-proxy[1].@https-dns-proxy[1].bootstrap_dns="1.1.1.2,1.0.0.2"
uci: Entry not found
root@OpenWrt:~# uci set https-dns-proxy.@https-dns-proxy[1].bootstrap_dns="1.1.1.2,1.0.0.2"
uci: Invalid argument
root@OpenWrt:~# uci set https-dns-proxy.@https-dns-proxy[1].bootstrap_dns[1]="1.1.1.2,1.0.0.2"
uci: Parse error
root@OpenWrt:~# uci set https-dns-proxy.@https-dns-proxy[1].bootstrap_dns^C1.1.1.2,1.0.0.2"
root@OpenWrt:~# ^C
root@OpenWrt:~# ^C
root@OpenWrt:~# uci set https-dns-proxy.@https-dns-proxy[1].bootstrap_dns[1]="1.1.1.2,1.0.0.2"
uci: Parse error
uci add https-dns-proxy https-dns-proxy
uci rename https-dns-proxy.@https-dns-proxy[1]=testttt
uci set https-dns-proxy.testttt.bootstrap_dns="1.1.1.2,1.0.0.2"
...
uci commit https-dns-proxy
service https-dns-proxy restart
1 Like