🚸 增加几个后缀并优化多语言

This commit is contained in:
7836246
2024-03-03 13:54:20 +08:00
parent 9a64049c60
commit 263ad0a4df
7 changed files with 16 additions and 5 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import dns from 'node:dns/promises';
// 定义 DNS 服务器配置
const dnsServers:any = {
google: 'https://dns.google/resolve',
cloudflare: 'http://cloudflare-dns.com/dns-query',
cloudflare: 'http://1.1.1.1/dns-query',
aliyun: 'https://223.5.5.5/resolve',
tencent: 'https://doh.pub/dns-query',
};
@@ -45,7 +45,7 @@ export default defineEventHandler(async (event) => {
}
});
case 'cloudflare':
const resp = await $fetch('http://1.1.1.1/dns-query', {
const resp = await $fetch(dnsServers.cloudflare, {
method: 'GET',
params: {
name: domain,
+5 -1
View File
@@ -315,5 +315,9 @@
"xn--y9a3aq":"whois.amnic.net",
"xn--yfro4i67o":"whois.sgnic.sg",
"xn--ygbi2ammx":"whois.pnina.ps",
"xyz":"whois.nic.xyz"
"xyz":"whois.nic.xyz",
"abogado": "whois-dub.mm-registry.com",
"zone": "whois.donuts.co",
"zip": "domain-registry-whois.l.google.com",
"link": "whois.uniregistry.net"
}