Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Openwrt

lennylxx edited this page Jan 5, 2015 · 2 revisions

在 Openwrt 上使用 ipv6-hosts 文件

  1. 复制 hosts 文件到 /etc/hosts
  2. 修改文件权限
    # chmod 644 /etc/hosts
  3. 修改 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'
  1. 重启 dnsmasq
# /etc/init.d/dnsmasq restart

===

测试

dig @192.168.1.1 www.google.com aaaa
Clone this wiki locally