This repository has been archived by the owner on Apr 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Openwrt
lennylxx edited this page Dec 20, 2014
·
2 revisions
在 Openwrt 上使用 ipv6-hosts 文件
- 复制 hosts 文件到 /etc/hosts
- 修改文件权限
# chmod 644 /etc/hosts
- 修改 dnsmasq 配置文件
/etc/config/dhcp
config dnsmasq option domainneeded '1' option bogusnxdomain '1' option boguspriv '1' option localise_queries '1' option rebind_protection '1' option local '/lan/' option domain 'lan' option expandhosts '1' option authoritative '1' option readethers '1' option leasefile '/tmp/dhcp.leases' option resolvfile '/tmp/resolv.conf.auto'
- 重启 dnsmasq
# /etc/init.d/dnsmasq restart
测试
dig @192.168.1.1 www.google.com aaaa