Выполняю команду
Get-DnsServerResourceRecord -ComputerName dc.domain.local -ZoneName domain.local -Name test01
с заведомо несуществующей записью
test01. Закономерно получаю ошибку:
Get-DnsServerResourceRecord : Failed to get test01 record in domain.local zone on dc.domain.local server.
At line:1 char:1
+ Get-DnsServerResourceRecord -ComputerName dc.domain.local -ZoneName do...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (test01:root/Microsoft/...rResourceRecord) [Get-DnsServerResourceRecord], CimException
+ FullyQualifiedErrorId : WIN32 9714,Get-DnsServerResourceRecord
Пока все нормально.
Создаю A-запись test01 с каким-нибудь адресом. Затем её удаляю. Снова выполняю команду
Get-DnsServerResourceRecord -ComputerName dc.domain.local -ZoneName domain.local -Name test01
На этот раз ошибки нет. На выходе просто пустота. Вопрос, что происходит, собственно?
