haobug / smarthosts

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

dnsmasq的版本没有利用到dnsmasq的特性 #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
比如以下这些其实第一句就囊括全部了,他是支持泛解析的��
�

address=/wikimedia.org/208.80.152.201
address=/www.wikimedia.org/208.80.152.201
address=/bugs.wikimedia.org/208.80.152.201
address=/bugzilla.wikimedia.org/208.80.152.201
address=/commons.wikimedia.org/208.80.152.201
address=/dumps.wikimedia.org/208.80.152.201
address=/download.wikimedia.org/208.80.152.201
address=/irc.wikimedia.org/208.80.152.201
address=/ftp.wikimedia.org/208.80.152.201
address=/ganglia.wikimedia.org/208.80.152.201
address=/mail.wikimedia.org/208.80.152.201
address=/meta.wikimedia.org/208.80.152.201
address=/news.wikimedia.org/208.80.152.201
address=/noc.wikimedia.org/208.80.152.201
address=/kate.wikimedia.org/208.80.152.201
address=/kohl.wikimedia.org/208.80.152.201
address=/stats.wikimedia.org/208.80.152.201
address=/ticket.wikimedia.org/208.80.152.201
address=/tools.wikimedia.org/208.80.152.201
address=/upload.wikimedia.org/208.80.152.211

Original issue reported on code.google.com by helleon on 28 Nov 2011 at 3:50

GoogleCodeExporter commented 9 years ago
明白了。。。

Original comment by azly...@gmail.com on 28 Nov 2011 at 5:01

GoogleCodeExporter commented 9 years ago
当使用了 address=/google.com/203.208.45.200 
这样的解析以后,所有的*.google.com都会解析到 
203.208.45.200,这样有部分服务会因为证书错误导致访问失败,
这时候需要加入例外配置,我是这样写的:

server=/mtalk.google.com/10.102.1.50
server=/talk.google.com/10.102.1.50
server=/reader.googleusercontent.com/10.102.1.50
server=/talkgadget.google.com/10.102.1.50

10.102.1.50是我的运营商DNS,这几句的意思是跳过address的指向��
�还是要向ISP的DNS请求这些域名的IP。
如有需要可以提供我的配置给你。我记得有各个IP的证书列表
的,找不到了,不然有这个更方便维护。

Original comment by helleon on 29 Nov 2011 at 2:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
写了个Google+Wikimedia+Twitter的,希望有帮助,其他的有点复杂��
�我再研究下:

## Google Address Start##
address=/google.cn/203.208.45.200
address=/google.com/203.208.45.200
address=/google.com.hk/203.208.45.200
address=/googlehosted.com/203.208.45.200
address=/android.com/203.208.45.200
address=/google-analytics.com/203.208.45.200
address=/gstatic.com/203.208.45.200
address=/youtube.com/203.208.45.206
address=/ytimg.com/203.208.45.200
address=/google.com.hk/203.208.45.200
address=/ggpht.com/203.208.45.200
address=/googleusercontent.com/203.208.45.200
address=/appspot.com/203.208.45.200
address=/googlevideo.com/203.208.45.200
address=/googlecode.com/203.208.45.200
address=/gvt0.cn/203.208.45.200
address=/gvt0.com/203.208.45.200
address=/googleapis.com/203.208.45.200
address=/appspot.com/203.208.45.200
address=/gmail.com/203.208.45.200
address=/top100.cn/203.208.45.200
address=/keyhole.com/203.208.45.200
address=/goo.gl/203.208.45.200
address=/g.co/203.208.45.200
address=/blogspot.com/203.208.45.200
## Google Address End ##

## Twitter Address Start##
address=/t.co/199.59.149.243
address=/userstream.twitter.com/199.59.148.139
address=/twitter.com/199.59.149.243
address=/twimg.com/184.169.75.33
address=/tinypic.com/209.17.70.144
address=/bitly.com/69.58.188.34
address=/yfrog.com/208.94.0.61
address=/api.mobilepicture.com/208.87.33.151
## Twitter Address End ##

## Wikimedia Address Start##
address=/wikipedia.org/208.80.152.201
address=/wikibooks.org/208.80.152.204
address=/wikinews.org/208.80.152.206
address=/wikiquote.org/208.80.152.201
address=/wikimediafoundation.org/208.80.152.201
address=/mediawiki.org/208.80.152.201
## Wikimedia Address End ##

