-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unnecessary normalizaiton and "hostname exists" error when renewing existing DHCP leases #3056
Comments
I have a quite similar issue #3053. Here is a screenshot of my leases : And a quick sample of my log :
|
@Black8all Exactly. Over night, my DHCP leases list has now turned into something akin to your screenshot. Only a long list of hyphenated IPv4s, no proper hostnames anymore. This breaks large parts of the entire home network. |
I had a similar problem with 0.106.1... |
Hello and thank you for the thorough report. We can reproduce the issue and will try to fix it in the next couple of days. |
I thought it was fixed in the latest edge channel build... but it's not... I'm getting a bunch of "normalized" host name (14 now out of my 22 devices that do not get a static IP address) |
@alexpovel, @zadigre, we've pushed a possible fix to the edge channel. Can you please check that DHCP works better now? |
I won't be able to test the dhcp server now... |
I have removed |
Okay, some results are in. The list of DHCP hostnames that got a lease from AGH now indeed looks fine, no more hyphenated IP addresses. There's new problems.
EDIT: I relaunched the Docker stack and removed the But maybe that's intended behaviour and those are junk entires to be flushed out soon. The good news is that local domain resolution works again in that version. |
What about |
It works there! |
Just to be clear, are there any more issues here that aren't fixed in v0.106.2? |
I don't know if it's always the same error as #3053? |
@ainar-g , thanks for asking. I've had |
Updates AdguardTeam#3056. Squashed commit of the following: commit 875954f Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed May 5 19:54:24 2021 +0300 all: imp err msgs commit c6ea471 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed May 5 17:55:12 2021 +0300 dhcpd: imp normalization, validation
Have a question or an idea? Please search it on our forum to make sure it was not yet asked. If you cannot find what you had in mind, please submit it here.
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Issue Details
Expected Behavior
DHCP leases working correctly.
Actual Behavior
DHCP leases are not working correctly. It's similar to #3053 . Updating from
v0.105
tov0.106
, DHCP leases were not working at all. I solved this pruning the entire working directory at/opt/adguardhome/work
. It contains aleases.db
JSON file with leases; maybe deleting just that would've been enough, but the nuclear option was simpler (which also deletes the stats, query log and more).After nuking the leases, new clients were able to come in and get proper DHCP leases, and AGH would resolve their hostnames fine, like
pecan
in this example:However, if clients try to get a lease again, it errors out with
validating hostname: hostname exists
and the original, correct hostname getsnormalized
to its hyphenated IP address, like the second client in the above screenshot. The corresponding log entry looks like:I mean, I guess AGH is technically correct: the hostname exists. But the requesting machine is that same machine, so it should just overwrite that entry, no?
It seems that after a while (after all DHCP leases needed to have been renewed, 24h in my case), all hosts will eventually get "normalized" to their respective hyphenated IP addresses. They become unreachable under their ordinary hostname.
The text was updated successfully, but these errors were encountered: