mirror of
https://github.com/yswery/PHP-DNS-SERVER.git
synced 2026-04-26 01:35:57 +03:00
[GH-ISSUE #48] Question regarding DNS question #18
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#18
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 @ivanstan on GitHub (May 22, 2018).
Original GitHub issue: https://github.com/yswery/PHP-DNS-SERVER/issues/48
@yswery please take a look at:
https://github.com/yswery/PHP-DNS-SERVER/blob/master/src/JsonResolver.php:61
I don't understand why are we sending array of questions to the resolver->getAnswer() instead of just one question? We are always catching the first array element and resolving that as a question. Is it perhaps possible that user can ask for multiple queries and get the answers within a single request?
@samuelwilliams commented on GitHub (Sep 8, 2018):
Had to Google this one. Apparently, even though RFC1035 does support multiple questions, it doesn't get implemented. https://stackoverflow.com/questions/4082081/requesting-a-and-aaaa-records-in-single-dns-query/4083071#4083071
@samuelwilliams commented on GitHub (Sep 11, 2018):
Having said that, it does depend on the resolver that you want to strap-in. If you want to answer multiple queries, do DNS clients support that functionality? When I do an
NSLOOKUPfor a domain, Windows by default will send two queries in two packets, the first is for an A record and the second is for an AAAA record., so I don't think there are many clients (if any) that have implemented RFC1035 word-for-word@samuelwilliams commented on GitHub (Sep 16, 2018):
This has been addressed in branch version-1