-
Notifications
You must be signed in to change notification settings - Fork 30
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
Duplicate records created, still with the old IP #21
Comments
Could it be related to kubernetes-sigs/external-dns#503 ? |
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? |
The issue has not reproduced itself. It's probably an issue on DigitalOcean's end. |
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:
|
This issue should not be closed. It's still happening. |
This happened once again.
My IP changed this morning, and now I have 2 pages of duplicate DNS records, all of which point to the wrong IP address. |
I'm starting to see what could be wrong.
So it looks like it compares a single IP to a bunch of different IPs, and the strings don't match. |
Hi @nicbou , Have you tried passing
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? |
I would have to check. This flag did not exist last time I used this
project. I'm running the docker image with no version pinned, so it must
not be that old.
In the end, I opted to write my own script, closely following yours.
Thanks for keeping an eye on that issue, even though you don't have much to
work with.
Alper Kanat ***@***.***> schrieb am Di., 1. Feb. 2022, 14:51:
… Hi @nicbou <https://github.com/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?
—
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAVWVIUBMNWZX3Y4WHG6ZDUY7QMXANCNFSM452PSXWA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
My IP address recently changed, and after 24 hours, the DNS record still pointed to the old IP. The logs show multiple (successful?) attempts to update the DNS records, but somehow it failed.
I logged in to my Digitalocean dashboard, and saw 5-6 duplicate entries for that subdomain in the Networking tab, all showing the old IP.
The text was updated successfully, but these errors were encountered: