Configuring and troubleshooting DNS

09/30/2008

The Domain Name System (DNS) is an Internet standard for mapping Internet computer names (called “host names”) to numerical Internet Protocol addresses (called “IP addresses”). The DNS server contains a database of all of the host names for a domain.

 

 

Active Directory uses DNS to locate the domain controllers in a domain.

 

 

Note: Incorrect configuration of DNS is the #1 cause of problems with Active Directory. If DNS is configured incorrectly, domain controllers will not be able to locate each other for replication. Client computers will not find their domain controller(s), and users will not be able to log on.

 

 

UMove moves all DNS settings

 

Because DNS is critical for Active Directory, UMove is careful to move all DNS settings from the source computer to the destination computer. This includes the following:

 

 

  • Client DNS settings

     

  • Server DNS settings

     

  • Server DNS zone data files (Windowssystem32dns*)

     

  • Hosts and lmhosts text files (Windowssystem32driversetc*)

     

By moving all DNS settings, UMove prevents potential DNS errors due to differences in the DNS settings between the old and new computers.

 

 

Types of moves

 

When doing an emergency move or a planned move, the DNS settings will carry over transparently to the new computer. The only issue is re-registering dynamic DNS records written more than 7 days ago (see below).

 

 

When doing a test move, you need to consider additional issues (see below).

 

 

Troubleshooting DNS Problems

 

Use the console commands ping and nslookup to test connectivity with DNS. To avoid confusion due to negative caching by the DNS Client service, you may want to temporarily turn that service off while troubleshooting DNS. (Exception: If your server depends on DHCP you must leave the DNS Client service turned on.)

 

 

netlogon.dns

 

To assist you in troubleshooting DNS problems, upon each boot the domain controller will write a copy of its desired DNS records to a text file. The text file is named C:WindowsSystem32confignetlogon.dns. You can inspect this file (use NOTEPAD.EXE) in order to verify that your DNS server contains the correct A, PTR, and SRV records for the domain controller.

 

 

If your DNS server does not contain the records listed in netlogon.dns, you need to find the cause and correct it. If you are using dynamic DNS updates, you need to investigate why the domain controller failed to update the dynamic records (for example, the NIC has the wrong DNS client IP address). If you are using static DNS, you may need to manually recreate the necessary A, PTR, and SRV records.

 

 

The DNSLint Utility (this tool be worth will be explained in the next post)

The DNSLint is a great tool that can be used to diagnose DNS errors. On the moved domain controller type the command
dnslint /ad 127.0.0.1 /s localhost /v

 

 

Immediate re-registration of DNS records

 

If you see errors in the Event Log due to problems with locating a domain controller in DNS that has failed to dynamically register its DNS address, and you do not want to wait 5-10 minutes for automatic re-registration, you can force the domain controller to immediately register its IP address with the DNS server. Type the following console commands:

 

 

ipconfig /flushdns
ipconfig /registerdns
nltest /dsregdns

 

 

The ipconfig command will tell the computer to send ("register") its DNS A and PTR records with the DNS server. The nltest command will register the SRV records. The SRV records are used to locate domain controllers.

 

 

ipconfig is a built-in utility. nltest is part of the Windows Support Tools, located on the Windows Server CD.

 

 


Restoring DNS from a backup more than 7 days old

 

Many DNS zones use dynamic updates. When a computer boots that is a member of a dynamic DNS zone it will write its IP address and host name to the DNS server. (This is called “registering with DNS”.) The computer will send an update when it boots, and again periodically - typically once per day. Domain controllers will send dynamic updates to the DNS server just like other computers.

 

 

The DNS server will erase stale records if they are not updated after (typically) 7 days.

 

 

If you restore the DNS server database from a backup that is more than 7 days old, and if the DNS server on that computer has dynamic DNS zones, upon booting the DNS server will immediately erase all the dynamic records. This is because the DNS server checks the timestamp of each dynamic DNS record when it boots (and periodically thereafter). If the timestamp is older than the aging interval (default 7 days), the DNS record is erased.

 

 

During the initial boot with a newly loaded Active Directory you may see some spurious errors in the Event Log regarding the inability to locate a domain controller or the Global Catalog. These error messages are temporary and can be ignored. Each domain controller will attempt to dynamically re-register its IP address every 5-10 minutes until it succeeds.

 

 

The first registration attempt may fail because the DNS server has not yet fetched the DNS zone records from AD. This can happen if you use integrated DNS zones. (see below). This is normal, and the next registration attempt should succeed.

 

 


