Skip to content
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

Add UNKNOWN option for REFRESH_HOSTNAME #985

Merged
merged 4 commits into from
Dec 23, 2020

Conversation

DL6ER
Copy link
Member

@DL6ER DL6ER commented Dec 17, 2020

By submitting this pull request, I confirm the following:

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.

How familiar are you with the codebase?:

10


This PR adds the new parameter REFRESH_HOSTNAMES=UNKNOWN to support only refreshing recently active clients without hostnames.
There will be no PTR queries made for clients where hostnames are known. This also means that known hostnames will never be updated. This is intentional for this option. Other behavior can be achieved with the other available values for this config option.

In addition, we improve the behavior of real-time signal 4: Whenever the signal is arrived, we force a hostname renewal for all clients matching the current REFRESH_HOSTNAMES setting. "Forcing" in this context means that the "only resolve recently active clients" rule is ignored.

…ive clients with unknown hostnames

Signed-off-by: DL6ER <dl6er@dl6er.de>
… on receipt of SIGRT4

Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
src/resolve.c Outdated Show resolved Hide resolved
Co-authored-by: Adam Warner <me@adamwarner.co.uk>
@DL6ER DL6ER requested a review from PromoFaux December 20, 2020 11:48
@DL6ER DL6ER merged commit 55c2678 into development Dec 23, 2020
@DL6ER DL6ER deleted the new/REFRESH_HOSTNAMES_NULL branch December 23, 2020 13:01
@DL6ER DL6ER mentioned this pull request Dec 23, 2020
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/pi-hole-core-web-v5-2-2-and-ftl-v5-3-3-released/41998/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants