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

dns option has to be ipv6 #223

Open
jol64 opened this issue Oct 4, 2024 · 1 comment
Open

dns option has to be ipv6 #223

jol64 opened this issue Oct 4, 2024 · 1 comment

Comments

@jol64
Copy link

jol64 commented Oct 4, 2024

I was looking for how to announce different DNS servers to the local interface to replace the OpenWrt built in dnsmasq. The documentation claims "accepts IPv4 and IPv6", but I had to use

   list dns '::ffff:c0a8:b112' #192.168.177.18
   list dns '::ffff:c0a8:b113' #192.168.177.19

to get it to work.

@KA2107
Copy link

KA2107 commented Nov 30, 2024

@jol64 Are you using Luci to set the DNS entries? Luci seems to enforce only IPv6 addresses on these lines.

But you can manually edit /etc/config/dhcp to add IPv4 DNS entries which is used by odhcpd (as the IPv4 DHCP Server instead of dnsmasq). For example:

config dhcp 'lan'
	option interface 'lan'
        ........
	list dns '192.168.1.1'
	list dns 'fd00:1111:1111:1111::1'

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