Add handlers for ANY, IPv4 and IPV6 record queries
This commit is contained in:
parent
9108b782d6
commit
1f6312f8fc
1 changed files with 10 additions and 0 deletions
|
|
@ -125,6 +125,16 @@ public class PowerDnsHandler : ConnectionHandler
|
|||
{
|
||||
switch (parameters.Qtype.ToUpperInvariant())
|
||||
{
|
||||
case "ANY":
|
||||
return ValueTask.FromResult<Reply>(new LookupReply([]));
|
||||
|
||||
case "A":
|
||||
return ValueTask.FromResult<Reply>(BoolReply.False);
|
||||
|
||||
case "AAAA":
|
||||
_logger.LogInformation("AAAA request: {Options}", parameters);
|
||||
return ValueTask.FromResult<Reply>(BoolReply.False);
|
||||
|
||||
default:
|
||||
_logger.LogWarning("Unhandled QType {QType}", parameters.Qtype);
|
||||
return ValueTask.FromResult<Reply>(BoolReply.False);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue