Git Product home page Git Product logo

dns-owl's Introduction

dns-owl

This is a little Python script that updates your IP to the DynDNS servers of Cloudflare

Use

You can deploy this container on your server and update your public IP to the Cloudflare DynDNS Servers. You can specify the update intervall in the environment variables using standard cron notation.

In the config.json you can enter the domains you want to update by a comma-separated list. New for Cloudflare: you have to add your Zone ID, Record IDs and API Key, as well as the Mail to access the Cloudflare API and Update your records.

Record ID and Zone ID, API Key

You can get your Zone ID and API Key form your Cloudflare Profile. If you are unsure, refer to the Cloudflare docs. With Zone ID, Key and Mail, you can run

curl --request GET \
  --url https://api.cloudflare.com/client/v4/zones/{YOUR_ZONE_ID}/dns_records \
  --header 'Content-Type: application/json' \
  --header 'X-Auth-Email: [email protected]' \
  --header 'X-Auth-Key: {YOUR_API_KEY}'

The result contains a list of your subdomains for this record and their corresponding RECORD_ID.

Careful

The script waits the specified interval before doing its first update. If you chose a long one (eg. 1 day) it takes as much time for the first update. During this, nothing is written to the log, so it can seems as the container is hung up, which is not the case. I try to remove this and have it run an update right at the start of the container. I will try to make the logs more verbose in future versions.

Strato

Support for Strato is deprecated, since I no longer host my domains there and cannot test any changes. With the next update I will tr to make the script supporting both.

dns-owl's People

Contributors

simonl169 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

dns-owl's Issues

Installation Docker Compose

Good evening, first of all thank you for creating this docker. I was looking for how to manage the DynDns of my Strato domain and I have arrived at your GitHub.
It’s the first time I’ve written to someone, so I apologize in advance if I do it wrong or in the wrong place.
I have tried to install the Docker on my Ubuntu server on which I have many others but it gives me the following error when installing it.

Demon error response: extraction access denied for dns-owl, the repository does not exist or may require "docker login": denied: requested access to the resource is denied

In the installation I have only created the config.json file in the root of the docker next to the docker-compose.yml and in it I have put as indicated the following

{
  "domains": [
    "midominio.com"
  ]
}

I don't know what I'm doing wrong or what else I have to add to make it work.

Thank you very much in advance

Change Provider to Cloudflare

Since I moved my domain to Cloudflare, I need to change to code to work with CF.

Maybe I'll make it switchable which one to use

Add better CI

Integrate automatic semver
bring Actions up to date
aaaaand more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.