dns-proxy-server
dns-proxy-server copied to clipboard
Support regex or mid-level subdomain wildcard DNS
What is expected
Be able to provide a HOSTNAMES=subdomain.*.domain.tld env variable to a container on a network with a DPS container and have DPS match subdomain.some.domain.tld, subdomain.other.domain.tld, subdomain.mid-level.domain.tld, subdomain.subdomain.domain.tld, for example.
Alternatively, you could support regex. For example:
HOSTNAMES=subdomain\..*\.domain.tldto match questions that start withsubdomain.and end with.domain.tldHOSTNAMES=subdomain\.[a-z]+-test.tldto match questions that start withsubdomain.and where the domain starts with alpha chars and ends in-test
Currently, I only need the former option but the regex option would be more flexible (and maybe easier to implement?).
What is Happening
DPS isn't able to parse mid-level wildcards or regex. Logs report Not solver for the question {URL}.