Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: How to use ssh using 'Back to My Mac'' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: How to use ssh using 'Back to My Mac'
Authored by: mjb on Apr 29, '08 03:49:59PM
Just a note that the usage of a trailing period (.) is not required, but it can indeed speed up connection times if you're behind a very slow connection or have an unreliable DNS source.

What it does is tell the DNS resolver software on your computer that you do not want to search the DNS domain you're in for the hostname you've provided (more correctly, you're giving an explicit DNS name). If you don't use a period, the resolver will try all of the domains associated with your current network connection first, before asking the wider internet (you can find these domains in /etc/resolv.conf on your Mac - this file is updated automatically each time you connect to a network, usually by DHCP).

This is basically the reason why using a 'short name' on your own network will succeed (ignoring Bonjour/mDNS in this example, that's different), as the resolver will append your domain onto the short name and try that. For example, if your domain is 'some.domain.com', and you enter 'http://www/' into Safari, the resolver will try www.some.domain.com to try to find the IP address to talk to.

In the hint example, it means that the resolver will only try 'hostname.username.members.mac.com', and not 'hostname.username.members.mac.com.some.domain.com' first. (So, believe it or not, your resolver will try 'www.macosxhints.com.some.domain.com' first when you visit this site.. You can try 'www.macosxhints.com.' - with the trailing period - and you will see that that works too)

Sorry for all those that already know this.. but if someone else learns something that's cool :)

</ramble>

[ Reply to This | # ]
10.5: How to use ssh using 'Back to My Mac'
Authored by: pub3abn on May 07, '08 09:49:22AM

That was a cool little tangent hint.



[ Reply to This | # ]