Skip to content

Test-DNSConfiguration is not optimal #58

Description

@Xento

There are some issues with the dns check.
It wont hurt when it detects a false positive but it distorts the reports.

$localIPs:

172.30.x.x
fe80::9578:xy:xy:x
172.29.x.x
fe80::e8a1:xy:xy:x
192.168.x.x
fe80::8c21:xy:xy:x

Resolve-DnsName -Name $fqdn -Server ($dnsServers | Select-Object -First 1) -Type A -DnsOnly | Where-Object -FilterScript {$_.IPAddress}

Name Type TTL Section IPAddress
Hostname.contoso.de A 1200 Answer 172.30.x.x
dns1.contoso.de A 86400 Additional 172.18.x.x
dns2.contoso.de A 3600 Additional 172.17.x.x

  1. IPv6 adresses in $localIPs but only results for IPv4, so the check will always fail
  2. I'm connected via VPN and have a vSwitch installed so this two addresses won't show up in the dns server

May be it would be best to only check the connection with the corrent dns suffix or make it configureable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions