CC

Results 13 comments of CC

好像把sniproxy多重启一次就解决了。。。。令人迷惑。。。

> 如果动态ip是ddns,也就是服务器的地址是一个域名,你可以研究一下cname的用法 那这个ip改成127.0.0.1 可以吗?

> 改成127.0.0.1的话,在别的主机上解析域名就都成127.0.0.1了 这样啊,那我试试ddns

> 如果动态ip是ddns,也就是服务器的地址是一个域名,你可以研究一下cname的用法 试了一下cname,感觉这玩意挺鸡肋的,必须还要读 /etc/hosts 才行,不能自动变更。 其实自己写个脚本监控一下IP变化也可以,但是dnsmasq好像不能reload配置文件,只能restart整个服务,这种解析的体验肯定不太平滑…

> 你可以写个脚本自动更新一个`addn-hosts=`文件,当然格式和`/etc/hosts`一样,然后还是利用cname解析到`addn-hosts=`中的域名,这样应该可以跳过频繁restart,可以测试一下 试了下,没啥用,效果和/etc/hosts是一样的,只不过都是要restart dnsmasq后才能拿到最新的ip.... 感觉真是很奇怪。。。/etc/hosts里面这种,按理说应该就是每次去拿最新的ip,不知道为什么还要restart 后才能拿到最新的ip。。。。

找到了一个办法,一个老外写的 https://serverfault.com/a/934681 用下面这个命令给dnsmasq发送SIGHUP信号就可以reload host file了 `cat /var/run/dnsmasq.pid|xargs kill -SIGHUP`

> 如果动态ip是ddns,也就是服务器的地址是一个域名,你可以研究一下cname的用法 这个cname很鸡肋啊,竟然不支持通配符。。。。虽然作者的官方文档上写着支持。。 http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html --cname as long as the record name is in the **authoritative domain**. If the target of the CNAME is unqualified, then it is qualified with the...

感觉好像没什么好办法去优化下了,看了下好像一个bootstrap可以绑定多个端口, 这样的话就不用每个端口都去初始化一个bootstrap对象了 但是如果要统计流量的话就有点麻烦了,每个pipeline是需要一个独立的trafficHandler来绑定的

It's quite strange this issue got resolved after i **restart sniproxy again** , i still can not figure out reason

> Hi Encounter the same problem. > > ``` > > echo | openssl s_client -host linetv.tw -port 443 > CONNECTED(00000005) > 140319170957760:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../ssl/record/rec_layer_s3.c:1528:SSL alert number 40...