{"id":56,"date":"2011-08-26T12:01:26","date_gmt":"2011-08-26T17:01:26","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2011\/08\/26\/how-to-edit-your-hosts-file-on-a-mac\/"},"modified":"2023-09-19T11:47:09","modified_gmt":"2023-09-19T15:47:09","slug":"how-to-edit-your-hosts-file-on-a-mac","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/","title":{"rendered":"How to Edit your Hosts File on a Mac"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac-1024x538.jpg\" alt=\"\" class=\"wp-image-103772\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac-1024x538.jpg 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac-300x158.jpg 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac-768x403.jpg 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac.jpg 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>Your computer uses the HOSTS file to look up\/resolve domain names to an IP address. This file can force your computer to resolve your website to a specific IP address rather than using the DNS entries indicated by the domain\u2019s name servers. <\/p>\n\n\n\n<p>Manually configuring your domain with the IP address of your InMotion Hosting server will allow you to point a domain name to a different server location using an IP address. A HOSTS file change is intended to be temporary and should not be used with the published website.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#video\">Video \u2013 How to Edit Your HOSTS File on a Mac<\/a><\/li>\n\n\n\n<li><a href=\"#edit-hosts\">Edit the HOSTS File in a Terminal Client<\/a><\/li>\n\n\n\n<li><a href=\"#flush\">How to Flush the DNS Cache<\/a><\/li>\n<\/ul>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"video\">Video \u2013 How to Edit Your HOSTS File on a Mac<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"jetpack-video-wrapper\"><div class=\"yt-1x4B_pU2HZ8\">\n\t<a class=\"play-video-1x4B_pU2HZ8\" style=\"position: relative; display: flex; flex-wrap: wrap; align-items: center; cursor: pointer;\">\n\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.ytimg.com\/vi_webp\/1x4B_pU2HZ8\/maxresdefault.webp\" width=\"1280\" height=\"720\" alt=\"How to Edit Your Hosts File on a Mac\" style=\"width: 100%; height: auto;\">\n\t\t<span class=\"fa fa-imh-play-circle imh-ds-icon play-circle\" style=\"position: absolute; display:block; font-size:150px; color: #c52228; opacity:0;\"><\/span>\n\t<\/a>\n<\/div><\/div>\n<\/div><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"edit-hosts\">Edit HOSTS File in a Terminal Client<\/h2>\n\n\n\n<p>You can use a terminal client application, or the one <a href=\"https:\/\/support.apple.com\/guide\/terminal\/welcome\/mac\" target=\"_blank\" rel=\"noreferrer noopener\">Apple provides<\/a> in its operating system when editing your HOSTS file.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\">\n<li>Open the <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/shared-server-ssh-mac\/\"><b>Terminal<\/b><\/a> client of your choice.<\/li>\n\n\n\n<li>Edit the <em>HOSTS<\/em> file in the terminal window using one of the commands below.<br><pre>sudo nano \/private\/etc\/hosts<\/pre><br>For newer versions of Mac OS, use this command:<br><pre>sudo nano \/etc\/hosts<\/pre><\/li>\n\n\n\n<li>Enter your Apple login password for your device.<\/li>\n\n\n\n<li>Edit the HOSTS file by adding these two lines.<br><pre><b>SERVER_IP_ADDRESS<\/b> domain.com<br><b>SERVER_IP_ADDRESS<\/b> www.domain.com<\/pre><br>This is an example of how it would appear in the HOSTS file:<br><pre>86.75.30.9 domain.com<br>86.75.30.9 www.domain.com<\/pre> <p class=\"alert alert-danger\"><b>NOTE:<\/b> Replace \u201cdomain.com\u201d with your actual domain name. If you are unsure which IP address to use, please contact our <a href=\"https:\/\/www.inmotionhosting.com\/support\/amp\/how-to-get-great-technical-support\/\">Support Department<\/a> for further assistance.<\/p><\/li>\n\n\n\n<li>Save your changes by pressing <strong>Control-O<\/strong> on your keyboard, then hit the <b>enter<\/b> key to accept the filename.<\/li>\n\n\n\n<li>Exit the editor by pressing <strong>Control-X<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"flush\">How to Flush the DNS Cache<\/h2>\n\n\n\n<p>You may need to flush your Mac\u2019s DNS cache for the HOSTS file change to work. Use the following command to flush the cache:<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\">\n<li>Open your Terminal client.<\/li>\n\n\n\n<li>Type in the following command: <code>dscacheutil -flushcache<\/code><\/li>\n\n\n\n<li>Hit enter to run the command.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<p>This completes the <b>HOSTS <\/b>file modification. You can now see your website using a domain name pointing to the specific IP address you added to the HOSTS file. If you no longer need the changes in the HOSTS file you can repeat the steps above and remove the changes you added.<\/p>\n\n\n\n<p>\nIf you are using Windows, please refer to our guide on how to <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/modifying-your-hosts-file\/\">Modify Your Hosts File Using Windows<\/a>.\n<\/p>\n\n\n\n<p>Learn more about DNS management with our <a href=\"https:\/\/www.inmotionhosting.com\/support\/domain-names\/dns-nameserver-changes\/\">DNS and Nameserver Changes<\/a> Education Channel.<\/p>\n\n\n<div class=\"jumbotron\"><p style=\"margin-top:0;\"><img decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/custom\/security.svg\" align=\"right\" alt=\"Secure VPS Hosting\" height=\"80\">Enjoy high-performance, lightning-fast servers with increased security and maximum up-time with our <a href=\"https:\/\/www.inmotionhosting.com\/vps-hosting\">Secure VPS Hosting<\/a>!<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Linux VPS    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>cPanel or Control Web Panel    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Scalable    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Website Migration Assistance<\/p>\r\n<p style=\"margin:10px 0;\"><a class=\"btn btn-primary btn-lg\" href=\"https:\/\/www.inmotionhosting.com\/vps-hosting\/linux-vps\">Linux VPS Hosting<\/a><\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Your computer uses the HOSTS file to look up\/resolve domain names to an IP address. This file can force your computer to resolve your website to a specific IP address rather than using the DNS entries indicated by the domain&#8217;s name servers. Manually configuring your domain with the IP address of your InMotion Hosting server<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/\"> Read More ><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4360],"tags":[],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-software"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Edit your Mac HOSTS file | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"In this article, we will explain how to modify your hosts file on a Mac for the purpose of looking up\/resolve domain names to an IP address.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Edit your Mac HOSTS file | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"In this article, we will explain how to modify your hosts file on a Mac for the purpose of looking up\/resolve domain names to an IP address.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2011-08-26T17:01:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-19T15:47:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac-1024x538.jpg\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b\"},\"headline\":\"How to Edit your Hosts File on a Mac\",\"datePublished\":\"2011-08-26T17:01:26+00:00\",\"dateModified\":\"2023-09-19T15:47:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/\"},\"wordCount\":415,\"commentCount\":63,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac-1024x538.jpg\",\"articleSection\":[\"Software\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/\",\"name\":\"How to Edit your Mac HOSTS file | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac-1024x538.jpg\",\"datePublished\":\"2011-08-26T17:01:26+00:00\",\"dateModified\":\"2023-09-19T15:47:09+00:00\",\"description\":\"In this article, we will explain how to modify your hosts file on a Mac for the purpose of looking up\/resolve domain names to an IP address.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac.jpg\",\"width\":1200,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Edit your Hosts File on a Mac\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/arn\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Edit your Mac HOSTS file | InMotion Hosting","description":"In this article, we will explain how to modify your hosts file on a Mac for the purpose of looking up\/resolve domain names to an IP address.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/","og_locale":"en_US","og_type":"article","og_title":"How to Edit your Mac HOSTS file | InMotion Hosting","og_description":"In this article, we will explain how to modify your hosts file on a Mac for the purpose of looking up\/resolve domain names to an IP address.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2011-08-26T17:01:26+00:00","article_modified_time":"2023-09-19T15:47:09+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac-1024x538.jpg","type":"","width":"","height":""}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b"},"headline":"How to Edit your Hosts File on a Mac","datePublished":"2011-08-26T17:01:26+00:00","dateModified":"2023-09-19T15:47:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/"},"wordCount":415,"commentCount":63,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac-1024x538.jpg","articleSection":["Software"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/","name":"How to Edit your Mac HOSTS file | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac-1024x538.jpg","datePublished":"2011-08-26T17:01:26+00:00","dateModified":"2023-09-19T15:47:09+00:00","description":"In this article, we will explain how to modify your hosts file on a Mac for the purpose of looking up\/resolve domain names to an IP address.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/03\/hosts-change-mac.jpg","width":1200,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-edit-your-hosts-file-on-a-mac\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Edit your Hosts File on a Mac"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/arn\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4360,"name":"Software","slug":"software","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":25,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":106778,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/56\/revisions\/106778"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}