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!

Services file, 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?
 
I had a similar problem with our DHCP server.
My machines would not look at any settings that were not local.

What I ended up doing was adding the domain
in the TCP/IP Properties

Just in case:

Advance button - DNS tab - Select append these DNS suffixes.

My DHCP server should have been able to provide the WINS and DNS names to my machine but it would not, for some reason that I still have not figured out. It would only give them an IP address.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top