Giter Club home page Giter Club logo

Comments (9)

nicbou avatar nicbou commented on June 11, 2024 1

The issue has not reproduced itself. It's probably an issue on DigitalOcean's end.

from digitalocean-dyndns.

nicbou avatar nicbou commented on June 11, 2024

Could it be related to kubernetes-sigs/external-dns#503 ?

from digitalocean-dyndns.

tunix avatar tunix commented on June 11, 2024

Hi @nicbou ,

Unfortunetely I don't have any ideas. I haven't used this project inside k8s. Such an issue has not been reported before by any user. I guess this might be something with your system? Maybe you can share the logs?

from digitalocean-dyndns.

nicbou avatar nicbou commented on June 11, 2024

Hi @tunix, unfortunately I had the same problem again today. My ISP assigned me a new IP and my server went offline, but the DNS record was not updated. In digitalocean I see 6 duplicate records, all with the old address. In the docker logs, I see that it tried to update the IP, but it somehow didn't work:

dynamicdns_1       | Trying with ifconfig.co...
dynamicdns_1       | Found IP address 91.64.156.15
dynamicdns_1       | existing DNS record address (91.64.142.174
dynamicdns_1       | 91.64.142.174
dynamicdns_1       | 91.64.142.174
dynamicdns_1       | 91.64.142.174
dynamicdns_1       | 91.64.142.174
dynamicdns_1       | 91.64.142.174
dynamicdns_1       | 91.64.142.174) doesn't match current IP (91.64.156.15), sending data={"type": "A", "name": "home", "data": "91.64.156.15"} to url=https://api.digitalocean.com/v2/domains/nicolasbouliane.com/records/151343831
dynamicdns_1       | 158312602
dynamicdns_1       | 158640116
dynamicdns_1       | 158786875
dynamicdns_1       | 158792506
dynamicdns_1       | 159168836
dynamicdns_1       | 159907117
dynamicdns_1       | existing DNS record address (91.64.142.174
dynamicdns_1       | 91.64.142.174
dynamicdns_1       | 91.64.142.174
dynamicdns_1       | 91.64.142.174
dynamicdns_1       | 91.64.142.174
dynamicdns_1       | 91.64.142.174
dynamicdns_1       | 91.64.156.15) doesn't match current IP (91.64.156.15), sending data={"type": "A", "name": "timeline", "data": "91.64.156.15"} to url=https://api.digitalocean.com/v2/domains/nicolasbouliane.com/records/151343833
dynamicdns_1       | 158312609
dynamicdns_1       | 158640118
dynamicdns_1       | 158786878
dynamicdns_1       | 158792508
dynamicdns_1       | 159168837
dynamicdns_1       | 159907119

from digitalocean-dyndns.

nicbou avatar nicbou commented on June 11, 2024

This issue should not be closed. It's still happening.

from digitalocean-dyndns.

nicbou avatar nicbou commented on June 11, 2024

This happened once again.

  dynamicdns:
    image: tunix/digitalocean-dyndns
    environment:
      - DIGITALOCEAN_TOKEN
      - DOMAIN=nicolasbouliane.com
      - NAME=home;timeline

My IP changed this morning, and now I have 2 pages of duplicate DNS records, all of which point to the wrong IP address.

from digitalocean-dyndns.

nicbou avatar nicbou commented on June 11, 2024

I'm starting to see what could be wrong.

dynamicdns_1       | Trying with ifconfig.co...
dynamicdns_1       | Found IP address NEW_IP
dynamicdns_1       | existing DNS record address (OLD_IP
dynamicdns_1       | OLD_IP
[many more duplicate OLD_IP lines]
dynamicdns_1       | NEW_IP) doesn't match current IP (NEW_IP), sending data={"type": "A", "name": "home", "data": "91.65.119.67"} to url=https://api.digitalocean.com/v2/domains/nicolasbouliane.com/records/...
dynamicdns_1       | RECORD_ID
[many more RECORD_IDs]

So it looks like it compares a single IP to a bunch of different IPs, and the strings don't match.

from digitalocean-dyndns.

tunix avatar tunix commented on June 11, 2024

Hi @nicbou ,

Have you tried passing REMOVE_DUPLICATES='true' as an environment variable? The script has the ability to remove duplicated DNS records but it's turned off by default. You should see a log message like below:

Unable to update '$sub' domain name as it has duplicate DNS records. Set REMOVE_DUPLICATES='true' to remove them.

Also, do you use the default sleep interval? (which is 5 mins) The script basically checks if the resolved IP address corresponds to the DNS record with the given subname and then creates or updates it.

According to your logs, record_id (at line 44) consists of many records per subdomain but I can't see how that's possible. Do you use the latest Docker image?

from digitalocean-dyndns.

nicbou avatar nicbou commented on June 11, 2024

from digitalocean-dyndns.

Related Issues (11)

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.