add Mac OS X hostname page
authorKenyon Ralph <kenyon@kenyonralph.com>
Sat, 25 Jun 2011 09:33:07 +0000 (02:33 -0700)
committerKenyon Ralph <kenyon@kenyonralph.com>
Sat, 25 Jun 2011 09:33:07 +0000 (02:33 -0700)
Mac_OS_X_hostname.mdwn [new file with mode: 0644]

diff --git a/Mac_OS_X_hostname.mdwn b/Mac_OS_X_hostname.mdwn
new file mode 100644 (file)
index 0000000..078a0bc
--- /dev/null
@@ -0,0 +1,15 @@
+To prevent my hostname from being set by DHCP, I have this:
+
+    kenyon@devildog ~ % grep -i hostname /etc/hostconfig
+    HOSTNAME=devildog.kenyonralph.com
+
+In System Preferences, Sharing, Computer Name should be set to the FQDN. The .local name will just be the first part.
+
+`hostname` should return the FQDN (devildog.kenyonralph.com), and `hostname -s` should return just the first part (devildog).
+
+= References =
+* <http://excitedcuriosity.wordpress.com/2007/08/24/mac-os-x-hostname-determination/>
+* <http://forums.macosxhints.com/showthread.php?t=29712>
+* <http://www.macosxhints.com/article.php?story=20001224021638403>
+
+[[!tag "Mac OS X"]]