This script uses the System.Net.Dns calls for IPv4 resolution from an expanded AD Computername Query into a CSV file.
LICENSING: ADQuery_DNS_Host_Search - This script uses the System.Net.Dns calls for IPv4 resolution from an expanded AD Computername Query into a CSV file.
Copyright (C) 2013 Dennis Chow dchow[AT]xtecsystems.com.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
DISCLAIMER: The author takes no responsibility of how anyone else may use this software. It is intended as a proof of concept for educational purposes ONLY.
NOTES: None
REQUIREMENTS: Powershell v3.0 and higher and .NET framework v3.0 and higher; Read Enumeration Access to AD
Credits/References: http://blogs.technet.com/b/heyscriptingguy/archive/2009/02/26/how-do-i-query-and-retrieve-dns-information.aspx http://www.powershellmagazine.com/2012/09/18/pstip-resolve-ip-address-or-a-host-name-using-net-framework/ http://blog.forrestshields.com/post/2012/08/01/Resolving-Reverse-DNS-Lookups-in-PowerShell.aspx http://stackoverflow.com/questions/3008545/powershell-writing-errors-and-ouput-to-a-text-file-and-console