Giter VIP home page Giter VIP logo

regmibijay / strato-dyndns Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 107 KB

DynDNS client written in Python which updates DNS Records for your domains, currently supports Strato and Namecheap.

Home Page: https://github.com/regmibijay/strato-dyndns

License: GNU General Public License v3.0

Python 99.65% Shell 0.35%
strato dyndns dyndns-updater dyndns-service dns-over-https dns-record dns namecheap

strato-dyndns's Introduction

Hi there ๐Ÿ‘‹

I work as

  • Cloud Data Engineer
  • Backend Engineer (Django, FastAPI/Starlette)

Additionally, I contribute to open source projects like

or help the community on StackOverflow.

strato-dyndns's People

Contributors

gitter-badger avatar regmibijay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

gitter-badger

strato-dyndns's Issues

IP V6 ip retrieval failes

I'm getting this error:

            Failed to connect to external server: HTTPSConnectionPool(host='regdelivery.de', port=443): Max retries exceeded with url: /ip-api?src=stratodyndns (Caused by ConnectTimeoutError(<strato_dyndns.lib.requests_wrapper.HTTPSConnection object at 0x7f52ec98c1c0>, 'Connection to regdelivery.de timed out. (connect timeout=None)')), 
            
make sure you have IPV6 network connectivity.

since 2024-06-25T11:43:01+0000 (first failure)
The timestamp is from my crontab log which is sheduled 43 * * * *

The IPv4 request seems to work in python and with curl:

curl https://regdelivery.de/ip-api?src=stratodyndns
84.44.229.xxx

but IPv6 not:

curl -6  https://regdelivery.de/ip-api?src=stratodyndns
curl: (28) Failed to connect to regdelivery.de port 443 after 130409 ms: Connection timed out

I added this temporary fix in my code for now:

self._EXTERAL_API_URL    = "https://api.ipify.org:443?format=text"
self._EXTERAL_API_URL_V6 = "https://api64.ipify.org:443?format=text"

and use it in get_ip_v4 and get_ip_v6. This seems to work for now.
But I guess the problem is on the regdelivery.de server.

Typo's in de MD file

Hallo,

I used your Python script to update my dyndns records at Strato. All worked fine, but there are 2 typo's in your MD file:

1- The automation section mentions strato-dyndns instead of strato_dyndns
2- The automaten section mentions the use of the script without the provider option (strato). But I needed to add the provider string strato to the command to het it working.

Thanks for your code....

Gr. Remco

-v4 or -v6 flag not working for me

Hello,
I downloaded the latest version today and got it working if I manualy add a ip address with the -ip flag.
But I want to use the -v4 flag to automate the process.

When I use the -v4 flag I get the following error:
"Could not process your parameters, reason: 'ip_addresses'"

I get the same error with the -v6 flag but I don't have a external ipv6 address so that could be a legit error.

This is the comand I use:
sudo strato_dundns strato -c cozy.json -v4

This is the cozy-json file (obv I use a fake domain and password here)
{ "username": "mycozysite.net", "password": "cozypassword1337", "domain": "mycozysite.net" }
Did I miss something on how the -v4 flag works?

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.