[Mac] How to find the FQDN of a Mac OSX machine in 2019

Terminal

Open a terminal / command prompt in OSX, you can do this by typing in ‘terminal‘ in Spotlight or Finder. Then copy and paste the command below to retrieve the FQDN of your machine.

Command:

hostname

You should see output like this:

Where .local is for me will be your domain name. If you only wanted your hostname you can run:

hostname -s

And you’ll see the hostname:

Questions, comments? Leave them below! ๐Ÿ™‚

Leave a Reply

You are currently viewing [Mac] How to find the FQDN of a Mac OSX machine in 2019