The Bonjour zero-configuration networking architecture provides support for publishing and discovering TCP/IP-based services on a local area or wide area network. This document describes the Bonjour architecture at a high level and briefly describes what Bonjour APIs are available.
To setup your network printer with Bonjour on a Mac computer: Connect the printer to your NETGEAR router USB port. Click the System Preferences icon in the dock on your Mac desktop. Click Printers & Scanners. Bonjour makes it easy to discover, publish, and resolve network services with a sophisticated, easy-to-use programming interface that is accessible from Cocoa, Ruby, Python, and other languages. Bonjour for macOS and iOS Bonjour Network Discovery and Connectivity. How to enable Apple Mobile Device service and Bonjour serviceThis is how to enable or turn on Apple Mobile Device Service in iTunes to be able to sync and co.
Important: This document is not meant as a programming guide. It is intended to provide a high-level overview. For more detailed coverage at the API level (including code snippets), you should read DNS Service Discovery Programming Guide or NSNetServices and CFNetServices Programming Guide.
The Bonjour Browser allows you to graphically discover all service types in Mac OS X. To access any service, simply open that portion of the service tree, and double click on the instance name in bold. DNS Service Discovery for SSH.
At a Glance
Bonjour is Apple’s implementation of a suite of zero-configuration networking protocols. Bonjour is designed to make network configuration easier for users.
For example, Bonjour lets you connect a printer to your network without the need to assign it a specific IP address or manually enter that address into each computer. With zero-configuration networking, nearby computers can discover its existence and automatically determine the printer’s IP address. And if that address is a dynamically assigned address that changes, they can automatically discover the new address in the future.
Apps can also leverage Bonjour to automatically detect other instances of the app (or other services) on the network. For example, two users running an iOS photo sharing app could share photos over a Bluetooth personal area network without the need to manually configure IP addresses on either device.
Bonjour Provides Efficient Service Discovery
The Bonjour protocol supports advertising and discovering services in a manner that is efficient and robust using multicast DNS (mDNS) and, when needed, link-local addressing.
Bonjour Reserves the .local Domain for mDNS-Advertised Services
Bonjour host names and service names are constructed using a specific set of rules.
Relevant Chapters:Domain Naming Conventions
![Mac Mac](/uploads/1/2/6/2/126291138/948789001.png)
Bonjour Uses SRV, TXT, and PTR Records to Look Up Services
Bonjour uses service-specific records to advertise the existence of services.
PTR
records let you discover all of the services in a domain;SRV
records translate a service instance name, type, and domain into a hostname and port; A
and AAAA
records translate a host name into an IP address, and TXT
records provide additional information about a service.Bonjour Provides APIs at Multiple Layers in OS X and iOS
Enable Bonjour Mac
![Apple bonjour service windows 10 Apple bonjour service windows 10](/uploads/1/2/6/2/126291138/252909631.jpg)
In OS X and iOS, Bonjour provides the ability to advertise and discover services using Foundation, Core Foundation, and C APIs. In OS X, Bonjour also provides a Java API. On other platforms such as Windows and Linux, Bonjour provides a C API.
Relevant Chapters:Bonjour API Architecture
Prerequisites
Bonjour Service For Mac
This document assumes that you are already familiar with the networking concepts described in Networking Overview and Networking Concepts.
See Also
Bonjour Browser Mac
- DNS Service Discovery Programming Guide describes the Bonjour API appropriate for Darwin and Windows programmers and developers.
- NSNetServices and CFNetServices Programming Guide describes the Bonjour API appropriate for Cocoa programmers and C and C++ programmers on OS X and iOS.
Copyright © 2013 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2013-04-23
Bonjour, also known as zero-configuration networking, enables automatic discovery of devices and services on a local network using industry standard IP protocols. Bonjour makes it easy to discover, publish, and resolve network services with a sophisticated, easy-to-use programming interface that is accessible from Cocoa, Ruby, Python, and other languages.
Bonjour for macOS and iOS
Bonjour for Windows
Source Code and Specifications
Bonjour is not only based on open Internet standards, our implementation is also available as Open Source under the Apache 2.0 license. It is built into most modern printers and many other consumer products.Licensing and Trademarks
If you plan to use the Bonjour logo with your Bonjour-enabled products, be sure to review the latest guidelines and agreements.Related Resources