You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
$ dig -x 10.1.1.8
...
...
;; ANSWER SECTION:
8.1.1.10.in-addr.arpa. 3600 IN PTR foo3.mydomain.local.
8.1.1.10.in-addr.arpa. 3600 IN PTR foo1.mydomain.local.
8.1.1.10.in-addr.arpa. 3600 IN PTR foo4.mydomain.local.
8.1.1.10.in-addr.arpa. 3600 IN PTR foo2.mydomain.local.
...
...
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.
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.
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.
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.
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: