-
Anyone know how to get the DNS entries? (ie: get the dns server(s) that the computer your app is running on, should use to resolving)
on my computer "HKEY_LOCAL_MACHINESystem\CurrentControlSet\Services\VxD\MSTCP" has an entry of "NameServer" and it as both of them, but that entry isnt documented anywhere.
-
If they're there, use them :). Although, why do you need access to the DNS server? The internal networking sorts out hostname->IP address lookups.
-
Im not doing hostname-IP or vice versa, im looking up MX records. Ive got all the code working for that just fine, i get all the correct records for a host, and all the preferences. I just need to know how to get the DNS's of the machine the app is on, so it can be transparent to the user of the application. Im going to wrap this all up in an OCX so I can use it in a few of my apps easily, or maybe a class.
-
I think there are authoritative DNS servers which let anybody access them. The mail exchange info is usually public, though. (In the interests of smooth-running of the Internet, information such as this is available to most sources).
Anyway, I didn't find that entry in my registry, probably because the individual IP settings are set in the Dial-up Networking settings. I think it's probably best to use a public server, rather than trying to extract the addresses from the user's computer.
-
you never know how long puclic servers are going to last, like ns.utah.edu is a perfect example, its a great puclic dns. But how long will it be there? I would rather do it the correct way.
-
I have gotten code working for windows 98 and 2000. but the code does not work on NT4 or 95. So now i need code for just nt4 and win95. If anyone wants the code for 98/2000 id be happy to share. I really need the nt4/95 code too....