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

Internal resolver tweaks #710

Merged
merged 3 commits into from
Mar 25, 2020
Merged

Internal resolver tweaks #710

merged 3 commits into from
Mar 25, 2020

Conversation

DL6ER
Copy link
Member

@DL6ER DL6ER commented Mar 7, 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


In order to be able to resolve host names specified in Custom DNS, /etc/hosts, etc. we have to ask FTL itself when trying to find out host names to IP addresses by generating PTR requests for this. Previously, this was automatically done, however, with the removal of forcing the local nameserver to 127.0.0.1 we lost the ability to resolve only locally known host names temporarily. We reinstalled the ability by forcing FTL as the first resolver on the system. As this effectively overwrote /etc/resolv.conf (even if only inside FTL itself), it had adverse effect on docker instances where local name resolution failed for some special devices.

This PR addresses the issue in a (user-confirmed) docker-friendly way by adding FTL as last resolver.

…TL forcing itself as the first resolver of the system

Signed-off-by: DL6ER <dl6er@dl6er.de>
@DL6ER DL6ER added this to the v5.0 milestone Mar 7, 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/ptr-lookups-for-docker-networks/28753/15

@DL6ER DL6ER marked this pull request as ready for review March 24, 2020 13:06
@DL6ER DL6ER requested a review from a team March 25, 2020 09:13
Signed-off-by: DL6ER <dl6er@dl6er.de>
@DL6ER
Copy link
Member Author

DL6ER commented Mar 25, 2020

Updated description.

@DL6ER DL6ER merged commit 603507c into release/v5.0 Mar 25, 2020
@DL6ER DL6ER deleted the tweak/FORCE_LOCAL_RESOLVER branch March 25, 2020 14:40
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