• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get the domain?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the domain?


  • Subject: Re: How to get the domain?
  • From: Quinn <email@hidden>
  • Date: Wed, 19 Mar 2003 10:39:02 +0000

At 11:15 -0800 14/3/03, Shengyong Li wrote:
>When I don't have anything in my "Search Domains" of Network
>Preferences, OT can figure out what domain the machine is. When doing
>the OTInetQuery on _LDAP_TCP, it will append that domain to the
>_LDAP_TCP.
>
>I guess OT gets that domain from DHCP server.
>
>Does OT have api to expose that domain?

Both traditional Mac OS and Mac OS X provide a mechanism to access
the DHCP packet that was used to configure the system. For
traditional Mac OS, there is an API called OTInetGetDHCPConfigInfo.
It's documented in DTS Q&A NW 61.

<http://developer.apple.com/qa/nw/nw61.html>

For Mac OS X, you can get this information from System Configuration
framework. See the header comments in "SCDynamicStoreCopyDHCPInfo.h".


/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Headers/SCDynamicStoreCopyDHCPInfo.h

The DNS configuration options are documented in RFC 1497.

<http://www.ietf.org/rfc/rfc1497.txt?number=1497>

Specifically, look at tags 6 and 15.

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.

  • Prev by Date: Re: Multiprocessor problem?
  • Next by Date: Re: Multiprocessor problem?
  • Previous by thread: How to get the domain?
  • Next by thread: URL Access Manager??
  • Index(es):
    • Date
    • Thread