mirror of
https://github.com/yswery/PHP-DNS-SERVER.git
synced 2026-04-26 01:35:57 +03:00
[GH-ISSUE #37] Is it possible to handle wildcard DNS? #15
Labels
No labels
bug
enhancement
enhancement
hacktoberfest
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PHP-DNS-SERVER#15
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 @exactsameproblem on GitHub (Oct 24, 2017).
Original GitHub issue: https://github.com/yswery/PHP-DNS-SERVER/issues/37
Hello there,
Awesome project. I'm looking for a fast and easy way to implement a DNS server in PHP, and I would like to handle dynamic wildcard DNS.
I would like to get outputs the following way:
name.subdomain.example.com -> get "name", return xx.xx.xx.xx
name2.subdomain.example.com -> get "name2", return xx.xx.xx.xx
Is it possible to achieve?
Thanks.
@Thiritin commented on GitHub (Jul 24, 2018):
(I think Wildcards are generally not Supported at the moment?)
@ivanstan commented on GitHub (Aug 1, 2018):
The "official" way of doing this would be AXFR method which we don't support at the moment. Its commonly used for zone transfers. Here's an example of dig queries:
Or wild card domain lookup like this:
We could implement it but this also brings security issues to discussion, we would have to consider to allow/disallow wildcard lookups per domains, or restrict them by client ip.
@Thiritin commented on GitHub (Aug 1, 2018):
@ivanstan thanks for the response. Its currently the only function that prevents this software to be used in production. As Wildcards are required for many purposes.
What Security Issues do come with it?
@ivanstan commented on GitHub (Aug 1, 2018):
Hey, I played a little and managed to make a server return wildcard response on my fork https://github.com/ivanstan/PHP-DNS-SERVER/tree/master, but am not happy with the code and it requires a lot of testing and refactor. So keep in mind that this is just proof of concept. So starting server on this branch like this:
and running query:
will produce following answer:
I hope that's what are you looking for.
@yswery haven't heard months from you, maybe you could give me push permissions again if you don't have time to deal with this, I would like to setup those tagged releases and merge some new features into dev.
@samuelwilliams commented on GitHub (Oct 6, 2018):
I have added this to the latest build of branch version-1.
b594ec006b