Comments (7)
so you do CONTAINER: TLD
version: '2' services: cloudflare-ddns: image: oznu/cloudflare-ddns:latest restart: always environment: - API_KEY=xxxxxxx - ZONE=mydomain.com
CONTAINER: suddomains
version: '2' services: cloudflare-ddns: image: oznu/cloudflare-ddns:latest restart: always environment: - API_KEY=xxxxxxx - ZONE=*.mydomain.com - PROXIED=false
Yes exactly. I just don't use docker compose.
`docker run -d
--name=ddns1
-e API_KEY=
-e ZONE=mydonain.com
--restart=unless-stopped
oznu/cloudflare-ddns
docker run -d
--name=ddns2
-e API_KEY=
-e ZONE=domain.com
-e SUBDOMAIN=*
--restart=unless-stopped
oznu/cloudflare-ddns`
Also from your link:
You can save yourself some trouble when hosting multiple domains pointing to the same IP address (in the case of Traefik) by defining one A & AAAA record 'ddns.example.com' pointing to the IP of the server that will be updated by this DDNS script. For each subdomain, create a CNAME record pointing to 'ddns.example.com'. Now you don't have to manually modify the script config every time you add a new subdomain to your site!
from docker-cloudflare-ddns.
I just created 2 separated docker containers.
One without subdomain=
and one with subdomain=www,cloud,etc
from docker-cloudflare-ddns.
@thijsjek can you use commas to separate multiple subdomains?
from docker-cloudflare-ddns.
still, the case that only one of the A-Types gets updated?
first A got updated but not the second one.
from docker-cloudflare-ddns.
So, the container let's you put in multiple like comma seperated domains or multiple -e subdomains, but that does not work. I didnt notice because my IP didn't change until I setup like below
I eventually just use 2 containers. One for mydomain.com and one for *.mydomain.com.
To adjust multiple subdomains, I think you have to create several containers.
from docker-cloudflare-ddns.
so you do
CONTAINER: TLD
version: '2'
services:
cloudflare-ddns:
image: oznu/cloudflare-ddns:latest
restart: always
environment:
- API_KEY=xxxxxxx
- ZONE=mydomain.com
CONTAINER: suddomains
version: '2'
services:
cloudflare-ddns:
image: oznu/cloudflare-ddns:latest
restart: always
environment:
- API_KEY=xxxxxxx
- ZONE=*.mydomain.com
- PROXIED=false
from docker-cloudflare-ddns.
otherwise, may https://github.com/timothymiller/cloudflare-ddns may do it better
from docker-cloudflare-ddns.
Related Issues (20)
- ERROR: Failed to update CloudFlare DNS <domain> from X.X.X.X to ;; connection timed out; no servers could be reached HOT 2
- ssh not working HOT 3
- ERROR: Failed To Get Public IPv4 Address HOT 1
- Update multiple domains HOT 8
- cannot update wildcard * A record HOT 9
- Cloudflare proxy had been disabled. HOT 3
- Updating AAAA record: "connection timed out; no servers could be reached" HOT 1
- Add multiple subdomains without using CNAME?
- API key not working HOT 6
- Support for updating both IPV4 and IPV6 at the same time
- Suggestion - Implement a healthcheck ping HOT 1
- getZoneId is always using the ZONE environment variable, even when ZONE_FILE is set. HOT 4
- Improper DIG Error Handling For IPv4
- log file - no time stamp
- Update multiple sub-domains HOT 3
- IPv6 address detection fallback not working correctly HOT 2
- Large amount of vulnerabilities HOT 2
- Unable to update A record Cookie mismatch
- ERROR: Failed to update CloudFlare DNS record HOT 2
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 docker-cloudflare-ddns.