DNS server netlogon.dns file invalid entried

Hi all
I am running server 2003 ent edition domain.  My netdiag was failing over dns test with "DNS test . . . . . . . . . . . . . : Failed
       [FATAL] File \config\netlogon.dns contains invalid DNS entries.       [FA
TAL] File \config\netlogon.dns contains invalid DNS entries.       [FATAL] File
\config\netlogon.dns contains invalid DNS entries.       [FATAL] File \config\ne
tlogon.dns contains invalid DNS entries.    [FATAL] No DNS servers have the DNS
records for this DC registered.

I looked at this file and found that it takes lots of values of our OLD DOmain name.  Can I remove those entries or simply rename this file? if not whats the easist way to fix this issue.
amanzoorNetwork infrastructure AdminAsked:
Who is Participating?
Chris DentConnect With a Mentor PowerShell DeveloperCommented:

Nope, that would be too easy. Did you try replacing the entries with entries for the new domain? Or does it have duplicates in there?

Chris DentPowerShell DeveloperCommented:

Used the Domain Rename tool?

You might find you can get away with Find / Replace in the netlogon.dns file to correct the entries.

amanzoorNetwork infrastructure AdminAuthor Commented:
I backed up the copy of this netlogon.dns and removed all entries of our old domain name.  did ipconfig /flushdns, restarted dns and then ipconfig /registerdns.  Looked at the file and the old domain name came back.  I wonder where this file is getting the entries from, is it adsiedit??
Help plz
Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

amanzoorNetwork infrastructure AdminAuthor Commented:
Running dcdiag /test:dns gave me:   Help how to fix it?

C:\Documents and Settings\Administrator.mydomain>dcdiag /test:dns

Domain Controller Diagnosis

Performing initial setup:
   Done gathering initial info.

Doing initial required tests

   Testing server: Oak\SERV01
      Starting test: Connectivity
         ......................... SERV01 passed test Connectivity

Doing primary tests

   Testing server: Oak\SERV01

DNS Tests are running and not hung. Please wait a few minutes...

   Running partition tests on : ForestDnsZones

   Running partition tests on : DomainDnsZones

   Running partition tests on : Schema

   Running partition tests on : Configuration

   Running partition tests on : domainname

   Running enterprise tests on : domain.com
      Starting test: DNS
         Test results for domain controllers:

            DC: serv01.domain.com
            Domain: domain.com

               TEST: Forwarders/Root hints (Forw)
                  Error: Root hints list has invalid root hint server: l.root-se
rvers.net. (

         Summary of test results for DNS servers used by the above domain contro

            DNS server: (l.root-servers.net.)
               1 test failure on this DNS server
               This is not a valid DNS server. PTR record query for the
7.in-addr.arpa. failed on the DNS server

         ......................... domain.com passed test DNS

amanzoorNetwork infrastructure AdminAuthor Commented:
I completly removed the entries of my old domain name.
amanzoorNetwork infrastructure AdminAuthor Commented:
As you said, I renamed the entries in netlogon.dns and now the DNS test in netdiag is passed and all NICS are properly registered.
Chris DentPowerShell DeveloperCommented:

Good stuff, glad it worked out :)

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.