|
-
Aug 28th, 2000, 01:52 PM
#1
Thread Starter
Member
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.
-
Aug 28th, 2000, 02:20 PM
#2
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 28th, 2000, 02:26 PM
#3
Thread Starter
Member
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.
-
Aug 28th, 2000, 02:35 PM
#4
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 28th, 2000, 02:39 PM
#5
Thread Starter
Member
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.
-
Aug 29th, 2000, 03:21 PM
#6
Thread Starter
Member
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....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|