RE: what's the equvilent call of OTInetQuery (OT) in sockets?
RE: what's the equvilent call of OTInetQuery (OT) in sockets?
- Subject: RE: what's the equvilent call of OTInetQuery (OT) in sockets?
- From: "Shengyong Li" <email@hidden>
- Date: Fri, 26 Jul 2002 17:04:45 -0700
- Thread-topic: what's the equvilent call of OTInetQuery (OT) in sockets?
The follow up question on this is that if there is a way to ask OS to
ignore the search domain specified in search domain of Network
Preferences when doing DNS query?
The reason about that is in my case, if there is no entry in search
domain, DHCP server will give "northamerica.xxx.microsoft.com" as
default search domain and my DNS query ("_ldap_tcp") will work.
OTInetQuery will send this "_ldap_tcp.northamerica.xxx.microsoft.com" to
DNS server.
However, in most of our computers, the search domain is set up as
"dns.microsoft.com" to access the whole company domain. My DNS query
won't work anymore, because it sends "_ldap_tcp.dns.microsoft.com" to
the DNS server. And dns.microsoft.com is not a server, it's a domain.
Thanks a lot.
-----Original Message-----
From: Quinn [
mailto:email@hidden]
Sent: Thursday, July 18, 2002 1:49 AM
To: email@hidden
Subject: Re: what's the equvilent call of OTInetQuery (OT) in sockets?
At 16:54 -0700 17/7/02, Shengyong Li wrote:
>
OTInetQuery allows to pass in DNS query class and type. Only similar
>
function in sockets is gerservbyname() which doesn't allow you pass in
>
class and type.=20
Try res_search from <resolv.h>. Use "man 3 resolver" for more details.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.