jiangtiandao / smarthosts

Automatically exported from code.google.com/p/smarthosts
0 stars 0 forks source link

dnsmasq怎么又变成hosts了啊???请参见issue27 #155

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
又开始更新了?怎么dnsmasq的版本又变成下面这那个样子了啊�
��
address=/bks0.books.google.com/203.208.45.200
address=/bks1.books.google.com/203.208.45.200
address=/bks2.books.google.com/203.208.45.200
address=/bks3.books.google.com/203.208.45.200
address=/bks4.books.google.com/203.208.45.200
address=/bks5.books.google.com/203.208.45.200
address=/bks6.books.google.com/203.208.45.200
address=/bks7.books.google.com/203.208.45.200
address=/bks8.books.google.com/203.208.45.200
address=/bks9.books.google.com/203.208.45.200
address=/blogsearch.google.com/203.208.45.200
address=/blogsearch.google.com.hk/203.208.45.200

以前不是说过么,一句就行了 address/google.com/203.208.45.200  
支持泛解析的。参见 issue 
27:http://code.google.com/p/smarthosts/issues/detail?id=27

申请加入此项目,专注于dnsmasq的维护。

Original issue reported on code.google.com by helleon on 26 Apr 2012 at 3:10

GoogleCodeExporter commented 9 years ago
不是所有二级域名都用一个IP就可以的

Original comment by Pluto.Ha...@gmail.com on 27 Apr 2012 at 1:59

GoogleCodeExporter commented 9 years ago
没说所有的用一个IP,但是也应该尽量精简代码,以达到最大
效率。尤其是DD-WRT或者Tomato上dnsmasq的配置是有大小限制的。

事实上hosts中有关google的283条只有20条没有使用203.208.45.200这��
�IP。而且以下两条共存是没有意义的:
server=/talkx.l.google.com/114.114.114.114
address=/talkx.l.google.com/203.208.46.180

Original comment by helleon on 27 Apr 2012 at 2:14

GoogleCodeExporter commented 9 years ago
其实在dnsmasq.conf中加入
addn-hosts=/etc/smarthosts
然后自己手动或者cron或者在拨号后的脚本里
wget https://smarthosts.googlecode.com/svn/trunk/hosts -O /etc/smarthosts
这样应该也行得通吧?

Original comment by zlo...@gmail.com on 13 Dec 2012 at 4:43