Quantcast
Channel: DNS – PowerShell for Windows Admins
Browsing all 24 articles
Browse latest View live

PowerShell for DNS

I’ve blogged on a number of occasions on how to use the DNS WMI provider. Life just got easier with the release of DnsShell.  Its a PowerShell 2.0 module containing cmdlets for working with DNS....

View Article


PowerShell UG Meeting: DNS

When: Tuesday, Jun 29, 2010 7:30 PM (BST)Where: Live Meeting webcast *~*~*~*~*~*~*~*~*~* Meeting will cover DNS, DNS best practice analyser, DNS WMI provider and DNSShell cmdlets from codeplex Notes...

View Article


Image may be NSFW.
Clik here to view.

PowerShell UG – June meeting slides and recording

Thanks to everyone how joined the Live Meeting this evening – especially for the questions The slides and demo script are available for download from:...

View Article

Scripting Guy Blog

  The Scripting Guys are having a guest blogger week and first up is me blogging about managing DNS with PowerShell and WMI...

View Article

WMI and Network Adapters: 5

Does a machine have problems communicating on the network? Then one troubleshooting step is to check the DNS servers it is using 001 002 003 004 Get-WmiObject -Class Win32_NetworkAdapterConfiguration...

View Article


DNS cmdlets in PowerShell 3

There are a number of modules related to DNS ModuleType Name ———- —- Manifest DnsClient Manifest DnsConfig Binary DnsLookup Manifest DnsNrpt If we start with the DnsClient module we get these functions...

View Article

Get Global Catalog from DNS

One option for finding global catalog servers is often overlooked – DNS.  In an AD environment DNS stores the SRV records that advertise the services domain controllers can deliver $dnsserver = "dc02"...

View Article

Finding the primary name of a DNS alias record

A forum question asked how to find the primary name from an alias or CNAME record. Get-WmiObject -Namespace 'root\MicrosoftDNS' -Class MicrosoftDNS_CNAMEType ` -Filter "ContainerName = 'Manticore.org'"...

View Article


DnsClient module: #1 Get-DnsClientServerAddress

Started to investigate the DnsClient module.  First cmdlet to catch my eye was Get-DnsClientServerAddress. Always good to know a way to find the DNS server. PS> Get-DnsClientServerAddress...

View Article


DnsClient module: #2 DnsClient & Cache

The DnsClient module has a number of Get- cmdlets Get-DnsClient | Format-List InterfaceAlias, ConnectionSpecificSuffix, Register*, UseSuffix* An example of the output is InterfaceAlias...

View Article

Creating DNS PTR records

When I was writing the DNS chapter of PowerShell in Practice I couldn’t get the CreateInstanceFromPropertyData method on the MicrosoftDNS_PTRType class to work. Revisiting DNS for AD management in a...

View Article

Image may be NSFW.
Clik here to view.

DNS zone types

I was looking at the DNS zones for a project I’m working on. I needed to discover the conditional forwarder zone and hence the IP address of the DNS server to which the forwarding was occurring. The...

View Article

Have you been talking to strangers?

Want to know the machines to which your machine has been connecting?   Try looking in the client DNS cache:   Get-DnsClientCache   will show a wealth of useful data.  All in the form: £>...

View Article


DNS client settings

Following yesterdays post there are a couple of other cmdlets worth looking at if you want to dig into the DNS settings on your client machines. Get-DnsClient wil show you the DNS relsted settings for...

View Article

Parsing ipconfig /displaydns

  A recent question on the forum asked how you could get the contents on Windows 7 machines and earlier. On later machines – Windows 8 and above –  its easy because you can use Get-DnsClientCache from...

View Article


Parsing ipconfig /displaydns with regular expressions

In yesterdays post I used a series of split operations to parse the strings produced by ipconfig /displaydns   Regular expressions should give a more power full way to perform this task. Not being a...

View Article

Error handling for DNS lookups

Interesting question on the forum regarding the Resolve-DNSname cmdlet. This is part of the DNSclient module introduced with Windows 8. If the DNS record is found everything is good £>...

View Article


NSlookup in PowerShell

nslookup.exe is a command line executable that is used to discover the IP address of a remote machine from its FQDN. The results look something like this: PS> nslookup powershell.org DNS request...

View Article

Create a reverse lookup zone

I needed to create a DNS reverse lookup zone for my test environment. With Windows Server 2012 R2 I’ve got cmdlets available for managing DNS servers – the DnsServer module. You need to install the DNS...

View Article

Creating DNS records

Following on from my previous post about creating a reverse lookup zone in DNS here’s a function to create records in that zone. The function takes an IP address and name (of host) and uses...

View Article
Browsing all 24 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>