Computing.Net > Forums > Networking > Batch Scripts to update DNS records

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch Scripts to update DNS records

Reply to Message Icon

Name: godami
Date: May 7, 2009 at 14:33:26 Pacific
OS: Windows Server 2003
Subcategory: Servers
Comment:

Hi All,

Due to "unforeseen circumstance" , there are wrong SPF records added to list of domains in Windows 2003 server here :(. In stead of log in to the Windows 2003 DNS server to update the domain DNS records , domain by domain, I am thinking of a way to batch update the SPF records. Is that possible ?

As scratching, all I can think of for the time being is to list the dns zone file first as below:

===
Set objFSO = CreateObject("Scripting.FileSystemObject")
objStartFolder = "C:\WINDOWS\system32\dns"

Set objFolder = objFSO.GetFolder(objStartFolder)

Set colFiles = objFolder.Files
For Each objFile in colFiles
Wscript.Echo objFile.Name
Next
===

Any help and suggestion are welcome.

Thanks and Rgds,
Teh



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: Batch Scripts to update DNS records

How to create DNS record www.computing.net/answers/networking/how-to-create-dns-record/38447.html

FTP Batch Script www.computing.net/answers/networking/ftp-batch-script/37491.html

Batch File to Configure DNS Suffix www.computing.net/answers/networking/batch-file-to-configure-dns-suffix/25243.html