Skip to content

Commit

Permalink
chore: 更新文件
Browse files Browse the repository at this point in the history
  • Loading branch information
sinspired committed Dec 5, 2024
1 parent 834952f commit 897504d
Show file tree
Hide file tree
Showing 4 changed files with 344 additions and 259 deletions.
173 changes: 108 additions & 65 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,80 +30,123 @@

```bash

# cnNetTool Start in 2024-12-05 09:46:44 +08:00
140.82.113.25 alive.github.com
# cnNetTool Start in 2024-12-05 11:37:05 +08:00
140.82.113.26 alive.github.com
20.205.243.168 api.github.com
140.82.112.21 central.github.com
140.82.113.22 central.github.com
20.205.243.165 codeload.github.com
140.82.114.22 collector.github.com
20.205.243.166 gist.github.com
140.82.113.22 collector.github.com
140.82.112.3 gist.github.com
20.205.243.166 github.com
140.82.114.18 github.community
151.101.77.194 github.global.ssl.fastly.net
3.5.28.170 github-com.s3.amazonaws.com
52.217.122.33 github-production-release-asset-2e65be.s3.amazonaws.com
140.82.114.26 live.github.com
140.82.113.18 github.community
151.101.129.194 github.global.ssl.fastly.net
2a03:2880:f131:83:face:b00c:0:25de github.global.ssl.fastly.net
16.182.37.73 github-com.s3.amazonaws.com
3.5.21.112 github-production-release-asset-2e65be.s3.amazonaws.com
140.82.112.25 live.github.com
13.107.42.16 pipelines.actions.githubusercontent.com
185.199.109.154 github.githubassets.com
185.199.111.153 github.io
185.199.111.153 githubstatus.com
185.199.111.153 assets-cdn.github.com
185.199.111.133 avatars.githubusercontent.com
185.199.111.133 avatars0.githubusercontent.com
185.199.111.133 avatars1.githubusercontent.com
185.199.111.133 avatars2.githubusercontent.com
185.199.111.133 avatars3.githubusercontent.com
185.199.111.133 avatars4.githubusercontent.com
185.199.111.133 avatars5.githubusercontent.com
185.199.111.133 camo.githubusercontent.com
185.199.111.133 cloud.githubusercontent.com
185.199.111.133 desktop.githubusercontent.com
185.199.111.133 favicons.githubusercontent.com
185.199.111.133 github.map.fastly.net
185.199.111.133 media.githubusercontent.com
185.199.111.133 objects.githubusercontent.com
185.199.111.133 private-user-images.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
185.199.111.133 user-images.githubusercontent.com
3.167.192.35 tmdb.org
3.167.192.35 api.tmdb.org
3.167.192.35 files.tmdb.org
3.167.212.66 themoviedb.org
3.167.212.66 api.themoviedb.org
3.167.212.66 www.themoviedb.org
3.167.212.66 auth.themoviedb.org
169.150.207.217 image.tmdb.org
169.150.207.217 images.tmdb.org
52.94.237.74 imdb.com
13.33.79.214 www.imdb.com
52.94.228.167 secure.imdb.com
13.33.79.214 s.media-imdb.com
52.94.237.74 us.dd.imdb.com
13.33.79.214 www.imdb.to
52.94.237.74 imdb-webservice.amazon.com
98.82.158.179 origin-www.imdb.com
146.75.29.16 m.media-amazon.com
13.35.214.197 Images-na.ssl-images-amazon.com
3.167.194.238 images-fe.ssl-images-amazon.com
3.168.148.144 images-eu.ssl-images-amazon.com
23.44.201.182 ia.media-imdb.com
199.232.45.16 f.media-amazon.com
18.65.25.71 imdb-video.media-imdb.com
3.165.84.176 dqpnq362acqdi.cloudfront.net
142.251.2.139 translate.google.com
142.251.2.139 translate.googleapis.com
142.251.2.139 translate-pa.googleapis.com
3.163.125.124 plugins.jetbrains.com
3.163.125.124 download.jetbrains.com
3.163.125.124 cache-redirector.jetbrains.com

# Update time: 2024-12-05 09:46:44 +08:00
185.199.108.154 github.githubassets.com
185.199.108.153 githubstatus.com
2606:50c0:8001::153 githubstatus.com
185.199.108.153 assets-cdn.github.com
2606:50c0:8001::153 assets-cdn.github.com
185.199.108.153 github.io
2606:50c0:8001::153 github.io
185.199.108.133 avatars.githubusercontent.com
2606:50c0:8002::154 avatars.githubusercontent.com
185.199.108.133 avatars0.githubusercontent.com
2606:50c0:8002::154 avatars0.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
2606:50c0:8002::154 avatars1.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
2606:50c0:8002::154 avatars2.githubusercontent.com
185.199.108.133 avatars3.githubusercontent.com
2606:50c0:8002::154 avatars3.githubusercontent.com
185.199.108.133 avatars4.githubusercontent.com
2606:50c0:8002::154 avatars4.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
2606:50c0:8002::154 avatars5.githubusercontent.com
185.199.108.133 camo.githubusercontent.com
2606:50c0:8002::154 camo.githubusercontent.com
185.199.108.133 cloud.githubusercontent.com
2606:50c0:8002::154 cloud.githubusercontent.com
185.199.108.133 desktop.githubusercontent.com
2606:50c0:8002::154 desktop.githubusercontent.com
185.199.108.133 favicons.githubusercontent.com
2606:50c0:8002::154 favicons.githubusercontent.com
185.199.108.133 github.map.fastly.net
2606:50c0:8002::154 github.map.fastly.net
185.199.108.133 media.githubusercontent.com
2606:50c0:8002::154 media.githubusercontent.com
185.199.108.133 objects.githubusercontent.com
2606:50c0:8002::154 objects.githubusercontent.com
185.199.108.133 private-user-images.githubusercontent.com
2606:50c0:8002::154 private-user-images.githubusercontent.com
185.199.108.133 raw.githubusercontent.com
2606:50c0:8002::154 raw.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
2606:50c0:8002::154 user-images.githubusercontent.com
54.230.71.49 tmdb.org
2600:9000:2014:8a00:5:da10:7440:93a1 tmdb.org
54.230.71.49 api.tmdb.org
2600:9000:2014:8a00:5:da10:7440:93a1 api.tmdb.org
54.230.71.49 files.tmdb.org
2600:9000:2014:8a00:5:da10:7440:93a1 files.tmdb.org
13.226.61.96 themoviedb.org
2600:9000:2816:5000:e:5373:440:93a1 themoviedb.org
13.226.61.96 api.themoviedb.org
2600:9000:2816:5000:e:5373:440:93a1 api.themoviedb.org
13.226.61.96 www.themoviedb.org
2600:9000:2816:5000:e:5373:440:93a1 www.themoviedb.org
13.226.61.96 auth.themoviedb.org
2600:9000:2816:5000:e:5373:440:93a1 auth.themoviedb.org
109.61.83.98 image.tmdb.org
2400:52e0:1500::1092:1 image.tmdb.org
109.61.83.98 images.tmdb.org
2400:52e0:1500::1092:1 images.tmdb.org
52.94.228.167 imdb.com
13.35.217.192 www.imdb.com
52.94.237.74 secure.imdb.com
18.172.46.173 s.media-imdb.com
52.94.225.248 us.dd.imdb.com
13.35.217.192 www.imdb.to
52.94.228.167 imdb-webservice.amazon.com
44.215.137.99 origin-www.imdb.com
23.49.104.166 m.media-amazon.com
2600:9000:2078:f800:1d:d7f6:39d4:e6e1 m.media-amazon.com
151.101.65.16 Images-na.ssl-images-amazon.com
2600:1417:4400:12::1721:b8e7 Images-na.ssl-images-amazon.com
23.49.104.166 images-fe.ssl-images-amazon.com
2600:9000:2079:fa00:1d:d7f6:39d4:e6e1 images-fe.ssl-images-amazon.com
151.101.129.16 images-eu.ssl-images-amazon.com
2600:9000:2751:1a00:1d:d7f6:39d4:e6e1 images-eu.ssl-images-amazon.com
23.49.104.166 ia.media-imdb.com
2600:1417:4400:12::1721:b8e7 ia.media-imdb.com
151.101.129.16 f.media-amazon.com
2a04:4e42:48::272 f.media-amazon.com
13.35.186.103 imdb-video.media-imdb.com
13.32.32.190 dqpnq362acqdi.cloudfront.net
2600:9000:27af:7600:5:ce70:a180:21 dqpnq362acqdi.cloudfront.net
34.105.140.105 translate.google.com
2404:6800:4005:823::200a translate.google.com
34.105.140.105 translate.googleapis.com
2404:6800:4005:823::200a translate.googleapis.com
34.105.140.105 translate-pa.googleapis.com
2404:6800:4005:823::200a translate-pa.googleapis.com
13.33.183.20 plugins.jetbrains.com
2600:9000:2014:f600:12:7c44:15c0:93a1 plugins.jetbrains.com
13.33.183.20 download.jetbrains.com
2600:9000:2014:f600:12:7c44:15c0:93a1 download.jetbrains.com
13.33.183.20 cache-redirector.jetbrains.com
2600:9000:2014:f600:12:7c44:15c0:93a1 cache-redirector.jetbrains.com

# Update time: 2024-12-05 11:37:05 +08:00
# GitHub仓库: https://github.com/sinspired/cnNetTool
# cnNetTool End

```

