{"id":342,"date":"2017-11-11T16:00:34","date_gmt":"2017-11-12T00:00:34","guid":{"rendered":"http:\/\/www.yootopia.com\/mystory\/wp\/?p=342"},"modified":"2017-11-11T16:01:31","modified_gmt":"2017-11-12T00:01:31","slug":"howto-os-x-how-to-change-hostname","status":"publish","type":"post","link":"http:\/\/www.yootopia.com\/mystory\/wp\/?p=342","title":{"rendered":"[HowTo] OS X &#8211; How to change hostname"},"content":{"rendered":"<p>(Source: <a href=\"https:\/\/knowledge.autodesk.com\/support\/smoke\/learn-explore\/caas\/sfdcarticles\/sfdcarticles\/Setting-the-Mac-hostname-or-computer-name-from-the-terminal.html\" target=\"_blank\" rel=\"noopener\">https:\/\/knowledge.autodesk.com\/support\/smoke\/learn-explore\/caas\/sfdcarticles\/sfdcarticles\/Setting-the-Mac-hostname-or-computer-name-from-the-terminal.html<\/a>)<\/p>\n<p>Procedure<\/p>\n<p>Perform the following tasks to change the workstation hostname using the\u00a0scutil\u00a0command.<\/p>\n<ol start=\"1\">\n<li>Open a terminal.<\/li>\n<li>Type the following command to\u00a0<b>change the primary hostname of your Mac<\/b>:<br \/>\nThis is your fully qualified hostname, for example myMac.domain.com<br \/>\nsudo scutil &#8211;set HostName &lt;new host name&gt;<\/li>\n<li>Type the following command to\u00a0<b>change the Bonjour hostname of your Mac<\/b>:<br \/>\nThis is the name usable on the local network, for example myMac.local.<br \/>\nsudo scutil &#8211;set LocalHostName &lt;new host name&gt;<\/li>\n<li>Optional: If you also want to\u00a0<b>change the computer name<\/b>, type the following command:<br \/>\nThis is the user-friendly computer name you see in Finder, for example myMac.<br \/>\nsudo scutil &#8211;set ComputerName &lt;new name&gt;<\/li>\n<li>Flush the DNS cache by typing:<br \/>\ndscacheutil -flushcache<\/li>\n<li>Restart your Mac.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>(Source: https:\/\/knowledge.autodesk.com\/support\/smoke\/learn-explore\/caas\/sfdcarticles\/sfdcarticles\/Setting-the-Mac-hostname-or-computer-name-from-the-terminal.html) Procedure Perform the following tasks to change the workstation hostname using the\u00a0scutil\u00a0command. Open a terminal. Type the following command to\u00a0change the primary hostname of your Mac: This is your fully qualified hostname, for example myMac.domain.com sudo scutil &#8211;set &hellip; <a href=\"http:\/\/www.yootopia.com\/mystory\/wp\/?p=342\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[19],"tags":[103,85,74,32],"class_list":["post-342","post","type-post","status-publish","format-standard","hentry","category-howto","tag-hostname","tag-howto","tag-mac","tag-osx"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p48Rtg-5w","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/posts\/342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=342"}],"version-history":[{"count":0,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/posts\/342\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}