DNS - Script DNS Primary Suffix

  • Thread starter Thread starter CB
  • Start date Start date
C

CB

Hello,
One of our techs didn't add a DNS primary suffix on our XP/2K clients
(around 20 or so).

I've heard there may be a script to add/change this.

Any one seen it?

Thanks in advance,
CB
 
In
CB said:
Hello,
One of our techs didn't add a DNS primary suffix on our XP/2K clients
(around 20 or so).

I've heard there may be a script to add/change this.

Any one seen it?

Thanks in advance,
CB

I think the script you are referring to is for setting the Primary DNS
suffix on a Domain controller. For members you can export the value to a
registry file, save it on a floppy and double click the file to set the
suffix.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

Edit out everything but the Domain and NVDomain
 
In
Kevin D. Goodknecht said:
I think the script you are referring to is for setting the Primary DNS
suffix on a Domain controller. For members you can export the value
to a registry file, save it on a floppy and double click the file to
set the suffix.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

Edit out everything but the Domain and NVDomain


--
Best regards,
Kevin D4 Dad Goodknecht Sr. [MVP]
Hope This Helps
============================


But wait a minute... if the machines are joined to the domain, and the
default checkbox is set to change membership with domain change, then the
admins wouldnt have needed to do this once the machines are joined and the
Primary DNS Suffix will automatically populate based on the domain it's
joined to.

Wondering if the domain is a single label name or if the machines are
actually even joined to the domain at all?


--
Regards,
Ace

Please direct all replies to the newsgroup so all can benefit.
This posting is provided "AS-IS" with no warranties and confers no
rights.

Ace Fekay, MCSE 2000, MCSE+I, MCSA, MCT, MVP
Microsoft Windows MVP - Active Directory

HAM AND EGGS: A day's work for a chicken; A lifetime commitment for a
pig. --
=================================
 
Hi CB,

Thanks for your posting here.

You can try Microsoft Windows Script Host:

1. Create a file with the .vbs extension (for example, C:\add.vbs).

2. Add the following three lines to the file:

SET WSHShell = CreateObject("WScript.Shell")
WSHShell.RegWrite
"HKLM\System\CurrentControlSet\Services\TCPIP\Parameters\domain",
"domain.com", "REG_SZ"
WSHShell.RegWrite
"HKLM\System\CurrentControlSet\Services\TCPIP\Parameters\NV domain",
"domain.com", "REG_SZ"

(the second line and third line start with "WSHShell.RegWrite" and ends
with "REG_SZ")

3. Double-click the file to run or at a command prompt, type "C:\add.vbs"
(without the quotation marks)

As for DC, please refer to the following document.

257623 Domain Controller's Domain Name System Suffix Does Not Match Domain
Name
http://support.microsoft.com/?id=257623

Wish it helps.

Regards,
Bob Qin
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Thanks for all the suggestions!

In the end, our Desktop Tech's went to the 25 desktops and did it
manually. I had found/modified another script that made those registry
changes but I was having difficulty getting it going.

-CB
 
Hi CB,

Thanks for your update. If you have any further questions or concerns,
please feel free to post here. It is our pleasure to be of assistance.

Have a nice day!

Regards,
Bob Qin
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
if your machiens were joined to a domain, wouldnt a group policy push be
enough?

WMI is another option.
 
Thanks for you Krish's suggestion.

Yes, we can also use the group policy to specify a primary DNS suffix for a
group of computers. The setting is located at:

Computer configuration\Administrative Templates\System\DNS Client

Have a nice day!

Regards,
Bob Qin
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top