以上内容会自动定时更新, 数据更新时间:2024-12-05 09:46:44 +08:00
以上内容会自动定时更新, 数据更新时间:2024-12-05 11:37:05 +08:00

#### 1.2.2 修改 hosts 文件

Expand Down
171 changes: 107 additions & 64 deletions hosts
Original file line number Diff line number Diff line change
@@ -1,71 +1,114 @@

# cnNetTool Start in 2024-12-05 09:46:44 +08:00
140.82.113.25 alive.github.com
# cnNetTool Start in 2024-12-05 11:37:05 +08:00
140.82.113.26 alive.github.com
20.205.243.168 api.github.com
140.82.112.21 central.github.com
140.82.113.22 central.github.com
20.205.243.165 codeload.github.com
140.82.114.22 collector.github.com
20.205.243.166 gist.github.com
140.82.113.22 collector.github.com
140.82.112.3 gist.github.com
20.205.243.166 github.com
140.82.114.18 github.community
151.101.77.194 github.global.ssl.fastly.net
3.5.28.170 github-com.s3.amazonaws.com
52.217.122.33 github-production-release-asset-2e65be.s3.amazonaws.com
140.82.114.26 live.github.com
140.82.113.18 github.community
151.101.129.194 github.global.ssl.fastly.net
2a03:2880:f131:83:face:b00c:0:25de github.global.ssl.fastly.net
16.182.37.73 github-com.s3.amazonaws.com
3.5.21.112 github-production-release-asset-2e65be.s3.amazonaws.com
140.82.112.25 live.github.com
13.107.42.16 pipelines.actions.githubusercontent.com
185.199.109.154 github.githubassets.com
185.199.111.153 github.io
185.199.111.153 githubstatus.com
185.199.111.153 assets-cdn.github.com
185.199.111.133 avatars.githubusercontent.com
185.199.111.133 avatars0.githubusercontent.com
185.199.111.133 avatars1.githubusercontent.com
185.199.111.133 avatars2.githubusercontent.com
185.199.111.133 avatars3.githubusercontent.com
185.199.111.133 avatars4.githubusercontent.com
185.199.111.133 avatars5.githubusercontent.com
185.199.111.133 camo.githubusercontent.com
185.199.111.133 cloud.githubusercontent.com
185.199.111.133 desktop.githubusercontent.com
185.199.111.133 favicons.githubusercontent.com
185.199.111.133 github.map.fastly.net
185.199.111.133 media.githubusercontent.com
185.199.111.133 objects.githubusercontent.com
185.199.111.133 private-user-images.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
185.199.111.133 user-images.githubusercontent.com
3.167.192.35 tmdb.org
3.167.192.35 api.tmdb.org
3.167.192.35 files.tmdb.org
3.167.212.66 themoviedb.org
3.167.212.66 api.themoviedb.org
3.167.212.66 www.themoviedb.org
3.167.212.66 auth.themoviedb.org
169.150.207.217 image.tmdb.org
169.150.207.217 images.tmdb.org
52.94.237.74 imdb.com
13.33.79.214 www.imdb.com
52.94.228.167 secure.imdb.com
13.33.79.214 s.media-imdb.com
52.94.237.74 us.dd.imdb.com
13.33.79.214 www.imdb.to
52.94.237.74 imdb-webservice.amazon.com
98.82.158.179 origin-www.imdb.com
146.75.29.16 m.media-amazon.com
13.35.214.197 Images-na.ssl-images-amazon.com
3.167.194.238 images-fe.ssl-images-amazon.com
3.168.148.144 images-eu.ssl-images-amazon.com
23.44.201.182 ia.media-imdb.com
199.232.45.16 f.media-amazon.com
18.65.25.71 imdb-video.media-imdb.com
3.165.84.176 dqpnq362acqdi.cloudfront.net
142.251.2.139 translate.google.com
142.251.2.139 translate.googleapis.com
142.251.2.139 translate-pa.googleapis.com
3.163.125.124 plugins.jetbrains.com
3.163.125.124 download.jetbrains.com
3.163.125.124 cache-redirector.jetbrains.com
185.199.108.154 github.githubassets.com
185.199.108.153 githubstatus.com
2606:50c0:8001::153 githubstatus.com
185.199.108.153 assets-cdn.github.com
2606:50c0:8001::153 assets-cdn.github.com
185.199.108.153 github.io
2606:50c0:8001::153 github.io
185.199.108.133 avatars.githubusercontent.com
2606:50c0:8002::154 avatars.githubusercontent.com
185.199.108.133 avatars0.githubusercontent.com
2606:50c0:8002::154 avatars0.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
2606:50c0:8002::154 avatars1.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
2606:50c0:8002::154 avatars2.githubusercontent.com
185.199.108.133 avatars3.githubusercontent.com
2606:50c0:8002::154 avatars3.githubusercontent.com
185.199.108.133 avatars4.githubusercontent.com
2606:50c0:8002::154 avatars4.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
2606:50c0:8002::154 avatars5.githubusercontent.com
185.199.108.133 camo.githubusercontent.com
2606:50c0:8002::154 camo.githubusercontent.com
185.199.108.133 cloud.githubusercontent.com
2606:50c0:8002::154 cloud.githubusercontent.com
185.199.108.133 desktop.githubusercontent.com
2606:50c0:8002::154 desktop.githubusercontent.com
185.199.108.133 favicons.githubusercontent.com
2606:50c0:8002::154 favicons.githubusercontent.com
185.199.108.133 github.map.fastly.net
2606:50c0:8002::154 github.map.fastly.net
185.199.108.133 media.githubusercontent.com
2606:50c0:8002::154 media.githubusercontent.com
185.199.108.133 objects.githubusercontent.com
2606:50c0:8002::154 objects.githubusercontent.com
185.199.108.133 private-user-images.githubusercontent.com
2606:50c0:8002::154 private-user-images.githubusercontent.com
185.199.108.133 raw.githubusercontent.com
2606:50c0:8002::154 raw.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
2606:50c0:8002::154 user-images.githubusercontent.com
54.230.71.49 tmdb.org
2600:9000:2014:8a00:5:da10:7440:93a1 tmdb.org
54.230.71.49 api.tmdb.org
2600:9000:2014:8a00:5:da10:7440:93a1 api.tmdb.org
54.230.71.49 files.tmdb.org
2600:9000:2014:8a00:5:da10:7440:93a1 files.tmdb.org
13.226.61.96 themoviedb.org
2600:9000:2816:5000:e:5373:440:93a1 themoviedb.org
13.226.61.96 api.themoviedb.org
2600:9000:2816:5000:e:5373:440:93a1 api.themoviedb.org
13.226.61.96 www.themoviedb.org
2600:9000:2816:5000:e:5373:440:93a1 www.themoviedb.org
13.226.61.96 auth.themoviedb.org
2600:9000:2816:5000:e:5373:440:93a1 auth.themoviedb.org
109.61.83.98 image.tmdb.org
2400:52e0:1500::1092:1 image.tmdb.org
109.61.83.98 images.tmdb.org
2400:52e0:1500::1092:1 images.tmdb.org
52.94.228.167 imdb.com
13.35.217.192 www.imdb.com
52.94.237.74 secure.imdb.com
18.172.46.173 s.media-imdb.com
52.94.225.248 us.dd.imdb.com
13.35.217.192 www.imdb.to
52.94.228.167 imdb-webservice.amazon.com
44.215.137.99 origin-www.imdb.com
23.49.104.166 m.media-amazon.com
2600:9000:2078:f800:1d:d7f6:39d4:e6e1 m.media-amazon.com
151.101.65.16 Images-na.ssl-images-amazon.com
2600:1417:4400:12::1721:b8e7 Images-na.ssl-images-amazon.com
23.49.104.166 images-fe.ssl-images-amazon.com
2600:9000:2079:fa00:1d:d7f6:39d4:e6e1 images-fe.ssl-images-amazon.com
151.101.129.16 images-eu.ssl-images-amazon.com
2600:9000:2751:1a00:1d:d7f6:39d4:e6e1 images-eu.ssl-images-amazon.com
23.49.104.166 ia.media-imdb.com
2600:1417:4400:12::1721:b8e7 ia.media-imdb.com
151.101.129.16 f.media-amazon.com
2a04:4e42:48::272 f.media-amazon.com
13.35.186.103 imdb-video.media-imdb.com
13.32.32.190 dqpnq362acqdi.cloudfront.net
2600:9000:27af:7600:5:ce70:a180:21 dqpnq362acqdi.cloudfront.net
34.105.140.105 translate.google.com
2404:6800:4005:823::200a translate.google.com
34.105.140.105 translate.googleapis.com
2404:6800:4005:823::200a translate.googleapis.com
34.105.140.105 translate-pa.googleapis.com
2404:6800:4005:823::200a translate-pa.googleapis.com
13.33.183.20 plugins.jetbrains.com
2600:9000:2014:f600:12:7c44:15c0:93a1 plugins.jetbrains.com
13.33.183.20 download.jetbrains.com
2600:9000:2014:f600:12:7c44:15c0:93a1 download.jetbrains.com
13.33.183.20 cache-redirector.jetbrains.com
2600:9000:2014:f600:12:7c44:15c0:93a1 cache-redirector.jetbrains.com

