|
From: Ricardo P. <rp...@ap...> - 2002-10-25 18:26:25
|
i hope someone can help me with this... i'm trying to create dns records so that someone can visit a url in the following format: http://www.BLAH.domain.com where "BLAH" is the special host name. manually, i would go and enter a "New Domain..." under the desired zone. in the above example i would navigate to the "domain.com" zone, right-click and click "New Domain..." the new domain i would create is "BLAH" which shows up as a folder under the "domain.com" zone. next, i click on the newly created "BLAH" folder and there, i would add a new host calling it "www" with its IP address etc. this would effectively give me the desired url. now my question is: how can i do the above programmatically. there is no "AddDomain" method in this component nor is there a "DomainAdd" command for the dnscmd.exe tool. how can i add a new domain to an existing zone programmatically??? or how can i achieve the same goal in another way??? ** using Win2K - Service Pack 2 ** any help would be highly appreciated. ricky |