Skip to content

make independant apple relay conf; add netease DNS mapping #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions Source/domainset/cdn.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ google-ohttp-relay-safebrowsing.fastly-edge.com
.privacy-gateway.cloudflare.com
.proxy.safebrowsing.apple

# >> Apple Relay
apple-relay.fastly-edge.com
apple-relay.cloudflare.com
apple-relay.apple.com
cp2.cloudflare.com
cp3.cloudflare.com
cp4.cloudflare.com

# >> Open Source CDN
.jsdelivr.net
Expand Down
10 changes: 10 additions & 0 deletions Source/non_ip/apple_relay.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# $ meta_title Sukka's Ruleset - Apple Relay
# $ meta_description This file contains domains for Apple Relay, hosted by Apple, Inc.

# >> Apple Relay
DOMAIN-SUFFIX,apple-relay.fastly-edge.com
DOMAIN-SUFFIX,apple-relay.cloudflare.com
DOMAIN-SUFFIX,apple-relay.apple.com
DOMAIN-SUFFIX,cp2.cloudflare.com
DOMAIN-SUFFIX,cp3.cloudflare.com
DOMAIN-SUFFIX,cp4.cloudflare.com
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not specifically for Apple. Many Cloudflare customers also use these domains.

Copy link
Owner

@SukkaW SukkaW Mar 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://blog.cloudflare.com/stronger-than-a-promise-proving-oblivious-http-privacy-properties/
https://docs.fastly.com/products/oblivious-http-relay

The OHTTP Relay is designed to hide users' IP/Geolocation (and other PI & PII) from the service providers. Why do you need to specify a special policy to unlock those services?

35 changes: 35 additions & 0 deletions Source/non_ip/domestic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,41 @@ export const DOMESTICS: Record<string, DNSMapping> = {
'baomitu.com',
'qiku.com'
]
},
NETEASE: {
hosts: {},
dns: 'https://doh.pub/dns-query',
realip: false,
ruleset: true,
domains: [
'126.com',
'126.net',
'127.com',
'127.net',
'+163.com',
'163yun.com',
'+163.com.cn',
'163jiasu.com',
'166.com',
'166.net',
'188.com',
'netease.com',
'+neteasecloudmusic.com',
'+neteasegame.com',
'+netease.im',
'netstatic.net',
'lofter.com',
'yeah.net',
'ydstatic.com',
'youdao.com',
'youdao.cn',
'yoozoo.com',
'yqkk.link',
'haowu.link',
'laiqukankan.com',
'zhuanzfx.com',
'321fenx.com'
]
Comment on lines +345 to +378
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why DNSPod? NetEase uses multiple CDNs from different providers. For instance, NetEase Music primarily uses Alibaba Cloud CDN.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why DNSPod? NetEase uses multiple CDNs from different providers. For instance, NetEase Music primarily uses Alibaba Cloud CDN.

I have never expected that. I didn't found public records saying NetEase have used multiple CDNs for different services.

https://github.com/mawenjian/china-cdn-domain-whitelist/blob/master/china-top-website-whitelist.conf

I wrote the update from this record.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have never expected that. I didn't found public records saying NetEase have used multiple CDNs for different services.

m*.music.126.net uses both Alibaba Cloud CDN and China Telecom's CDN.
p*.music.126.net uses both Bytedance (volcengine) CDN and China Telecom's CDN.

}
};

Expand Down
Loading