Giter Club home page Giter Club logo

Comments (11)

txthinking avatar txthinking commented on June 9, 2024

先检查下依赖:
https://github.com/txthinking/google-hosts/blob/master/scripts/README.md

On Wed, Jul 8, 2015 at 12:36 PM bonedriven [email protected] wrote:

先是./auto.sh了一下,满屏的No No No

后来手动试,到select.sh发现hosts.all根本没有更新,只有warning?
[WARNING] *.google.com
[WARNING] accounts.google.com
[WARNING] checkout.google.com
[WARNING] adwords.google.com
[WARNING] mail.google.com
[WARNING] *.mail.google.com
[WARNING] *.googleusercontent.com
[WARNING] *.gstatic.com
[WARNING] *.googleapis.com
[WARNING] *.appspot.com
[WARNING] *.googlecode.com
[WARNING] *.google-analytics.com
[WARNING] ssl.google-analytics.com


Reply to this email directly or view it on GitHub
#87.

from google-hosts.

GreatBigWhiteWorld avatar GreatBigWhiteWorld commented on June 9, 2024

感谢,是我的错,没有注意依赖。。

有个问题,

我是手动执行的修改过的auto.sh (去掉了./select.sh
./apply.sh)因为我想先看看找到的hosts是什么样的,所以没有直接执行auto.sh

#!/usr/bin/env bash

for i in $(nslookup -q=TXT _netblocks.google.com 8.8.4.4 | grep -Po '\d+.\d+.\d+.\d+/\d+')
do
./find.sh $i
done

之后执行了select.sh,
结果是命令行显示我找到10个左右的谷歌服务ip外,有两个warning
[WARNING] *.google.com
[WARNING] ssl.google-analytics.com
没有找到youtube或者说谷歌音乐的,这个正常吗?如果需要谷歌音乐或者youtube的应该是怎么找的?
还是说执行auto.sh就可以找全呢?

from google-hosts.

txthinking avatar txthinking commented on June 9, 2024
for i in $(nslookup -q=TXT _netblocks.google.com 8.8.4.4 | grep -Po '\d+\.\d+\.\d+.\d+\/\d+')
do
    ./find.sh $i
done

这段应该会跑一会吧

from google-hosts.

txthinking avatar txthinking commented on June 9, 2024

会生成output目录看看里面的文件

或者

./filter.sh *.google.com 过滤下

from google-hosts.

GreatBigWhiteWorld avatar GreatBigWhiteWorld commented on June 9, 2024

是我的问题,应该是那个还没算完我就运行了select.sh,导致得到的结果不全。重新正在算,挺耗时的(我用的一个配置比较低的vps在找)。谢谢答复。

另外请问下,每算一次得到的ip一般有效性有多长?

from google-hosts.

txthinking avatar txthinking commented on June 9, 2024

几个小时吧, 如果你熟悉代码和unix调优的话,你可以调整代码里的最大进程数得到最快的运行速度

On Thu, Jul 9, 2015 at 9:37 PM bonedriven [email protected] wrote:

是我的问题,应该是那个还没算完我就运行了select.sh,导致得到的结果不全。重新正在算,挺耗时的(我用的一个配置比较低的vps在找)。谢谢答复。

另外请问下,每算一次得到的ip一般有效性有多长?


Reply to this email directly or view it on GitHub
#87 (comment)
.

from google-hosts.

GreatBigWhiteWorld avatar GreatBigWhiteWorld commented on June 9, 2024

几个小时的寿命,实在是太短。。。。之前以为能至少有一周。。那样我还在想是否弄个每周自动计算更新一次hosts的小script。。。
基本不懂代码。。。

from google-hosts.

txthinking avatar txthinking commented on June 9, 2024

错了,我以为你说的是跑完脚本要多长时间呢,不好意思。
寿命的话,这个不一定,有时几周,有时几天。有时几个月。

On Thu, Jul 9, 2015 at 10:37 PM bonedriven [email protected] wrote:

几个小时的寿命,实在是太短。。。。之前以为能至少有一周。。那样我还在想是否弄个每周自动计算更新一次hosts的小script。。。
基本不懂代码。。。


Reply to this email directly or view it on GitHub
#87 (comment)
.

from google-hosts.

GreatBigWhiteWorld avatar GreatBigWhiteWorld commented on June 9, 2024

哦,那太好了。
我昨天在亚马逊给的EC2 vps上算了一套ip,然后更新在墙内电脑的hosts上,发现google+,邮箱,music什么的没一个能上去。
不知道是不是必须要在墙内的电脑算才行?

from google-hosts.

txthinking avatar txthinking commented on June 9, 2024

肯定要用国内的vps啊 = =||

On Fri, Jul 10, 2015 at 8:29 AM bonedriven [email protected] wrote:

哦,那太好了。
我昨天在亚马逊给的免费一年的vps上算了一套ip,然后更新在墙内电脑的hosts上,发现google+,邮箱,music什么的没一个能上去。
不知道是不是必须要在墙内的电脑算才行?


Reply to this email directly or view it on GitHub
#87 (comment)
.

from google-hosts.

GreatBigWhiteWorld avatar GreatBigWhiteWorld commented on June 9, 2024

嗯嗯,不好意思,傻了。。

from google-hosts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.