Skip to content

Commit

Permalink
Comment out the block handling AAAA and ANY query types to disable IP…
Browse files Browse the repository at this point in the history
…v6 address processing.
  • Loading branch information
nsouto committed Oct 28, 2024
1 parent abb63e0 commit 7870bdc
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pdns/var/lib/powerdns/bin/default.pl
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@
}
}

if(($qtype eq "AAAA" || $qtype eq "ANY")) {
print STDERR "$$ Sent AAAA records\n";
if (exists $ENV{"PIPE_DEFAULT_IPV6"}) {
my @ipv6_addresses = split(',', $ENV{"PIPE_DEFAULT_IPV6"});
foreach my $ipv6 (@ipv6_addresses) {
print "DATA\t$bits\t$auth\t$qname\t$qclass\tAAAA\t3600\t-1\t$ipv6\n";
}
} else {
print "DATA\t$bits\t$auth\t$qname\t$qclass\tAAAA\t3600\t-1\t::1\n";
}
}
# if(($qtype eq "AAAA" || $qtype eq "ANY")) {
# print STDERR "$$ Sent AAAA records\n";
# if (exists $ENV{"PIPE_DEFAULT_IPV6"}) {
# my @ipv6_addresses = split(',', $ENV{"PIPE_DEFAULT_IPV6"});
# foreach my $ipv6 (@ipv6_addresses) {
# print "DATA\t$bits\t$auth\t$qname\t$qclass\tAAAA\t3600\t-1\t$ipv6\n";
# }
# } else {
# print "DATA\t$bits\t$auth\t$qname\t$qclass\tAAAA\t3600\t-1\t::1\n";
# }
# }

if(($qtype eq "MX" || $qtype eq "ANY")) {
print STDERR "$$ Sent MX records\n";
Expand Down

0 comments on commit 7870bdc

Please sign in to comment.