Original comment by helleon on 29 Nov 2011 at 4:06

GoogleCodeExporter commented 9 years ago
是的应该是这样的 希望能和你联合测试这个

Original comment by zip...@gmail.com on 29 Nov 2011 at 2:57

GoogleCodeExporter commented 9 years ago
这些android的gtalk客户端都不能用

Original comment by zip...@gmail.com on 29 Nov 2011 at 3:04

GoogleCodeExporter commented 9 years ago
很高兴能帮到你,如果需要出力的话请随时告诉我,可以加��
�Gtalk,随时在线的。

Android的talk我也发现了,不知道是哪几个服务器要单独列出来
?你有现成的我就不去抓包一个个找了。

Original comment by helleon on 29 Nov 2011 at 3:20

GoogleCodeExporter commented 9 years ago
目前手机android 全部业务能用的

address=/g.co/203.208.45.208
address=/goo.gl/203.208.45.208
address=/goo.gl/203.208.45.208
#Android & Google Services START
address=/0-focus-opensocial.googleusercontent.com/203.208.45.200
address=/accounts.google.com/203.208.45.200
address=/android.clients.google.com/203.208.45.200
address=/accounts.google.com/203.208.45.200
address=/ajax.googleapis.com/203.208.45.200
address=/android.clients.google.com/203.208.45.200
address=/android.l.google.com/203.208.45.200
address=/appspot.l.google.com/203.208.45.200
address=/appengine.google.com/203.208.45.200
address=/base0.googlehosted.com/203.208.45.200
address=/base1.googlehosted.com/203.208.45.200
address=/base2.googlehosted.com/203.208.45.200
address=/base3.googlehosted.com/203.208.45.200
address=/base4.googlehosted.com/203.208.45.200
address=/base5.googlehosted.com/203.208.45.200
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=/blogger.google.com/203.208.45.200
address=/blogger.l.google.com/203.208.45.200
address=/blogsearch.google.com/203.208.45.200
address=/blogsearch.google.com.hk/203.208.45.200
address=/books.google.com/203.208.45.200
address=/browserchannel-docs.l.google.com/203.208.45.200
address=/browserchannel-spreadsheets.l.google.com/203.208.45.200
address=/browsersync.google.com/203.208.45.200
address=/cache.pack.google.com/203.208.45.200
address=/calendar.google.com/203.208.45.200
address=/chatenabled.mail.google.com/203.208.45.200
address=/checkout.google.com/203.208.45.200
address=/chrome.google.com/203.208.45.200
address=/buttons.googlesyndication.com/203.208.45.200
address=/chrometophone.appspot.com/203.208.45.200
address=/clients1.google.com/203.208.45.200
address=/clients1.googleusercontent.com/203.208.45.200
address=/clients2.google.com/203.208.45.200
address=/clients2.googleusercontent.com/203.208.45.200
address=/clients3.google.com/203.208.45.200
address=/clients3.googleusercontent.com/203.208.45.200
address=/clients4.google.com/203.208.45.200
address=/clients4.googleusercontent.com/203.208.45.200
address=/clients5.google.com/203.208.45.200
address=/clients5.googleusercontent.com/203.208.45.200
address=/clients6.google.com/203.208.45.200
address=/clients6.googleusercontent.com/203.208.45.200
address=/clients7.google.com/203.208.45.200
address=/clients7.googleusercontent.com/203.208.45.200
address=/code.google.com/203.208.45.200
address=/csi.gstatic.com/203.208.45.200
address=/code.l.google.com/203.208.45.200
address=/dl.google.com/203.208.45.200
address=/ditu.google.com/203.208.45.200
address=/docs.google.com/203.208.45.200
address=/docs.google.com/203.208.45.200
address=/docs.google.com/203.208.45.200
address=/encrypted.google.com/203.208.45.200
address=/googlehosted.l.google.com/203.208.45.200
address=/groups.google.com/203.208.45.200
address=/groups.l.google.com/203.208.45.200
address=/id.google.com/203.208.45.200
address=/id.l.google.com/203.208.45.200
address=/images.google.com/203.208.45.200
address=/img0.gmodules.com/203.208.45.200
address=/labs.google.com/203.208.45.200
address=/m.google.com/203.208.45.200
address=/mail.google.com/203.208.45.200
address=/mail-attachment.googleusercontent.com/203.208.45.200
address=/mail.google.com/203.208.45.200
address=/maps.gstatic.com/203.208.45.200
address=/maps-api-ssl.google.com/203.208.45.200
address=/market.android.com/203.208.45.200
address=/mobilemaps.clients.google.com/203.208.45.200
address=/music.google.com/203.208.45.200
address=/music.googleusercontent.com/203.208.45.200
address=/music-streaming.l.google.com/203.208.45.200
address=/mw2.google.com/203.208.45.200
address=/news.google.com/203.208.45.200
address=/news.google.com.hk/203.208.45.200
address=/oauth.googleusercontent.com/203.208.45.200
address=/picasaweb.google.com/203.208.45.200
address=/picasaweb.google.com/203.208.45.200
address=/picasaweb.google.com.hk/203.208.45.200
address=/places.google.com/203.208.45.200
address=/plus.google.com/203.208.45.200
address=/plusone.google.com/203.208.45.200
address=/profiles.google.com/203.208.45.200
address=/s1.googleusercontent.com/203.208.45.200
address=/s2.googleusercontent.com/203.208.45.200
address=/s3.googleusercontent.com/203.208.45.200
address=/s4.googleusercontent.com/203.208.45.200
address=/s5.googleusercontent.com/203.208.45.200
address=/s6.googleusercontent.com/203.208.45.200
address=/reader.google.com/203.208.45.200
address=/services.google.com/203.208.45.200
address=/reader.google.com/203.208.45.200
address=/sites.google.com/203.208.45.200
address=/ssl.google-analytics.com/203.208.45.200
address=/ssl.gstatic.com/203.208.45.200
address=/t0.gstatic.com/203.208.45.200
address=/t0.gstatic.com/203.208.45.200
address=/t1.gstatic.com/203.208.45.200
address=/t1.gstatic.com/203.208.45.200
address=/t2.gstatic.com/203.208.45.200
address=/t2.gstatic.com/203.208.45.200
address=/t3.gstatic.com/203.208.45.200
address=/t3.gstatic.com/203.208.45.200
address=/t4.gstatic.com/203.208.45.200
address=/t5.gstatic.com/203.208.45.200
address=/t6.gstatic.com/203.208.45.200
address=/talkgadget.google.com/203.208.45.200
address=/talkx.l.google.com/203.208.45.200
address=/tbn0.google.com/203.208.45.200
address=/tbn1.google.com/203.208.45.200
address=/tbn2.google.com/203.208.45.200
address=/tbn3.google.com/203.208.45.200
address=/tbn4.google.com/203.208.45.200
address=/tbn5.google.com/203.208.45.200
address=/tbn6.google.com/203.208.45.200
address=/translate.google.com/203.208.45.200
address=/video.google.com/203.208.45.200
address=/voice.google.com/203.208.45.200
address=/writely.l.google.com/203.208.45.200
address=/wenda.google.com.hk/203.208.45.200
address=/writely-china.l.google.com/203.208.45.200
address=/www.blogger.com/203.208.45.200
address=/www.google.com/203.208.45.200
address=/www.google.com.hk/203.208.45.200
address=/www.googleapis.com/203.208.45.200
address=/www.googlelabs.com/203.208.45.200
address=/www.gstatic.com/203.208.45.200
address=/www.l.google.com/203.208.45.200
address=/www2.l.google.com/203.208.45.200
address=/www3.l.google.com/203.208.45.200
#Android & Google Services END
#Twitter START
address=/t.co/199.59.149.210
address=/upload.twitter.com/199.59.149.243
address=/pic.twitter.com/199.59.149.243
address=/oauth.twitter.com/199.59.149.243
address=/twitter.com/199.59.149.243
address=/www.twitter.com/199.59.149.243
address=/mobile.twitter.com/199.59.149.243
address=/api.twitter.com/199.59.149.243
address=/search.twitter.com/199.59.149.243
address=/userstream.twitter.com/199.59.148.139
address=/ssl.twitter.com/199.59.149.243
address=/status.twitter.com/199.59.149.243
address=/assets0.twitter.com/199.59.149.243
address=/assets1.twitter.com/199.59.149.243
address=/assets2.twitter.com/199.59.149.243
address=/assets3.twitter.com/199.59.149.243
address=/static.twitter.com/199.59.149.243
address=/platform.twitter.com/184.29.36.124
address=/platform0.twitter.com/219.76.10.138
address=/help.twitter.com/199.59.148.206
address=/support.twitter.com/199.59.148.206
address=/p.twimg.com/184.28.97.55
address=/si0.twimg.com/184.169.75.33
address=/si1.twimg.com/184.169.75.33
address=/si2.twimg.com/184.169.75.33
address=/si3.twimg.com/184.169.75.33
address=/si4.twimg.com/184.169.75.33
address=/si5.twimg.com/184.169.75.33
address=/si5.twimg.com/184.169.75.33
address=/scribe.twitter.com/199.59.148.243
address=/betastream.twitter.com/199.59.148.138
address=/posterous.com/184.106.20.99
address=/oi40.tinypic.com/209.17.70.144
address=/oi41.tinypic.com/209.17.70.143
address=/oi42.tinypic.com/209.17.70.143
address=/oi43.tinypic.com/209.17.70.143
address=/oi44.tinypic.com/209.17.70.143
address=/oi45.tinypic.com/209.17.70.143
address=/oi46.tinypic.com/209.17.70.143
address=/oi47.tinypic.com/209.17.70.143
address=/oi48.tinypic.com/209.17.70.143
address=/oi49.tinypic.com/209.17.70.143
address=/oi50.tinypic.com/209.17.70.143
address=/oi51.tinypic.com/209.17.70.144
address=/oi52.tinypic.com/209.17.70.144
address=/oi53.tinypic.com/209.17.70.144
address=/oi54.tinypic.com/209.17.70.144
address=/oi55.tinypic.com/209.17.70.144
address=/oi56.tinypic.com/209.17.70.144
address=/twitpic.com/174.36.58.234
address=/www.twitpic.com/174.36.58.234
address=/web7.twitpic.com/174.36.46.32
address=/web1.twitpic.com/174.36.58.204
address=/web2.twitpic.com/174.36.58.224
address=/web3.twitpic.com/174.36.58.200
address=/web4.twitpic.com/174.37.33.184
address=/web5.twitpic.com/174.37.75.16
address=/web6.twitpic.com/174.36.35.60
address=/web8.twitpic.com/66.228.120.92
address=/web9.twitpic.com/74.86.100.160
address=/web10.twitpic.com/74.86.87.236
address=/a.yfrog.com/208.94.0.61
address=/yfrog.com/208.94.0.61
address=/www.yfrog.com/208.94.0.61
address=/scribe.twitter.com/199.59.149.208
address=/api.mobilepicture.com/208.87.33.151
#Facebook START
address=/facebook.com/66.220.149.25
address=/www.facebook.com/66.220.149.25
address=/m.facebook.com/69.171.229.32
address=/login.facebook.com/66.220.146.28
address=/secure.facebook.com/69.63.179.70
address=/apps.facebook.com/66.220.146.28
address=/touch.facebook.com/69.63.181.31
address=/s-static.ak.facebook.com/118.214.114.110
address=/api.facebook.com/66.220.147.47
address=/zh-CN.facebook.com/66.220.149.25
address=/static.ak.facebook.com/61.213.189.98
address=/b.static.ak.facebook.com/61.213.189.98
address=/secure-profile.facebook.com/69.63.181.57
address=/secure-media-sf2p.facebook.com/69.63.181.57
address=/ssl.facebook.com/69.63.181.15
address=/apps.facebook.com/69.63.190.18
address=/profile.ak.facebook.com/118.214.190.105
address=/fbcdn.net/61.213.189.113
address=/external.ak.fbcdn.net/97.65.135.139
address=/vthumb.ak.fbcdn.net/120.29.145.50
address=/static.ak.fbcdn.net/97.65.135.163
address=/graph.facebook.com/66.220.149.25
address=/b.static.ak.fbcdn.net/61.213.189.120
address=/creative.ak.fbcdn.net/61.213.189.113
address=/profile.ak.fbcdn.net/61.213.189.114
address=/s-hprofile-sf2p.fbcdn.net/61.213.189.113
address=/photos-a.ak.fbcdn.net/61.213.189.113
address=/photos-b.ak.fbcdn.net/61.213.189.113
address=/photos-c.ak.fbcdn.net/61.213.189.113
address=/photos-d.ak.fbcdn.net/61.213.189.113
address=/photos-e.ak.fbcdn.net/61.213.189.113
address=/photos-f.ak.fbcdn.net/61.213.189.98
address=/photos-g.ak.fbcdn.net/61.213.189.113
address=/photos-h.ak.fbcdn.net/61.213.189.113
address=/upload.facebook.com/69.63.180.51
address=/fbcdn-profile-a.akamaihd.net/64.213.102.26
#Flickr START
address=/flickr.com/66.94.233.186
address=/www.flickr.com/66.94.233.186
address=/static.flickr.com/68.142.214.43
address=/farm1.static.flickr.com/66.196.118.49
address=/farm2.static.flickr.com/69.147.90.159
address=/farm3.static.flickr.com/76.13.18.78
address=/farm4.static.flickr.com/67.195.19.66
address=/farm5.static.flickr.com/76.13.18.79
address=/farm6.static.flickr.com/98.139.197.254
address=/farm7.static.flickr.com/98.139.102.46
address=/geo.yahoo.com/98.136.43.76
address=/l.yimg.com/68.142.250.161
address=/s.yimg.com/96.6.93.227
address=/d.yimg.com/98.137.88.88
address=/c5.ah.yahoo.com/68.142.196.57
address=/sa.edit.yahoo.com/124.108.120.124
address=/row.bc.yahoo.com/76.13.6.132
address=/open.login.yahoo.com/66.163.168.247
address=/login.yahoo.com/209.191.92.114
address=/edit.yahoo.com/209.191.92.115
address=/up.flickr.com/209.191.121.31
address=/adjax.flickr.yahoo.com/209.191.105.102
address=/content.yieldmanager.edgesuite.net/204.0.5.35
address=/us.bc.yahoo.com/76.13.6.132
address=/us.js2.yimg.com/204.0.5.34

