Skip to content

Commit

Permalink
Merge pull request #104 from johnduprey/dev
Browse files Browse the repository at this point in the history
DNS Helper
  • Loading branch information
KelvinTegelaar committed Jan 27, 2022
2 parents a51693d + 8f06bbc commit 0fe52d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DNSHelper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@ function Read-WhoisRecord {
if ($HasReferral) {
if ($Server -ne $ReferralServer) {
$LastResult = $Results
$Results = Get-Whois -Query $Query -Server $ReferralServer -Port $Port
$Results = Read-WhoisRecord -Query $Query -Server $ReferralServer -Port $Port
if ($Results._Raw -Match '(No match|Not Found)' -and $TopLevelReferrers -notcontains $Server) {
$Results = $LastResult
}
Expand Down
6 changes: 6 additions & 0 deletions ExecDnsHelper/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ try {
'TestDNSSEC' {
$Body = Test-DNSSEC -Domain $Request.Query.Domain
}
'ReadWhoisRecord' {
$Body = Read-WhoisRecord -Query $Request.Query.Domain
}
'ReadNSRecord' {
$Body = Read-NSRecord -Domain $Request.Query.Domain
}
}
}
else {
Expand Down

0 comments on commit 0fe52d7

Please sign in to comment.