dns-proxy-server icon indicating copy to clipboard operation
dns-proxy-server copied to clipboard

Support regex or mid-level subdomain wildcard DNS

Open outdooracorn opened this issue 3 years ago • 0 comments

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.tld to match questions that start with subdomain. and end with .domain.tld
  • HOSTNAMES=subdomain\.[a-z]+-test.tld to match questions that start with subdomain. 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}.

Changes (Optional)

outdooracorn avatar Jul 10 '22 12:07 outdooracorn