Original comment by zip...@gmail.com on 29 Nov 2011 at 3:26

GoogleCodeExporter commented 9 years ago
看了下应该是是没列出来的部分生效了,我的 
address=/google.com/203.208.45.200 
覆盖太广了,登录过程某个server证书不对,而手机上又不能��
�任。现在没条件试,你先试试最前面加上下面两句跳过。我�
��GT就是用户名@gmail,应该可以看到的。

server=/mtalk.google.com/8.8.4.4
server=/talk.google.com/8.8.4.4

Original comment by helleon on 29 Nov 2011 at 3:34

GoogleCodeExporter commented 9 years ago
经测试最前面加上以下三条即可:

server=/mtalk.google.com/8.8.4.4  #或者将8.8.4.4改为你的ISP提供的DNS
server=/talk.google.com/8.8.4.4  #或者将8.8.4.4改为你的ISP提供的DNS
server=/talkx.l.google.com/8.8.4.4  #或者将8.8.4.4改为你的ISP提供的DNS

Original comment by helleon on 30 Nov 2011 at 3:41

GoogleCodeExporter commented 9 years ago
的确是需要这样的

Original comment by zip...@gmail.com on 30 Nov 2011 at 1:56

GoogleCodeExporter commented 9 years ago
手机客户端登录facebook是不是需要特殊的地址了

