{"id":1289,"date":"2021-01-17T19:22:42","date_gmt":"2021-01-17T08:22:42","guid":{"rendered":"https:\/\/4it.com.au\/kb\/?post_type=article&#038;p=1289"},"modified":"2021-01-17T19:22:42","modified_gmt":"2021-01-17T08:22:42","slug":"how-to-add-dns-entry-to-hosts-file-using-the-command-prompt","status":"publish","type":"article","link":"https:\/\/4it.com.au\/kb\/article\/how-to-add-dns-entry-to-hosts-file-using-the-command-prompt\/","title":{"rendered":"How to Add DNS entry to hosts file using the command prompt"},"content":{"rendered":"<p>Here is the format to add an entry to the hosts file on the local pc using the command prompt<\/p>\n<pre>echo 1.1.1.1\u00a0<a class=\"linkified\" href=\"http:\/\/dropbox.com\/\" target=\"_blank\" rel=\"noopener nofollow\">dropbox.com<\/a>\u00a0&gt;&gt; %WINDIR%\\System32\\Drivers\\Etc\\Hosts<\/pre>\n<p>Where 1.1.1.1 is the IP Address and dropbox.com is the name that resolves to that IP Address<\/p>\n<p><em><strong>Please note: This is a \u201cQUICK SUPPORT\u201d article.<\/strong>\u00a0The information contained herein is provided as is. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. \u00a0More than likely specific steps may be missing and it could very well be assuming you have an advanced understanding on how to complete certain steps.<\/em><\/p>\n<div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>Here is the format to add an entry to the hosts file on the local pc using the command prompt echo 1.1.1.1\u00a0dropbox.com\u00a0&gt;&gt; %WINDIR%\\System32\\Drivers\\Etc\\Hosts Where 1.1.1.1 is the IP Address and dropbox.com is the name that resolves to that IP Address Please note: This is a \u201cQUICK SUPPORT\u201d article.\u00a0The information contained herein is provided as is. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","article-category":[838,9],"article-tag":[],"class_list":["post-1289","article","type-article","status-publish","format-standard","hentry","article-category-quick-support-article","article-category-windows-commands"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":7,"sum_votes":27},"_links":{"self":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/1289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/comments?post=1289"}],"version-history":[{"count":0,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/1289\/revisions"}],"wp:attachment":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/media?parent=1289"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-category?post=1289"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-tag?post=1289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}