# Update time: 2024-12-05 09:46:44 +08:00
# GitHub仓库: https://github.com/sinspired/cnNetTool
# Update time: 2024-12-05 11:37:05 +08:00
# GitHub²Ö¿â: https://github.com/sinspired/cnNetTool
# cnNetTool End
9 changes: 6 additions & 3 deletions setDNS.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def find_available_dns(args) -> tuple[dict, dict]:
domain_resolutions[domain][server] = ips

logger.debug(
f"{ip_version.upper()} DNS {server} ({region} - {provider}) 成功率 {success_rate:.2%}, 平均延迟 {avg_response_time:.2f}ms"
f"{ip_version.upper()} DNS {server} ({
region} - {provider}) 成功率 {success_rate:.2%}, 平均延迟 {avg_response_time:.2f}ms"
)
except Exception as exc:
logger.error(f"{server} 测试出错: {str(exc)}")
Expand Down Expand Up @@ -308,7 +309,8 @@ def set_dns_servers(ipv4_dns_list: list[str], ipv6_dns_list: list[str]):
continue
if ipv4_dns_list:
logger.debug(
f"设置IPv4 DNS for {interface}:{', '.join(ipv4_dns_list)}"
f"设置IPv4 DNS for {interface}:{
', '.join(ipv4_dns_list)}"
)
try:
subprocess.run(
Expand Down Expand Up @@ -342,7 +344,8 @@ def set_dns_servers(ipv4_dns_list: list[str], ipv6_dns_list: list[str]):
logger.error(f"设置IPv4 DNS for {interface}失败: {e}")
if ipv6_dns_list:
logger.debug(
f"设置IPv6 DNS for {interface}: { ', '.join(ipv6_dns_list)}"
f"设置IPv6 DNS for {interface}: {
', '.join(ipv6_dns_list)}"
)
try:
subprocess.run(
Expand Down
Loading

0 comments on commit 897504d

Please sign in to comment.