Error: The DNS Service cannot load integrated DNS Zones from AD

 

By default each DNS zone database is stored in C:WindowsSystem32DNS* as a simple text file. When creating a DNS zone you have the option to instead store the DNS zone inside of Active Directory as an AD object. A DNS zone stored in AD is called an “integrated” DNS zone.

 

 

If you use integrated DNS zones, and you are using dynamic DNS registration, there is a circular dependency between DNS and AD that can cause a delay of up to 30 minutes during the initial boot. The reason for the delay is that DNS needs to contact AD to fetch its zone records, but AD will refuse to accept requests until it can register its IP address with DNS. But DNS will refuse to honor AD's registration request because DNS has not loaded the zone records yet from AD. The result is a circular deadlock. The DNS service will report (via the DNS Event Log) that it is unable to load the integrated DNS zones from Active Directory.

 

 

Within 30 minutes AD will recognize the problem and start without DNS, breaking the deadlock. If you do not want to wait for 30 minutes, you can manually stop and restart the DNS service. This will break the deadlock. (The deadlock will not happen on subsequent boots. This is because DNS will cache the AD-integrated zone records and use them on subsequent boots.)

 

 

If you stop and restart the DNS service, also stop and restart the DNS Client service. The DNS Client service caches results from the DNS service. This includes “negative” results where an address is not found. To avoid confusion during troubleshooting of DNS, when you restart the DNS service you should restart the DNS Client service also. This will prevent “negative” caching from confusing your troubleshooting.

 

 

For the best results when troubleshooting DNS you should turn off the DNS Client service. You can leave the DNS Client service turned off as long as your server does not use client DHCP. (Client DHCP depends on Client DNS.)

 

 


Test move: Not moving all DNS servers

 

If you are not moving all the DNS servers to your test lab, you must reconfigure DNS so that the test domain controller(s) can continue to locate each other and so that test client computers can locate the domain controllers.

 

 

Test move: Creating a dummy root DNS zone

 

Your test lab will be isolated from the rest of the network. This means that DNS queries for external zones outside of the test lab will time out. Some Microsoft components will attempt to access external DNS zones, such as microsoft.com. Because the DNS server cannot forward these requests, they will time out, causing irritating delays.

 

 

To avoid delays due to timeouts for external DNS zones, you can create a dummy root DNS zone on the DNS server in your test lab. This will cause the DNS server to immediately fail external lookup requests instead of trying to forward them (and timing out).

 

 

To create a dummy root DNS zone use the following procedure:

 

 

  1. Start the DNS MMC snap-in: Click on Administrative Tools -> DNS.

     

  2. Right-click Forward lookup zones, then click New Zone.

     

  3. When the New Zone Wizard starts, click Next.

     

  4. Click Primary, clear the checkbox Store the zone in Active Directory so that it is not checked, and then click Next.

     

  5. In the Zone Name box, type a single dot (.), and then click Next.

     

  6. Click Create a new file with this file name and type root.dns (default), and click Next.

     

  7. Click Do not allow dynamic updates (default) and click Next. Then click Finish.

     

Do this procedure on the “topmost” DNS server in your test lab.

 

 


For more information

 

For more information on how to configure DNS please refer to these Microsoft Knowledge Base articles:

 

 

  • Setting Up the Domain Name System for Active Directory (Q237675)

     

  • Frequently Asked Questions About Windows 2000 and Windows Server 2003 DNS (Q291382)

     

  • How to Verify That SRV DNS Records Have Been Created for a Domain Controller (Q816587)

     

  • How to Create a New Zone on a DNS Server in Windows Server 2003 (Q323445)

     

  • How to Configure DNS Dynamic Update in Windows Server 2003 (Q816592)

     

  • Best Practices for DNS Client Settings in Windows 2000 Server and Windows Server 2003 (Q825036)

     

  • How to Replace the Current Primary DNS Server with a new Primary DNS Server in Windows Server 2003 (Q323383)

     

 

 

Thank you from the source

 

 

Utools.com

 

 

Network Monitor 3.2 is here!

09/26/2008


Hi all now it’s possible to download new version of Microsoft Network Monitor (downloadable  here).

 

Microsoft developer team have done hard work to make available in this version the feature that community have request, also have correct many bugs that was present in the precedent version

 

