Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get upstream resolvers from UCI #6

Open
Habbie opened this issue Aug 11, 2023 · 2 comments
Open

get upstream resolvers from UCI #6

Habbie opened this issue Aug 11, 2023 · 2 comments

Comments

@Habbie
Copy link
Member

Habbie commented Aug 11, 2023

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
Copy link
Member

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

@Habbie
Copy link
Member Author

Habbie commented Aug 14, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants