🚸 增加几个后缀并优化多语言
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user