Web Hosting Talk







View Full Version : Change name on Win2003 DNS?


Ole Kristian
12-08-2003, 09:33 AM
How can I change the name for the DNS server in Windows 2003 without changing the computername? I want to name the computer WEB1.company.com and the DNS service NS1.company.com, but it keeps creating WEB1.company.com (NS) entries when I create new zones.

- Ole Kristian

json
12-09-2003, 02:54 AM
The way I do it, is that I've found a script (vbs, using wmi) on Microsoft's web-site. This script can create/delete/change zones and records. Whenever I have to create a zone I've made a script that creates the zone, removes the wrong nameserver and adds the correct ones.

regards,
J.

Ole Kristian
12-09-2003, 05:20 PM
Thanks! If you have made a custom vbscript to go through all the zones and change the ns record, I would be very happy to get a copy! If not, could you give me an url to the ms script?

- Ole Kristian

json
12-10-2003, 03:15 AM
I can't seem to find the provider on MS's site, but I believe it's on the Windows 2000 Resource Kit CD (if you got that).

I don't have a script that does that, but try looking at this page, you can probably find something that shows you how:

http://search.microsoft.com/search/results.aspx?View=msdn&st=a&qu=wmi+dns&c=4&s=2

regards,
J.

Ole Kristian
12-10-2003, 05:18 AM
OK, thanks!

- Ole Kristian