PowerDNS / openwrt-feeds

1 stars 0 forks source link

get upstream resolvers from UCI #6

Open Habbie opened 1 year ago

Habbie commented 1 year ago

Some people configure their WAN ports, including upstream DNS, manually. In those cases, the upstreams do not end up in resolv.conf.auto.

Some vendors modify OpenWrt to take DHCP-given DNS upstreams and put them in UCI.

To support both of these cases, we should be able to read upstreams from UCI.

rgacogne commented 1 year ago

Is there a standardized / usual place in the UCI config to read these from, by any chance?

Habbie commented 1 year ago

The modified device I have here sticks information from DHCP in both of these places:

dhcp.@dnsmasq[0].server='9.9.9.9'
network.EthWanItf_1.dns='9.9.9.9'

A vanilla openwrt router on which I configured it manually a long time ago:

dhcp.@dnsmasq[0].server='9.9.9.9'

so, seems that way!