hg255d+openwrt+openvpn+openssl=ipv4 to ipv6 to ipv4问题记录

按照此过程配置好之后又遇见了一些小问题

http://blog.claves.me/2015/05/13/openvpn_ipv6_openwrt/

问题一、部分域名DNS解析故障

部分国内CNAME域名无法解析,找不到解决问题的方法,随意尝试一方法后解决此问题。
解决办法1:
/etc/dnsmasq.conf后加入:

server=2001:4860:4860::8844 # google ipv6 public dns
server=2001:4860:4860::8888 #
server=8.8.4.4
server=223.5.5.5
server=8.8.8.8

解决办法2:
修改/etc/rc.d/S60dnsmasp文件:
将文件末尾:


        rm -f /tmp/resolv.conf
        [ $ADD_LOCAL_DOMAIN -eq 1 ] && [ -n "$DOMAIN" ] && {
                echo "search $DOMAIN" >> /tmp/resolv.conf
        }
        DNS_SERVERS="$DNS_SERVERS 127.0.0.1"
        for DNS_SERVER in $DNS_SERVERS ; do
                echo "nameserver $DNS_SERVER" >> /tmp/resolv.conf
        done

修改为:


        rm -f /tmp/resolv.conf
        [ $ADD_LOCAL_DOMAIN -eq 1 ] && [ -n "$DOMAIN" ] && {
                echo "search $DOMAIN" >> /tmp/resolv.conf
        }
        DNS_SERVERS="$DNS_SERVERS 8.8.8.8"
        for DNS_SERVER in $DNS_SERVERS ; do
                echo "nameserver $DNS_SERVER" >> /tmp/resolv.conf
        done

解决办法3:20150613更新!!!!!推荐!!!
创建: DNS文件

 
vi /etc/dns.conf
填入:
nameserver 8.8.8.8
nameserver 8.8.4.4

编辑 /etc/config/dhcp

vim /etc/config/dhcp
找到 option resolvfile
更改为:option resolvfile '/etc/dns.conf'

重启即可~!
分享到:更多 ()