{"id":921,"date":"2015-05-06T09:59:41","date_gmt":"2015-05-06T09:59:41","guid":{"rendered":"http:\/\/linuxmotto.ir\/blog\/?p=921"},"modified":"2015-05-06T10:03:39","modified_gmt":"2015-05-06T10:03:39","slug":"921","status":"publish","type":"post","link":"https:\/\/linuxmotto.io\/blog\/?p=921","title":{"rendered":"\u062a\u063a\u06cc\u06cc\u0631 hostname \u0648 domain"},"content":{"rendered":"<p><strong>\u062a\u063a\u06cc\u06cc\u0631 hostname \u0648 domain\u062f\u0631 Debian 7.x<\/strong><br \/>\n\u0628\u0631\u0627\u06cc \u062a\u063a\u06cc\u06cc\u0631 hostname \u0648 domain \u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f \u0641\u0627\u06cc\u0644 etc\/hostname\/ \u0631\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0646\u0627\u0645 \u06a9\u0627\u0645\u0644 (fqdn) \u0633\u06cc\u0633\u062a\u0645 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u062f\u0627\u0645\u0646\u0647 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<blockquote dir=\"ltr\"><p># vi \/etc\/hostname<br \/>\nbehrad.cvak.local<\/p><\/blockquote>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u0646\u062c\u0627\u0645 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0628\u0631\u0627\u06cc \u0622\u0646\u06a9\u0647 \u0646\u0627\u0645 \u062c\u062f\u06cc\u062f \u0627\u0639\u0645\u0627\u0644 \u0634\u0648\u062f\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f.<\/p>\n<blockquote>\n<p dir=\"ltr\"># hostname -F \/etc\/hostname<\/p>\n<\/blockquote>\n<p>\u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u062c\u062f\u062f \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 hostname \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc \u062f\u0647\u062f. \u06a9\u0627\u0641\u06cc \u0627\u0633\u062a \u06cc\u06a9 \u0628\u0627\u0631 logout \u0648 \u0633\u067e\u0633 login \u06a9\u0646\u06cc\u062f. \u06a9\u0627\u0631 \u0647\u0646\u0648\u0632 \u062a\u0645\u0627\u0645 \u0646\u0634\u062f\u0647 \u0627\u0633\u062a. \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0628\u0627\u06cc\u062f \u0641\u0627\u06cc\u0644 hosts \u0631\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f.<\/p>\n<blockquote>\n<p dir=\"ltr\"># vi \/etc\/hosts<br \/>\n127.0.0.1 \u00a0 \u00a0 \u00a0 behrad.cvak.local cvak.local<\/p>\n<\/blockquote>\n<p>\u0634\u0645\u0627 \u0646\u0627\u0645 \u0631\u0627 \u0645\u0642\u0627\u0628\u0644 \u0622\u06cc \u067e\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u062e\u0648\u062f \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. \u0622\u0646\u0686\u0647 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0645\u0647\u0645 \u0627\u0633\u062a \u062a\u0631\u062a\u06cc\u0628 \u0646\u0648\u0634\u062a\u0646 \u0622\u0646 \u0627\u0633\u062a. \u062d\u062a\u0645\u0627 \u0646\u0627\u0645 \u06a9\u0627\u0645\u0644 (behrad.cvak.local) \u0631\u0627 \u0642\u0628\u0644 \u0627\u0632 \u0646\u0627\u0645 \u062f\u0627\u0645\u0646\u0647 (cvak.local) \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.\u0627\u06a9\u0646\u0648\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 hostname \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0627\u0646\u062c\u0627\u0645 \u0634\u062f\u0647 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<blockquote>\n<p dir=\"ltr\"># hostname<br \/>\nbehrad.cvak.local<\/p>\n<p dir=\"ltr\"># hostname -d<br \/>\ncvak.local<\/p>\n<p dir=\"ltr\"># hostname -s<br \/>\nbehrad<\/p>\n<\/blockquote>\n<p>\u0645\u0646\u06cc\u0639: <a href=\"http:\/\/www.cvak.ir\/article\/112\/%D8%AA%D8%BA%DB%8C%DB%8C%D8%B1-hostname-%D9%88-domain\">\u0633\u06cc\u0648\u06a9<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u062a\u063a\u06cc\u06cc\u0631 hostname \u0648 domain\u062f\u0631 Debian 7.x \u0628\u0631\u0627\u06cc \u062a\u063a\u06cc\u06cc\u0631 hostname \u0648 domain \u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f \u0641\u0627\u06cc\u0644 etc\/hostname\/ \u0631\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0646\u0627\u0645 \u06a9\u0627\u0645\u0644 (fqdn) \u0633\u06cc\u0633\u062a\u0645 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u062f\u0627\u0645\u0646\u0647 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. # vi \/etc\/hostname behrad.cvak.local \u067e\u0633 \u0627\u0632 \u0627\u0646\u062c\u0627\u0645 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0628\u0631\u0627\u06cc \u0622\u0646\u06a9\u0647 \u0646\u0627\u0645 \u062c\u062f\u06cc\u062f \u0627\u0639\u0645\u0627\u0644 \u0634\u0648\u062f\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. # hostname -F \/etc\/hostname \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u062c\u062f\u062f \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 hostname \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc \u062f\u0647\u062f. \u06a9\u0627\u0641\u06cc \u0627\u0633\u062a \u06cc\u06a9 \u0628\u0627\u0631 logout \u0648 \u0633\u067e\u0633 login \u06a9\u0646\u06cc\u062f. \u06a9\u0627\u0631 \u0647\u0646\u0648\u0632 \u062a\u0645\u0627\u0645 \u0646\u0634\u062f\u0647 \u0627\u0633\u062a. \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0628\u0627\u06cc\u062f \u0641\u0627\u06cc\u0644 hosts \u0631\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f. # vi \/etc\/hosts 127.0.0.1 \u00a0 \u00a0 \u00a0 behrad.cvak.local cvak.local \u0634\u0645\u0627 \u0646\u0627\u0645 \u0631\u0627 \u0645\u0642\u0627\u0628\u0644 \u0622\u06cc \u067e\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,20],"tags":[196,195,194,192,193,191,197],"class_list":["post-921","post","type-post","status-publish","format-standard","hentry","category-administration","category-20","tag-change-domanname","tag-change-hostname","tag-dnsdomainname","tag-domain","tag-domainnam","tag-hostname","tag--hostname"],"_links":{"self":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=921"}],"version-history":[{"count":2,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/921\/revisions"}],"predecessor-version":[{"id":923,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/921\/revisions\/923"}],"wp:attachment":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}