Skip to main content

Posts

Showing posts with the label DNS

PowerShell - To Perform DNS Resolution Check-Up

So this is my second PowerShell script created by me. The first one was so simple and I use it in my XenDesktop environment. This script on the other hand, is aprt of my initiative in performing Active Directory clean-up in my environment.  The task of the script is simple - check the IP address of a machine name, then check the hostname of that IP address.  - If the machine name (A host record) and the hostname (PTR record) is similar, we are good.  - If the machine name (A host record) and the hostname (PTR record) is different, error prompted - If the machine name (A host record) is available but the hostname (no PTR record) is not, error prompted - If the machine is not avaiable (no A host record), error prompted. I use  $PSScriptRoot so the location of the script is dynamic, it does not necessarily need to be put at a specific location. This is only part 1. I wish to add more features so it could be better next time. ###################################

Add a Member Server To Domain Failed Due to DNS Configuration

This would be my first post regarding Server 2012 (pretty cool, huh?) So this is the case. I just created a lab environment for my XenDesktop 7. Because of this new classy environment, so I decided to use Server 2012. I have a server act as a DHCP, DNS and DC (have to, not enough resources), and another server as member server. So when I wanted to add this member server to my domain, I received error as in Issue section. Issues : Facing with this error while adding member server to domain. The following error occurred attempting to join the domain <domainName> : The specified domain either does not exist or could not be contacted. Troubleshooting  It turned out that my DNS server is not properly configured. It is not configured to any server, thus resulting member server cannot contact to any DNS server. Resolution : Configure the correct DNS server. Depending on your environment, you may want to set it manually at servers, or at Scope