V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
whetherTsmile
V2EX  ›  OpenWrt

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

  •  
  •   whetherTsmile · 28 天前 · 616 次点击

    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' 的情况下并没有生效

    第 1 条附言  ·  27 天前
    暂时通过停止 lan 口下发 v6dns ,然后标签设备下发 v6dns 解决了
    option dns_service '0'
    option ra_dns '0'
    然后 tag 中在修改为 1 可以生效
    就是不明白为什么。。list dns 会不生效
    第 2 条附言  ·  27 天前
    我错了毫无软用
    2 条回复    2024-05-28 21:14:21 +08:00
    SenLief
        1
    SenLief  
       28 天前
    看看有没有个 dhcpd6.conf 的配置文件
    whetherTsmile
        2
    whetherTsmile  
    OP
       28 天前
    @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 有出入
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1187 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 23:02 · PVG 07:02 · LAX 16:02 · JFK 19:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.