Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetServByName() and DNS SRV Records

Status
Not open for further replies.

HKafeman

Technical User
Mar 18, 2002
10
NL
Can someone please help me out - I am new to W2K and DNS?
We have been using the GetServByName() (in Visual C++) to obtain information from the "\%SystemRoot%\system32\drivers\etc\services" file (e.g. the Port number) on a Workstation with Windows NT v4.0.
We are now migrating to W2K and have a Server acting as Domain Controller with DNS. I have found the "Service Location" (SRV) entries in DNS, but the GetServByName() still appears to be looking in the local file. I tried using the DNS Logging on my Server, but the Workstation did not appear to be even trying the
lookup!
Is there some way to make the Workstation use the DNS Server for the look up. Or should I still be using the local "services" file?
Also, when adding SRV records in DNS the defaults all start with "_" (e.g. _tcp, _udp, _kerberos, etc.) Is there any significance to the leading "_" as compared to the
original "services" file entries?
 
Hey HKafeman:

I know this is a little bit off topic. Let say I am the Client, I want to read a file from the server side, and then the server will receive and reply. Do you need a separate program other than Visual C++? Is there any reference to this (ie. Books, websites?) Is it similiar to UNIX?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top