{"id":7,"date":"2004-11-21T18:39:51","date_gmt":"2004-11-22T02:39:51","guid":{"rendered":"http:\/\/hongyu.org\/wordpress\/?p=7"},"modified":"2005-08-27T17:02:12","modified_gmt":"2005-08-28T01:02:12","slug":"host-name","status":"publish","type":"post","link":"https:\/\/www.hongyu.org\/wordpress\/?p=7","title":{"rendered":"Host name"},"content":{"rendered":"<p>In my home&#8217;s intranet, I need to connect to my linux server from my XP laptop. To directly use the linux computer&#8217;s name instead of the IP adress, I need to make sure that XP can correctly map the host name to the IP address.  I have tried two options. The first is to modify the hosts file in windows, and the second is to directly modify the IP-hostname pair in the router&#8217;s DNS setup. And I prefer the second method.<\/p>\n<p>The first method:<br \/>\nuse Notepad to open the file &#8220;c:windows\\system32\\drivers\\hosts&#8221;, or &#8220;c:windows\\system32\\drivers\\etc\\hosts&#8221;<br \/>\nat NT, it&#8217;s c:winnt\\system32\\drivers\\etc\\hosts, and add the following line<\/p>\n<p>192.168.1.4 beast<\/p>\n<p>which mapped the IP address 192.168.1.4 to my linux machine &#8220;beast&#8221;. The following link is very useful to me,  http:\/\/practice.chatserve.com\/hosts.html<\/p>\n<p>In order to set up the hostname on the linux box, I made a change on the \/etc\/hosts file, which looks like this:<br \/>\n127.0.0.1       beast.localdomain        localhost beast<br \/>\n192.168.1.4     beast.localdomain        localhost beast<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my home&#8217;s intranet, I need to connect to my linux server from my XP laptop. To directly use the linux computer&#8217;s name instead of the IP adress, I need to make sure that XP can correctly map the host name to the IP address. I have tried two options. The first is to modify &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.hongyu.org\/wordpress\/?p=7\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Host name&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7"}],"collection":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":0,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}