Comments (6)
后续版本可以更新成同时更新IPv4和IPv6
from godns.
我看了下代码,没有同时支持的逻辑。
godns/internal/provider/dnspod/dnspod_provider.go
Lines 125 to 128 in cc58c26
我是写了两个配置文件,分别运行。
# docker-compose.yaml
version: "3.9"
services:
godns-ipv4:
image: timothyye/godns:latest
restart: unless-stopped
network_mode: host
command: -c /IPv4.yaml
volumes:
- ./IPv4.yaml:/IPv4.yaml
godns-ipv6:
image: timothyye/godns:latest
restart: unless-stopped
network_mode: host
command: -c /IPv6.yaml
volumes:
- ./IPv6.yaml:/IPv6.yaml
# IPv4.yaml
provider: DNSPod
login_token: "123456,aaaaaaaaaaaaaaaaaaaaaaaa"
domains:
- domain_name: example.com
sub_domains:
- www
ip_urls: [https://4.ipw.cn]
ip_type: IPv4
interval: 300
resolver: 8.8.8.8
# IPv6.yaml
provider: DNSPod
login_token: "123456,aaaaaaaaaaaaaaaaaaaaaaaa"
domains:
- domain_name: example.com
sub_domains:
- www
ipv6_urls: [https://6.ipw.cn]
ip_type: IPv6
interval: 300
resolver: "2001:4860:4860::8888"
from godns.
跑两个实例是可以解决问题,但是不太优雅
from godns.
后续版本可以更新成同时更新IPv4和IPv6
好的,非常感谢。
from godns.
Related Issues (20)
- Feature request: Support OVH provider HOT 2
- 配置了这个DDNS服务后,怎么配置端口做转发呢? HOT 1
- Prebuilt binary for OpenBSD, please. This rc syntax should suffice for creation of an rc file to run with rc.d. HOT 9
- Deleting published tags is a bad idea HOT 1
- Usage of ip_urls should use round-robin HOT 2
- yaml config file support in docker? HOT 2
- Fails to determine IP address of Interface on FreeBSD HOT 11
- how to hidden cmd window in widnows HOT 3
- dynu supoort? HOT 2
- No timeout when getting ip with http client HOT 2
- 网络访问失败时需要添加延时再重试 目前连续访问会导致CPU占用100% HOT 2
- 优化建议:支持从本地网口直接获取IP HOT 1
- 想用网卡的IP地址报错 HOT 1
- PowerDNS, DynDNS(2) or RFC2136?
- The strangest thing (wrong public IP) HOT 3
- Docker Image not updating public ip address as per interval configuration HOT 3
- release-3.1.0: internal/server/server.go:19:12: pattern out/*: no matching files found HOT 12
- 能否做一下myip.la的API适配 HOT 9
- Add a way to query IP address through a specific interface HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godns.