首页 > 其他分享 >OpenWRT Dnsmasq在指定接口上工作

OpenWRT Dnsmasq在指定接口上工作

时间:2023-02-01 11:58:09浏览次数:53  
标签:tmp lan option loopback 接口 rebind Dnsmasq OpenWRT

设置如下

dnsmasq默认在loopback上工作

config dnsmasq 'landomain'
    option domainneeded '1'
    option boguspriv '1'
    option filterwin2k '0'
    option localise_queries '1'
    option rebind_protection '1'
    option rebind_localhost '1'
    option local '/lan/'
    option domain 'lan'
    option expandhosts '1'
    option nonegcache '0'
    option authoritative '1'
    option readethers '1'
    option leasefile '/tmp/dhcp.leases'
    option resolvfile '/tmp/resolv.conf.auto'
    option localservice '1'
    option nonwildcard '1'

    list notinterface 'loopback'
    list interface 'lan'

config dhcp 'lan'
    option instance 'landomain'
    option interface 'lan'
    option start '10'
    option limit '200'
    option leasetime '12h'

标签:tmp,lan,option,loopback,接口,rebind,Dnsmasq,OpenWRT
From: https://www.cnblogs.com/sudochen/p/17082094.html

相关文章