top of page

Skip to Main Content

A useful poweshell script to return a set of ip adresses and record type from the DNS server on the network, returned in a csv file.

There are 3 parts to this:

1. An input file

2. A powershell script

3. An output file

Input file

You will need a list of servers, DNS alias's or sub domains in a txt file, return separated.

e.g.

ser12365v.bsmt.uk

dynamics.bsmt.uk

Powershell script

1. **Location of source file**

2. **Location of output file**

Get-Content " **D:\\Working Documents\\ADAccountsStatus\\DNSList.txt**" \| Resolve-DNSName \| Select Name,IPAddress,Type \| export-csv " **D:\\Working Documents\\ADAccountsStatus\\DNSConfig.csv**"

Output file

You will get a csv file with the ip address and type or record.

[#Dynamics365](/content/blog/hashtags/Dynamics365/index.html) [#AD](/content/blog/hashtags/AD/index.html) [#powershell](/content/blog/hashtags/powershell/index.html) [#account](/content/blog/hashtags/account/index.html) [#user](/content/blog/hashtags/user/index.html) [#script](/content/blog/hashtags/script/index.html) [#projectserver](/content/blog/hashtags/projectserver/index.html) [#sharepoint](/content/blog/hashtags/sharepoint/index.html)

## Comments

* * *

Write a comment...Write a comment...

###### Featured Posts

[**Searching SQL - Finding that one record**](/content/single-post/2019/02/16/searching-sql-finding-that-one-record/index.html)

[**Using a chart to rollup values from a sub entity**](/content/single-post/2018/10/10/using-a-chart-to-rollup-values-from-a-sub-entity/index.html)

###### Recent Posts

[**Regarding Issues - Matching Email in Dynamics**](/content/single-post/regarding-issues-matching-email-in-dynamics/index.html)

[**Launch a Workflow from a button on a grid**](/content/single-post/launch-a-workflow-from-a-button-on-a-grid/index.html)

[**Useful Chrome plugins**](/content/single-post/useful-chrome-plugins/index.html)

[**Searching SQL - Finding that one record**](/content/single-post/2019/02/16/searching-sql-finding-that-one-record/index.html)

[**Importing issues, those odd ones in Dynamics 365**](/content/single-post/2019/02/16/importing-issues-those-odd-ones-in-dynamics-365/index.html)

[**Increasing the depth of calculations in Dynamics 365**](/content/single-post/2019/02/16/increasing-the-depth-of-calculations-in-dynamics-365/index.html)

[**Dynamics 365 Quick way to get more information about an Entity**](/content/single-post/2019/02/16/dynamics-365-quick-way-to-get-more-information-about-an-entity/index.html)

[**SSRS - Reporting Options**](/content/single-post/2019/02/16/ssrs-reporting-options/index.html)

[**Emails in workflows, advanced dynamic values**](/content/single-post/2019/02/16/emails-in-workflows-advanced-dynamic-values/index.html)

[**Do you have a client which doesn't always create the DNS record as you asked....**](/content/single-post/2019/02/16/do-you-have-a-client-which-doesnt-always-create-the-dns-record-as-you-asked/index.html)

###### Archive

###### Search By Tags

###### Follow Us

- 
- 
-

www.facebook.com

# www.facebook.com is blocked

**www.facebook.com** refused to connect.

ERR\_BLOCKED\_BY\_RESPONSE

**www.facebook.com** refused to connect.

Chat

Click To Reply

## Let's Chat!

loadbalancer.visitor-analytics.io

# loadbalancer.visitor-analytics.io is blocked

This page has been blocked by an extension

- Try disabling your extensions.

ERR\_BLOCKED\_BY\_CLIENT

Reload

This page has been blocked by an extension

bottom of page
