Manage MS-DNS with VB?

  • Thread starter Thread starter Freedom
  • Start date Start date
F

Freedom

Hi, is it possible to update Microsoft DNS for W2K with a VB command?
Forgive me, I only know VB/VBScript.

I have a number of "spamtrap" email addresses which are hidden throughout
our corporate website, and are harvested by spammers. This way we can
identify the harvesters, and begin to block them.

We use several public RBL databases on our spam filter, but many of these
update too slowly, so we'd like to be able to create our own internal IP
Black-List of spammers who are sending email to our mail server.

I have written a simple SMTP service that successfully accepts connections
for these spamtraps, and collects the sending server's IP address to an
Access DB. Only question now is how to automatically add these as A, PTR,
and TXT records into MS DNS. Ideally, I'd like to bypass Access and just
add them directly to DNS.

Thanks in advance for any ideas or public source libraries/examples.
-- Freedom
 
Access DB. Only question now is how to automatically add these as A, PTR,
and TXT records into MS DNS. Ideally, I'd like to bypass Access and just
add them directly to DNS.

You may use dnscmd.exe in Windows 2003 Support Tools.
Use Shell("") function to run it in VB.
 
Eric,
Thanks for the quick reply!! Does this tool work for Win2K? Or is there a
similar tool?
-- Freedom


Eric Tsai said:
Access DB. Only question now is how to automatically add these as A, PTR,
and TXT records into MS DNS. Ideally, I'd like to bypass Access and just
add them directly to DNS.

You may use dnscmd.exe in Windows 2003 Support Tools.
Use Shell("") function to run it in VB.
 
Never mind! I found it in the W2K Support.CAB file on the CD. Many many
thanks!
-- Freedom


Eric,
Thanks for the quick reply!! Does this tool work for Win2K? Or is there a
similar tool?
-- Freedom


Eric Tsai said:
Access DB. Only question now is how to automatically add these as A, PTR,
and TXT records into MS DNS. Ideally, I'd like to bypass Access and just
add them directly to DNS.

You may use dnscmd.exe in Windows 2003 Support Tools.
Use Shell("") function to run it in VB.
 
Yes, Windows 2000 has its own version of DNSCMD. This will allow you to create static records in your DNS. The only problem is that you wish to do this for
PTR records. In order to add a new PTR record the reverse lookup zone must already exist. You will need some logic to first determine what zone this PTR
record will exist in. This is determined by the default Class for that IP address, A, B, or C. The, you will need to determine if that reverse lookup zone already
exists. Lastly, once you have the zone, you can the PTR record. DNSCMD can be use to achieve this, but it would be very cumbersome. It seems that adding
a PTR record to DNS as a black list for spammers isn't the best way to perform this function. I'd suggest a simple database or flat text file. This would
eliminate the need for the fancy logic or load required to store the record in DNS.

Thank you,
Mike Johnston
Microsoft Network Support


--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
 
Back
Top