-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
同时更新IPv4和IPv6的配置文件怎么写呀? #203
Labels
Comments
我看了下代码,没有同时支持的逻辑。 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" |
跑两个实例是可以解决问题,但是不太优雅 |
后续版本可以更新成同时更新IPv4和IPv6 |
好的,非常感谢。 |
同时支持的配置文件打算怎么写? |
改动还有点大,得从最底层改起 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我搜了issue,看功能是支持的。但是看readme还是没明白应该怎么写,请求大佬支援。
另外v4和v6可以用同一个域名吗?
The text was updated successfully, but these errors were encountered: