-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Control the reverse lookup responses (PTR records) for statically defined domain name mappings in the blocky config #1570
Comments
+1, it would be very useful |
Since I run my own customized docker images in my homelab setup for almost all services, I have one for blocky as well. I decided to take a stab at implementing this myself and see if it will work, and it does. Here is the patch file - https://github.com/TuxdudeHomeLab/docker-image-blocky/blob/master/patches/01-custom-dns-reverse-mapping-override.diff The changes essentially apply a reverse DNS lookup override for the specified records and will ignore the current reverse DNS records automatically determined from the forward custom DNS mapping for that IP address. If there is no reverse DNS override specified for an IP, it will use the info from the forward records as it does now. Example:
Without this change:
With this change:
If there is interest in this feature, I am happy to make this a proper pull request and update tests, etc. Will be interested to know from the owners/maintainers of blocky. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Bumping this for one final time to see if there is any interest in the patch. The repo was moved. This is the new location - https://github.com/tuxgalhomelab/docker-image-blocky/blob/master/patches/01-custom-dns-reverse-mapping-override.diff |
I currently have a bunch of domain name records defined statically under the
customDNS.mapping
section of the blocky config file. I have multiple name records mapping to the same IP, which is quite typical when you run some sort of a reverse proxy (eg. nginx in my case) which hosts all these domain/subdomains, and will redirect the traffic to the corresponding backends for the service.When I query for the PTR records (i.e. reverse lookup) on the host's IP (
10.1.1.8
in the above example), I get all of these name records in the result.The order of these records in the response are also non-deterministic. In cases where I have services performing such reverse lookups, it leads to odd domain names being printed irrelevant to that service.
It would be great if the blocky config provides better control of the PTR query responses, even if it means to define custom mappings controlling which results are returned.
Something along the lines of the following which only returns foo1 and foo4 in the response.
The text was updated successfully, but these errors were encountered: