mirror of
https://github.com/nsupdate-info/nsupdate.info.git
synced 2026-04-25 08:35:56 +03:00
[GH-ISSUE #49] dns / database cleanup mechanism #47
Labels
No labels
bug
bug
duplicate
easy
easy
enhancement
enhancement
invalid
needs help
pull-request
scalability
security
task
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nsupdate.info-nsupdate-info#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ThomasWaldmann on GitHub (Oct 22, 2013).
Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/49
Originally assigned to: @ThomasWaldmann on GitHub.
if hostnames are orphaned (not updated any more, for a long time), have some means to remove them from dns and database.
same for users who did not use the service for a longer time (and didn't update hosts either).
@ThomasWaldmann commented on GitHub (Nov 24, 2013):
problem:
if someone has a (more or less) static IP, his dyndns client maybe does not send updates. either never or not for a long time. so how can we know these hosts are in use still?
@dklann commented on GitHub (Nov 24, 2013):
Maybe you have considered this, but is it worth the time to at least ping the address? It does not in any way guarantee that the pinged host is the one that submitted the original request, but it at least verifies that the host is up. I have dealt with this issue in the past, and I wish it were required to check in with the dns server on some regular basis. Some clients (e.g., OpenWrt) have a "force update" option to do this, others?
Maybe simply establish a policy that host that have not checked in for [x] {days,weeks,months} are purged?
@ThomasWaldmann commented on GitHub (Nov 24, 2013):
I thought about pinging, but recognized it is useless.
There is no requirement for any host to answer pings. In fact, for many routers it can be disabled.
If a client does not send updates any more, a ping reply just means there is something at the old address. But it can be anything / anybody. DSL providers usually have a pool of addresses and you get a new address every day. So, your address of yesterday is somebody else's address of today, likely. (And if there is no reply, it also doesn't mean that the host doesn't exist any more, it could be just temporarily offline...)
OTOH, other providers (like cable) give you a (almost) static address - over weeks / months. So the update client does not need to update.
If a update client could be expected to update at least once a week or so (even if IP didn't change) that would help, but I even don't know if that can be assumed / that is assured.
The "you must do X every month" thing is spoiling the dyndns service of other dyndns providers (there, X == log in to our site), so I don't want to do that.
So, the only idea I currently have would be extremely long-term, like if there was no IP update for a year, maybe send an email with a manual update link. If no update happens, maybe send another email a while later. If still no update happens, disable the host (so it can be enabled again by the user via web interface). If there is still no reaction, remove the host.
@ThomasWaldmann commented on GitHub (Nov 24, 2013):
About the requirement to do periodic nochg updates in update clients (which would really help, I agree):
AFAIK avm fritzbox and ddclient have no setting for this.
No idea whether they have some hardcoded time interval for this or just don't do it.
@dklann commented on GitHub (Nov 25, 2013):
Yes, Thomas, I concur of the futility of pinging. I just tossed it out there partly by way of joining the conversation, and partly to stir the pot.
I think your concept of emailing after a year of inactivity is a reasonable one. My experience with Dyn (the organization) is that they've been pretty hands off with respect to cleanup (I use their paid service). So it seems as if doing something in a free service is reasonable!
Let's lobby the clients to add code for periodic nochg updates!
@ThomasWaldmann commented on GitHub (Nov 25, 2013):
of course, if you are paying, they won't wake you up and tell you "you don't use this any more". :)
@ThomasWaldmann commented on GitHub (Nov 18, 2014):
last_update_ipv4 and last_update_ipv6 have the datetime when the IPs were last updated (check if both good and nochg set the update timestamp).
add a staleness counter and a staleness_notification_timestamp to the host record and regularly run a management script:
If user visits the host record on the web ui and staleness is > 0, it should show a warning and tell the owner that he needs to update the IP right now.
It should also show a warning label on the overview.
@ThomasWaldmann commented on GitHub (Nov 21, 2014):
implemented by
13cf70baf6i also did a first run of "manage hosts --check-stale --notify-user" today: