Loading... Netflix 默认 IPv6 优先,这就导致如果家里的宽带支持 IPv6,Netflix就会打不开。 这时可以设置 Dnsmasq 使得 Netflix 的 AAAA 解析为空。 ## 主路由 AC86U ```shell cat >> /jffs/configs/dnsmasq.d/dnsmasq.conf <<EOF # Null AAAA response on these domains server=/fast.com/# address=/fast.com/:: server=/netflix.com/# address=/netflix.com/:: server=/netflix.net/# address=/netflix.net/:: server=/nflxso.net/# address=/nflxso.net/:: server=/nflxext.com/# address=/nflxext.com/:: server=/nflximg.com/# address=/nflximg.com/:: server=/nflximg.net/# address=/nflximg.net/:: server=/nflxvideo.net/# address=/nflxvideo.net/:: server=/netflixdnstest0.com/# address=/netflixdnstest0.com/:: server=/netflixdnstest1.com/# address=/netflixdnstest1.com/:: server=/netflixdnstest2.com/# address=/netflixdnstest2.com/:: server=/netflixdnstest3.com/# address=/netflixdnstest3.com/:: server=/netflixdnstest4.com/# address=/netflixdnstest4.com/:: server=/netflixdnstest5.com/# address=/netflixdnstest5.com/:: server=/netflixdnstest6.com/# address=/netflixdnstest6.com/:: server=/netflixdnstest7.com/# address=/netflixdnstest7.com/:: server=/netflixdnstest8.com/# address=/netflixdnstest8.com/:: server=/netflixdnstest9.com/# address=/netflixdnstest9.com/:: EOF service restart_dnsmasq ``` ## 旁路由 N1 ```shell cat >> `ps -w | grep dnsmasq | grep -Eo /var/etc/dnsmasq.conf[.][a-zA-Z0-9]+` <<EOF # Null AAAA response on these domains server=/fast.com/# address=/fast.com/:: server=/netflix.com/# address=/netflix.com/:: server=/netflix.net/# address=/netflix.net/:: server=/nflxso.net/# address=/nflxso.net/:: server=/nflxext.com/# address=/nflxext.com/:: server=/nflximg.com/# address=/nflximg.com/:: server=/nflximg.net/# address=/nflximg.net/:: server=/nflxvideo.net/# address=/nflxvideo.net/:: server=/netflixdnstest0.com/# address=/netflixdnstest0.com/:: server=/netflixdnstest1.com/# address=/netflixdnstest1.com/:: server=/netflixdnstest2.com/# address=/netflixdnstest2.com/:: server=/netflixdnstest3.com/# address=/netflixdnstest3.com/:: server=/netflixdnstest4.com/# address=/netflixdnstest4.com/:: server=/netflixdnstest5.com/# address=/netflixdnstest5.com/:: server=/netflixdnstest6.com/# address=/netflixdnstest6.com/:: server=/netflixdnstest7.com/# address=/netflixdnstest7.com/:: server=/netflixdnstest8.com/# address=/netflixdnstest8.com/:: server=/netflixdnstest9.com/# address=/netflixdnstest9.com/:: EOF kill `ps | grep dnsmasq | grep -E dnsmasq.conf[.][a-zA-Z0-9]+ | awk '{print $1}'` # 等待几秒 dnsmasq 会自动重启 ``` 最后修改:2022 年 03 月 07 日 03 : 18 PM © 允许规范转载 赞赏 如果觉得我的文章对你有用,请随意赞赏 赞赏作者 支付宝微信
1 条评论
《小镇春色》欧美剧高清在线免费观看:https://www.jgz518.com/xingkong/33599.html