Web Hosting Talk







View Full Version : Simple DNS help


teppi2003
09-26-2003, 12:49 AM
I'm a newbie in webhosting, and i'm setting up a windows box now.

i just wonder why Simple DNS plus doesn't work quite right for me, that is i have to restart my server just to get the new DNS worked.

i'm stuck now, don't know what to do. all the new domain names i added work well but just as i've said above, they onlly work after i've restarted the server. :rolleyes: :rolleyes:

iburst
09-26-2003, 05:46 AM
Hi Teppi,

I know it's a silly question, but it's always the simple things.

Do you click the "Reload DNS Records" under the "Tools" menu after you have created the new domain?

Regards,

Matthew.

teppi2003
10-03-2003, 02:50 PM
i just selected an option to integrate simpleDNS into win system, (dont' remember exactly what option on its menu).

now SimpleDNS completely vanish. i try to double click on its icon but it doesn't show up :rolleyes: . It's not on task manager as well, so do you know how i can evoke it :confused:

Trogoldite
10-07-2003, 07:02 PM
Forgive me for asking, but if you are setting up a windows box, what is wrong with MS DNS?

-=Trog=-

json
10-14-2003, 03:36 PM
Agreed, I have MS DNS running on 2 servers, (knocking on wood) no problems what so ever... works like a charm with my web-based interface (phase one in creating my own CP).

regards,
J.

Ole Kristian
10-14-2003, 05:34 PM
Any pointers on how to create a web interface for ms dns? I have made som searches but have not found much info.

- Ole Kristian

json
10-15-2003, 01:58 AM
Ole, where are you from ??

It depends on whether you want to do it the right way, or you just want to fool around with the *.dns files.

To do it the right way, use WMI. Go to http://msdn.microsoft.com and search for dns and wmi.

regards,
J.

[EDIT:] http://www.webdns.dk to take a look at my web-interface.

Ole Kristian
10-15-2003, 04:02 AM
json, I am from Norway - we're almost neighbours.. :)
I'll have a look at WMI and see what I can come up with. I've also been thinking about offering a DDNS service for my customers, I see that you provide a webinterface for your service - have you looked at integration with ddns clients?

- Ole Kristian

json
10-15-2003, 04:57 AM
Hej fra Danmark!

MS DNS is DDNS, isn't it, but using AD ??

You mean making a service that will allow the customers with dynamic IPs to make changes automatically ?? I've made a small application that connects to my DNS "API" through a web-service to solve that problem.

regards,
J.

Ole Kristian
10-15-2003, 05:13 AM
Hei Danmark! :)

Yes, win2k dns supports dynamic updates from clients. However, I need authorization support without going through AD. It would be nice if I could make a service that accepts updates made by standard ddns clients, like the ones listed on dyndns.org and similar services. If this is difficult then I'll have a look at making my own client. Did it take much work?

- Ole Kristian

json
10-15-2003, 05:46 AM
I've not looked into standard ddns clients at all.!

My focus has been on making the standard DNS options available, and then making them available through a web-service.

The application was done using C#, and didn't take that long. Most of the time was used trying to find out how WMI works in dotNET.

regards,
J.

iburst
10-15-2003, 06:18 AM
Hi J,

I would be very interested in some pointers or example code of connecting to the MS DNS service via WMI and C# as I have been looking on and off for a while and can't find an examples.

I have looked at the MS site, but have not got very far. I have never done at work with WMI.

Any help would be gratefully received by me and I'm sure other members. :)

Thanks,

Matthew.

json
10-15-2003, 06:34 AM
I could give you a few hints! :)

To start off, you make a reference to the System.Management namespace and install the WMI provider for the DNS Server (get it from Microsoft's homepage).

Step one, to find all zones in the DNS:

ConnectionOptions conOptions = new ConnectionOptions();
conOptions.Authentication = AuthenticationLevel.Call;
conOptions.Impersonation = ImpersonationLevel.Impersonate;

// If you access a remote machine, you need to impersonate to have access rights!!
// conOptions.Username =
System.Configuration.ConfigurationSettings.AppSettings["DnsUserName"];
// conOptions.Password =
System.Configuration.ConfigurationSettings.AppSettings["DnsPassword"];

string sServerPath = "\\\\servername\\root\\microsoftdns";
ManagementScope oScope = new ManagementScope(sServerPath, conOptions);

// Explict connection to WMI namespace
oScope.Connect();

ManagementObjectSearcher oQuery = new ManagementObjectSearcher("SELECT *
FROM MicrosoftDNS_Zone");

// Use connection for this query
oQuery.Scope = oScope;

ManagementObjectCollection oQueryCollection = oQuery.Get();
foreach (ManagementObject oManObject in oQueryCollection) {
Console.Writeline(oManObject["ContainerName"].ToString());
}



..just to get you going.. you could also try doing a foreach on the oManObject.Properties (just for fun).

regards,
J.