Skip to content

Commit 11feadf

Browse files
committed
[dns] Add todos for more robust resolver
1 parent 0525112 commit 11feadf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Resolver/Resolver.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ public function extractAddress(Message $response, $type, $callback)
5151

5252
public function pickRandomAnswerOfType(Message $response, $type)
5353
{
54+
// TODO: filter by name to make sure domain matches
55+
// TODO: resolve CNAME aliases
56+
5457
$filteredAnswers = array_filter($response->answers, function ($answer) use ($type) {
5558
return $type === $answer->type;
5659
});

0 commit comments

Comments
 (0)