mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 09:25:56 +03:00
[GH-ISSUE #245] Support regex or mid-level subdomain wildcard DNS #97
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#97
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @outdooracorn on GitHub (Jul 10, 2022).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/245
Originally assigned to: @mageddo on GitHub.
What is expected
Be able to provide a
HOSTNAMES=subdomain.*.domain.tldenv variable to a container on a network with a DPS container and have DPS matchsubdomain.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-testCurrently, 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)
@mageddo commented on GitHub (Mar 2, 2023):
Hey, I agree regex would be a better option. It would be a nice feature, not sure how many people need it, I'm working on better MAC OS and Windows compatibility right now but able to implement that on sequence, Do you still need it?
If you still need it and the feature is simple to implement as I'm thinking, the I may put it first priority.
@outdooracorn commented on GitHub (Mar 9, 2023):
Hey, yes this would still be a useful feature for a project I contribute to. Thanks for taking a look 🙂
@mageddo commented on GitHub (Mar 19, 2023):
EDIT
Release notes:
Hey @outdooracorn I'm proposing the support for regex on snapshot
3.14.1-snapshot, can you give it a try and give a feedback? See the examples below:Be aware of the cache https://github.com/mageddo/dns-proxy-server/issues/376Fixed on 3.14.1-snapshotRunning a container
Solving