OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
› OpenWrt 官方网站
whetherTsmile
V2EX  ›  OpenWrt

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

  •  
  •   whetherTsmile · May 28, 2024 · 2420 views
    This topic created in 906 days ago, the information mentioned may be changed or developed.

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

    Supplement 1  ·  May 29, 2024
    暂时通过停止 lan 口下发 v6dns ,然后标签设备下发 v6dns 解决了
    option dns_service '0'
    option ra_dns '0'
    然后 tag 中在修改为 1 可以生效
    就是不明白为什么。。list dns 会不生效
    Supplement 2  ·  May 29, 2024
    我错了毫无软用
    2 replies  •  2024-05-28 21:14:21 +08:00
    SenLief
    SenLief
    May 28, 2024
    1
    看看有没有个 dhcpd6.conf 的配置文件
    whetherTsmile
    whetherTsmile
    OP
    May 28, 2024
    2
    @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 有出入
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2029 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 07:43 · PVG 15:43 · LAX 23:43 · JFK 02:43
    ♥ Do have faith in what you're doing.