Original comment by zip...@gmail.com on 30 Nov 2011 at 2:11

GoogleCodeExporter commented 9 years ago
android.clients.google.com会导致Google 
Music客户端不能使用,所以还得加上这行:
server=/android.clients.google.com/8.8.4.4

Original comment by azly...@gmail.com on 30 Nov 2011 at 4:34

GoogleCodeExporter commented 9 years ago
208的会导致 google+手机客户端和docs文档客户端无法用

Original comment by zip...@gmail.com on 3 Dec 2011 at 2:54

GoogleCodeExporter commented 9 years ago
208的确是不能使用docs,正在处理。

Original comment by azly...@gmail.com on 6 Dec 2011 at 2:43

GoogleCodeExporter commented 9 years ago
203.208.45.200似乎可用。

Original comment by azly...@gmail.com on 6 Dec 2011 at 3:12

GoogleCodeExporter commented 9 years ago
请问下helleon,
server=和address=的加入是否有先后顺序?

Original comment by bcle...@gmail.com on 26 Jan 2012 at 12:06

GoogleCodeExporter commented 9 years ago
我试了下先后顺序貌似是无关的,只和域名的精度有关,也��
�是说3级域名的优先级高于2级域名这样

环境 debian6 dnsmasq 2.55

Original comment by helleon on 27 Jan 2012 at 12:27