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
trendy
July 10, 2022, 1:34pm
4
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
iyousif
September 11, 2022, 2:43pm
5
It only accepted the first line.
root@OpenWrt:~# uci add https-dns-proxy https-dns-proxy
cfg032d79
root@OpenWrt:~# uci rename https-dns-proxy.@https-dns-proxy[1]=cloudflare
root@OpenWrt:~# uci set https-dns-proxy.cloudflare.bootstrap_dns="1.1.1.2,1.0.0.2"
root@OpenWrt:~# uci set https-dns-proxy.cloudflare.dns.resolver_url="https://sec
urity.cloudflare-dns.com/dns-query"
uci: Parse error
root@OpenWrt:~# uci set https-dns-proxy.cloudflare.dns.listen_addr="127.0.0.1"
uci: Parse error
root@OpenWrt:~# uci set https-dns-proxy.cloudflare.dns.listen_port="5054"
uci: Parse error
root@OpenWrt:~#
trendy
September 12, 2022, 8:27am
6
Remove dns. between cloudflare and the resolver_url , listen_addr , and listen_port .