Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/masx200/deno-cloudflare-ddns
deno-cloudflare-ddns
https://github.com/masx200/deno-cloudflare-ddns
Last synced: 6 days ago
JSON representation
deno-cloudflare-ddns
- Host: GitHub
- URL: https://github.com/masx200/deno-cloudflare-ddns
- Owner: masx200
- License: mit
- Created: 2022-06-12T13:17:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-25T19:50:32.000Z (7 months ago)
- Last Synced: 2024-04-25T20:51:57.151Z (7 months ago)
- Language: TypeScript
- Size: 21.5 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deno-cloudflare-ddns
deno-cloudflare-ddns
适用于deno 的 cloudflare ddns 客户端,支持ipv6和ipv4,自动获取本机的公共ip地址
https://deno.land/x/masx200_deno_cloudflare_ddns/mod.ts
`startIpv6DDNS`:开始定时更新IPV6的DNS的AAAA类型记录
`startIpv4DDNS`:开始定时更新IPV4的DNS的A类型的记录
`createOrPatchDNSRecord`:根据dns记录的名字和类型查找,未找到则创建或者找到后更新DNS记录。
`get_zone_id_of_name`:根据`zone`的名字查找`zone`的`id`
`get_dns_record_id_of_name_type`:根据`dns_record`的名字和类型查找`dns_record`的`id`
## 例子
```ts
const api_token = "examplexapixtoken";const dns_name = "example.example.com";
await startIpv6DDNS({
api_token,dns_name,
});
```