{"id":31,"date":"2005-11-29T15:58:07","date_gmt":"2005-11-29T20:58:07","guid":{"rendered":"http:\/\/blog.elharo.com\/blog\/?p=31"},"modified":"2005-11-29T15:58:19","modified_gmt":"2005-11-29T20:58:19","slug":"setting-a-permanent-host-name-in-mac-os-x","status":"publish","type":"post","link":"https:\/\/www.elharo.com\/blog\/mac\/2005\/11\/29\/setting-a-permanent-host-name-in-mac-os-x\/","title":{"rendered":"Setting a permanent host name in Mac OS X"},"content":{"rendered":"<p>Are you tired of host names like eliza-7.local in Mac OS X? Are you tied of seeing pointless dialogs like &#8220;eliza-7.local is already in use. Switching to eliza-8.local&#8221;? Do you want a stable hostname you put in scripts, MYSQL user tables, and so forth? If so add the following line to <code>\/etc\/hostconfig<\/code>:<\/p>\n<p><code>HOSTNAME=eliza.elharo.com<\/code><\/p>\n<p>Of course you&#8217;ll change <em>eliza.elharo.com<\/em> to the fully qualified domain name of your machine. You&#8217;ll need to use <code>sudo<\/code> to edit the file. On versions of Mac OS X prior to Tiger (10.3 and earlier) you may need to delete the existing <code>HOSTNAME<\/code> line as well.<\/p>\n<p>It&#8217;s up to you whether or not to register the name with your local DNS server, though I find it convenient to do so. One more trick: it&#8217;s completely possible to register NAT addresses like 192.168.254.23 with external DNS servers like <a href=\"http:\/\/www.easydns.com\/?V=7820ad5da86b7cee\">EasyDNS<\/a>. You&#8217;ll only be able to connect to that system from within your local subnet (unless you&#8217;ve configured your firewall to forward external requests to that local address), but the DNS resolution still works. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you tired of host names like eliza-7.local in Mac OS X? Are you tied of seeing pointless dialogs like &#8220;eliza-7.local is already in use. Switching to eliza-8.local&#8221;? Do you want a stable hostname you put in scripts, MYSQL user tables, and so forth? If so add the following line to \/etc\/hostconfig: HOSTNAME=eliza.elharo.com Of course [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[410],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-mac","tag-flash"],"_links":{"self":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":0,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}