Results 1 to 6 of 6

Thread: DNS entries

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 1999
    Location
    Oak Park, IL, USA
    Posts
    43
    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.



  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 1999
    Location
    Oak Park, IL, USA
    Posts
    43
    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.

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  5. #5

    Thread Starter
    Member
    Join Date
    Jul 1999
    Location
    Oak Park, IL, USA
    Posts
    43
    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.

  6. #6

    Thread Starter
    Member
    Join Date
    Jul 1999
    Location
    Oak Park, IL, USA
    Posts
    43
    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
  •  



Click Here to Expand Forum to Full Width