Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Does not support single label domains #12

Open
aut0pil0t opened this issue Nov 4, 2021 · 0 comments
Open

Does not support single label domains #12

aut0pil0t opened this issue Nov 4, 2021 · 0 comments

Comments

@aut0pil0t
Copy link

DNS resolution check on Single Label Domains fail and the script does not continue. Adding the snippet below before the line [System.Net.Dns]::gethostentry($targetedADforestFQDN) | Out-Null and replacing targetedADforestFQDN with targettedDnsFqdn worked for me.

$targettedDnsFqdn = if ($targetedADforestFQDN -notmatch ".") {
$targetedADforestFQDN + "."
} else {
$targetedADforestFQDN
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant