Newbie Network (DNS, Bonjour) Setup Questions

Okay, I know what DNS is and how it normally works. However, I don't know much about Bonjour, and I've never set up a server before. So, here goes...

How does Bonjour relate to DNS? I.E., does it eliminate the need for DNS for some services?
Must I have a static IP from my ISP for clients to access my server from the Internet?

Here's why I have these questions: I want to set up my server so I can screen share with it when I'm away from home. I've successfully done this with Back to My Mac; how can I do it without using Back to My Mac?

I also want some Mac, Linux, and Windows clients to be able to VPN into my server from the Internet. I can do this from within my local network, but not sure how to do it from outside.

From my past experience, I would expect that I would need to either have a static IP from my ISP, or that I would have to utilize a DNS service to "spoof" a static IP. Then, of course the latter would require a DNS entry for that IP as well.

It kind of looks to me like Wide Area Bonjour acts as a DNS service, but... I have no idea how it works or what I need to set up. I've followed the instructions on the videos by 318, but then, how do I configure my domain (I have a registered domain I'd like to use with this) to point to my server from the Internet???

Sorry for the barrage of questions! I think I'm making it harder than it is, but if I can understand the basic differences/requirements of Bonjour vs DNS or DNS services then I might get it...

Also, if you can point me to some basic descriptions regarding the differences, that would be great - I couldn't seem to find any that made sense to me.

Oh, one more thing: the file "Mac OS X Server Next Steps.pdf" indicates that I need to set up DNS and lists an IP address to have my domain point to. Is this a valid IP address, or is it just the address that was current on my router from my ISP at the time the file was generated? (I'm using an AEBSn, BTW, as my router.)

MacBook Pro 15", 2.16 GHz Intel Core Duo, Mac OS X (10.5.8), and the new Mac Mini Server w/ Snow Leopard 10.6.1

Posted on Oct 25, 2009 12:36 PM

Reply
12 replies

Oct 25, 2009 1:39 PM in response to lisfolks

For information on Bonjour see:

Bonjour;
Bonjour - Software;
Bonjour Networking.

The IP address referred to in the PDF is the one assigned by your ISP. This is a REAL IP address as opposed to the those used locally by your system's NAT. Most ISPs, however, do not provide static IPs unless you pay for it. The IPs you usually get are assigned via DHCP and may change frequently (or not at all.) So unless you purchase a static IP address you may need to use a service that provides software to monitor your real IP address and if it changes the software assures that any IP services are pointed to the valid IP address even if it changes. One such service is called DynDNS.

Oct 25, 2009 1:41 PM in response to lisfolks

You can and likely should ignore Bonjour here.

[Bonjour/mDNS/Zeroconf|http://developer.apple.com/networking/bonjour/index.html] is a way to have a simple DNS without having administration overhead. You can typically safely ignore Bonjour when configuring a Mac OS X Server box. You have to go out of your way to make it not work. If you're interested in details of Bonjour, follow that link mentioned earlier along to Stuart Cheshire's TechTalk on Google Video.

If you are planning to have your server(s) externally accessible, you want one or more public static IP addresses from your ISP, and you will want a firewall or equivalent and (if you don't have enough static IP addresses for your firewall/router (AEBS or better) and your server(s) you'll want to use NAT and a firewall/router that does port forwarding. You'll typically also want your ISP to serve DNS forward and reverse for your public static IP addresses, though you can (with NAT and a firewall/router) also choose to have your own private static IP addresses and your own local DNS for your private static LAN configuration.

To share your display (if you're not serving public information), you can choose to use a public non-static (dynamic) IP with a firewall/router, and port forwarding. Or with VPN capabilities. This allows you to use Server Admin and Screen Sharing and such to access your server, once authorized through your firewall/router. Your firewall/router can here operate in conjunction with DynDNS or another service; various mid-grade firewall/router devices can.

If you are serving information out, then you can also access inward via VPN or such, though using your public static IP address and your public DNS.

Key here is your firewall/router (AEBS has basic capabilities here), your public (static or dynamic) DNS and (static or dynamic) IP address, and your local network configuration. With what you want to do.

Bonjour does not particularly enter into this discussion. And for right now, you probably don't want to be running a public DNS server.

Oct 25, 2009 2:34 PM in response to Kappy

Thanks for the info, Kappy. I do have a dynamic IP address from my ISP, so you've confirmed for me that the IP in that doc is useless.

The other information you gave me is pretty much what I knew already about DNS. So, Wide Area Bonjour is not an Apple service similar to DynDNS, then? I was hoping...

Also, have you ever heard of this: http://www.globalhostname.com/
If so, is it legit, and is it related to Apple?

Oct 25, 2009 9:07 PM in response to MrHoffman

I think you need to look at the poster's link, then reconsider what I wrote. I did not say Boujour was the same as DynDNS. I linked to the DynDNS web site so don't you suppose I already know it's a company and what it does? I never stated that was what Bonjour provided. I'd appreciate a little reasoned thought before making such critical statements. It's a bit rude and inconsiderate.

Nov 8, 2009 8:28 PM in response to lisfolks

I'm the person behind http://globalhostname.com/. Bonjour (Zero Configuration Networking) can be a confusing topic as it's a label for multiple technologies, specifically:
* *IP address auto-configuration:* allocating a 169.x.x.x address when a DHCP client finds no server available
* mDNS: multicast DNS for providing a DNS service without a central DNS server (limited to the local network)
* DNS-SD: DNS Service Discovery is a method for discovering network services based on a system of DNS record lookups

The above technologies are what allows OS X to create and use network services on a network with little to no infrastructure (that is, dedicated servers). Wide-Area Bonjour is a set of extensions to traditional (unicast) DNS that allow for functionality similar to mDNS and DNS-SD but over the internet.

I'll try not to bore you with the detail but at the client-side it differs from traditional Dynamic DNS in that the Bonjour software (mDNSResponder) will if needed create port-mappings for you using NAT-PMP or uPNP to make services accessible. At the server-side it differs in that records expire so that if you are disconnected unexpectedly your services are not advertised perennially. As well, DNS queries are not one-shot but are long-lived so that if the answer to a given DNS query changes, the server will send another answer to let the client know what's changed.

These changes mean that as long as you have a public IP or are behind a NAT-PMP/uPNP enabled router you can for the most part share services over the internet just as easily as over a local network. Note though that some software, notably iTunes, will not register services over WAB.

Hope that clears up what WAB is — feel free to contact me (contact@globalhostname.com) if you have any questions.

Nov 11, 2009 7:02 PM in response to AndrewTJ

Thanks, AndrewTJ. So, now back to one of my original questions. I have a domain name I wish to use for access to my server. I have turned on DNS and Wide Area Bonjour (WAB) on my server. I do NOT have a static IP address. How do I advertise my services, via my domain name and WAB, across the Internet?

I do have an AEBS. In several places, it allows access via the WAN, which I understand to be associated with WAB. For example, under Printers, I can select to "Share printers over WAN", then "Share printers over the Internet using Bonjour". I understand this to function via WAB.

So, the ultimate question is: if I can share printers, etc, via WAB through my AEBS without a static IP, what do I need to share my server's services the same way?

Nov 12, 2009 1:26 AM in response to lisfolks

I'm not at all familiar with OS X server but a few things come to mind that might make it difficult to use your on-site server as a WAB server. The first hurdle to overcome is that if you want clients that are on the same network as the WAB server to register with the WAB server, they'll have to connect to it via the external IP. This may not be possible with your network configuration - can you do this on your network?

Nov 27, 2009 1:00 PM in response to AndrewTJ

Sorry to leave you all hanging for so long!

AndrewTJ, I'm not sure how to answer your question. I haven't had much time to research this recently, sadly, so I guess I'll go with the thought that it's not possible with my current setup for the time being. If I find out differently, and my question hasn't expired, I'll post what I find.

Thanks to everyone for your assistance!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Newbie Network (DNS, Bonjour) Setup Questions

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.