Hostname configuration for remote access

Networkssh

I have a new Mac Pro that's running Mavericks and I would like to configure it for remote access (ssh and sftp). The IT staff says I need to provide them with a fully qualified domain name before we can proceed. So what I need to do is set hostname.subdomain.domain.com. I've seen some posts about setting hostnames, but what about the rest of this?

Best Answer

Open Terminal and type or copy & paste this bash one-liner:

 echo; MyExtIPAddrIs=`curl -s echoip.org`; host -4 $MyExtIPAddrIs|cut -c 22-100; hostname; echo

Your fully qualified domain name will appear after the words "domain name pointer" in the line that is output, and continues and includes, after the period at the far right, your mac's internal network address appearing on the next line.