openwrt 怎么单独给某个设备下发 ipv6 的 dns

31 天前
 whetherTsmile

ui 上通告的 IPv6 DNS 服务器 只能给所有设备下发 在 openwrt 的 /etc/config/dhcp 中修改文件,可以指定单独设备分配 ipv4 的 dns 或者其他信息 config host
option name 'device'
option dns '1'
option mac 'AA:BB:CC:DD:EE:FF'
option ip '192.168.5.26'
option tag 'other_dns'

config tag 'other_dns'
list dhcp_option '6,192.168.5.7'

但是 ipv6 的 dns 在添加了 list dns 'fd::dee' 的情况下并没有生效

656 次点击
所在节点    OpenWrt
2 条回复
SenLief
31 天前
看看有没有个 dhcpd6.conf 的配置文件
whetherTsmile
31 天前
@SenLief #1 没找到这个文件,我看他 lan 口的 ipv6dns 就是写在这里的,config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option force '1'
list dns 'fd::1' 另外我使用的是 istoreos ,不知道会不会和原版 openwrt 有出入

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1044838

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX