Currently, only one DNS server is allowed for both dns_server and china_dns_server, and specification of non-standard port is not possible in LuCI.
But in fact, chinadns-ng allows up to two DNS servers for both trust-dns and china-dns, and allows non-standard port.
Setting two DNS servers can increase stability compared with one server in case it fails. Non-standard port may be necessary for some use cases, e.g., DNS over HTTPS as implemented by https-dns-proxy.
As a workaround, it is possible to use UCI command to achieve the goal, for example:
uci set homeproxy.config.china_dns_server='127.0.0.1#5054,127.0.0.1#5053'
And it works as expected. However, the input value is not considered as a valid IP address in LuCI, making it not possible to further modify other settings in LuCI.
It will be great if such setting can be allowed in future versions.
Currently, only one DNS server is allowed for both
dns_server
andchina_dns_server
, and specification of non-standard port is not possible in LuCI. But in fact, chinadns-ng allows up to two DNS servers for both trust-dns and china-dns, and allows non-standard port. Setting two DNS servers can increase stability compared with one server in case it fails. Non-standard port may be necessary for some use cases, e.g., DNS over HTTPS as implemented by https-dns-proxy. As a workaround, it is possible to use UCI command to achieve the goal, for example:And it works as expected. However, the input value is not considered as a valid IP address in LuCI, making it not possible to further modify other settings in LuCI. It will be great if such setting can be allowed in future versions.