OpenWrt中DHCP分配自定义DNS

通过Shell设置:

/etc/config/dhcp

config dhcp 'lan'
option interface 'lan'
option start '20'
option limit '99'
option leasetime '1h'
list 'dhcp_option' '6,114.114.114.114,223.5.5.5'

通过WEB方式设置:

找到“接口”——“LAN”——“DHCP服务器”——“高级设置”——“DHCP额外设置”里填写
6,114.114.114.114,223.5.5.5
就可以了

Related Posts

2 thoughts on “OpenWrt中DHCP分配自定义DNS”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.