Following there are main news:

 

  • Process tracking: now it’s possible to identify applications that send data in the network.  Inside Network Monitor it can view tree-view, the list of processes that generate network traffic.

     

  • Rewriting and revision of the engine of catch of traffic that can reduce significantly the frame discarded from Network Monitor.

     

  • For ease of reading and interpretation of the conversation is possible now isolate the frame of a single conversation: Just select a frame, please click the right mouse button and select the conversation.

  • increasing the number of parser (fully configurable) present in the product: are now present parser for more than 300 different protocols.

     

  • best management of parser: given the large number of parser present, only a number of these is loaded for default. It is possible to load the entire set of parser with a simple click on a menu item.

     

 

I believe it is a new version very interesting that it is worth trying.

 

 

You can find more information on the blog of the development team of the product

 

http://blogs.technet.com/netmon

 

 

Cheers Alex

Administrative Templates (ADMX) for Windows Server 2008

09/25/2008

Introduction

 

GPO allows administrators to manage registry-based policy settings, below overview about Windows Server 2008 works with Administrative template.

Administrative template files in Windows Server 2008 and Windows Vista are divided into ADMX (language-neutral) and ADML (language-specific) files. ADML files are XML-based ADM language files that are stored in a language-specific folder. By default, the %Systemroot%PolicyDefinitions folder on a local computer stores all ADMX files, and ADML files for all languages that are enabled on the computer.

 

Download from source…

 

Additional Information

 

There is a post on my Blog that introduce about convert ADM files (Windows 2000 and 2003 Template) to the ADMX format and take advantage of the additional capabilities that it provides for Windows Vista e Windows Server 2008

 

http://blog.caloni.net/tag/migrator

 

Delete automatically User profile locallly and remotelly

09/25/2008

Hi all,

 Delprof.exe is a tool, downloadable from Microsoft site (see the link below)that permit to delete user profile locally and remotelly on your workstations.

 

 

http://www.microsoft.com/DownLoads/details.aspx?familyid=901A9B95-6063-4462-8150-360394E98E1E&displaylang=en

PS: This tool needs to be use with administrative credential

 

 

When you execute Delprof.MSI it create a directory “c:programmiWindows Resource KitTools” where you can find the executable file “delprof.exe” (see picture below)

 

 

 

 

 

 

 

 

There is a Microsoft link that explain how to use this tool, locally and remotely  

 

 

http://support.microsoft.com/kb/315411

I’ve try to use  /i /q parameters for execute the tool in silent mode, avoid a block i case of error (see picture below)

 

 

 

 

 

You can use this tool for delete unused profile for a determined time /d:xx  where you can specify how many days before delete profiles, in the example below Delprof delete profile unused from 30 days

 

 

 

 

 

If you want to use this tool remotelly you need to use the following parameters:

 delprof /q /i /p /c:\computer name

Microsoft Application Virtualization 4.5 Release to Manufacturing

09/08/2008

Hi all,

 

Finally Microsoft has released Application Virtualization (App-V) version 4.5 to manufacturing. Formerly known as SoftGrid, App-V 4.5.

 

You can find more information on Microsoft web page or Microsoft blog…

 

APP-V (Softgrid) Official web page

 

Or official Microsoft Blog at

 

Or APP-V Blog

 

Cheers

 

Alex

 

Recipe Office 2007 Professionals

09/07/2008

Introduction

 

MS Office is a great objective when we talking about virtualization, because this product cannot coexist with other version of MS Office, for example Office 2003 or Office XP, for this coexistence is critical.

 

With Microsoft APP-V this is possible because coexistence of different versions, when we create a virtualization version of Office this will be perfectly isolated from Operating System and other application that are locally installed.

 

Example:

 

A video example of I described above is on my post blog at link below:

 

http://blog.caloni.net/post/478060/With+Microsoft+Softrgrid+is+possible+to+launch+different+version+of+Office+on+the+same+Machine!

 

Reference:

 

But when we need to virtualizes MS office product, it’s better to have a recipe for better operate in this way, about this I suggest, for Office 2007 Professionals, the recipe that are available on APP-v Blog at link below…. Have a look

 

This article explains how to sequence Office 2007 Professionals in 30 easy steps.

 

http://blogs.technet.com/softgrid/archive/2008/07/30/softgrid-sequencing-office-professional-2007-in-30-easy-steps.aspx

 

Recipe,Office,2007

Microsoft Windows Server Virtualization Validation Program

09/03/2008

VMware and other virtualization vendor finally appears in the list of Microsoft  Windows Server Virtualization Validation Program; in practice the users have the guarantee of support from Microsoft for a rich list of applications. We will see in the near future….

 

 

At the link below you can find third party of vendor that Microsoft will support

 

 

http://windowsservercatalog.com/svvp.aspx?svvppage=svvp.htm