{"id":209966,"date":"2014-01-22T17:14:03","date_gmt":"2014-01-22T13:14:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=209966"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=209966","title":{"rendered":"<span class=\"post_title\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u043c\u0451\u043d \u043d\u0430 Amazon EC2 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u043e \u043c\u0435\u0440\u0435 \u0440\u043e\u0441\u0442\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432, \u0440\u0430\u0437\u043c\u0435\u0449\u0451\u043d\u043d\u044b\u0445 \u043d\u0430 \u043c\u043e\u0451\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 Hetzner, \u043c\u0435\u043d\u044f \u0432\u0441\u0451 \u0447\u0430\u0449\u0435 \u0441\u0442\u0430\u043b\u0430 \u043f\u043e\u0441\u0435\u0449\u0430\u0442\u044c \u043c\u044b\u0441\u043b\u044c \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e dns-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438\u043c\u0451\u043d \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430.<\/p>\n<p>  \u0421\u0440\u0435\u0434\u0438 \u043f\u043b\u044e\u0441\u043e\u0432 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u2014\u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c, \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u044f (\u043f\u0440\u0430\u0432\u0434\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f), \u0432 \u0441\u0440\u0435\u0434\u0438 \u043c\u0438\u043d\u0443\u0441\u043e\u0432\u2014\u043d\u0438\u0437\u043a\u0430\u044f \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0441\u0442\u044c, \u0438\u0431\u043e \u0435\u0441\u043b\u0438 \u043b\u043e\u0436\u0438\u0442\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440 \u0442\u043e \u043b\u043e\u0436\u0430\u0442\u0441\u044f \u0438 \u0437\u043e\u043d\u044b \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f\u043c\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u043e \u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432, \u0447\u044c\u0438 \u0437\u043e\u043d\u044b \u0432\u044b \u0445\u043e\u0441\u0442\u0438\u0442\u0435.<\/p>\n<p>  \u041d\u0443 \u0430 \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043a\u0440\u043e\u043c\u0435 dns \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0435\u0449\u0451 \u0441\u0442\u043e\u043f\u0438\u0446\u043e\u0442 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u0434\u0430 \u0438 \u0440\u0443\u043a\u0438 \u0443 \u043c\u0435\u043d\u044f \u0440\u0430\u0441\u0442\u0443\u0442 \u0445\u043e\u0442\u044f \u0438 \u0432\u044b\u0448\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430, \u043d\u043e \u0432\u0441\u0451 \u0436\u0435 \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0443\u0436 \u0432\u044b\u0441\u043e\u043a\u043e, \u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0443 \u043c\u0435\u043d\u044f \u043b\u043e\u0436\u0438\u0442\u0441\u044f \u043f\u0430\u0440\u0443 \u0440\u0430\u0437 \u0432 \u0433\u043e\u0434 \u0442\u043e\u0447\u043d\u043e. \ud83d\ude41 \u0412\u044b\u0445\u043e\u0434, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0432 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u043c\u0451\u043d (\u0447\u0442\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0435\u0439 dns).<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Amazon EC2, \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0447\u0442\u043e \u0432\u0441\u0435\u043c \u043d\u043e\u0432\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430\u043c Amazon \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 <a href=\"http:\/\/aws.amazon.com\/free\/\">\u0433\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e<\/a> (\u0434\u043b\u044f micro-\u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432):<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/6a5\/d87\/77d\/6a5d8777d115082649c1a0b4f22cdf06.png\"\/><\/p>\n<p>  \u041f\u043e\u0435\u0445\u0430\u043b\u0438!<\/p>\n<p>  <a name=\"habracut\"><\/a><b>1. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u043a\u043e\u043f\u043a\u0443<\/b> \u00abGet Started for Free\u00bb \u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u043d\u0430 Amazon AWS. (\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0440\u0435\u0434\u0438\u0442\u043a\u0438 \u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u044b\u0439 \u0437\u0432\u043e\u043d\u043e\u043a \u043e\u0442 Amazon \u0447\u0442\u043e\u0431\u044b \u0432\u0432\u0435\u0441\u0442\u0438 \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 pin-\u043a\u043e\u0434.) \u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u043f\u043e\u0447\u0442\u0443 \u043f\u0440\u0438\u0434\u0451\u0442 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0441 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435\u043c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u0433\u043e\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/15a\/dc5\/7bc\/15adc57bc7e9f6c664b8a0aed07f352f.png\"\/><\/p>\n<p>  <b>2. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c<\/b> \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430\u043c\u0438 Amazon EC2 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \u00abInstances\u00bb \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0442\u0430\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u00abLaunch Instance\u00bb:<\/p>\n<p>  <a href=\"http:\/\/habr.habrastorage.org\/post_images\/6a2\/2e8\/f2d\/6a22e8f2d0be485f5efb154963cc89b8.png\"><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/8de\/cc4\/654\/8decc4654ae3bbdadfcfb6075da0ea5a.png\"\/><\/a><\/p>\n<p>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0434\u0438\u0430\u043b\u043e\u0433\u0435 \u0443\u0434\u043e\u0431\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0433\u0430\u043b\u043a\u0443 \u00abFree tier only\u00bb \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0441\u043c\u0443\u0449\u0430\u0442\u044c\u0441\u044f \u043f\u043b\u0430\u0442\u043d\u044b\u043c\u0438 \u043e\u0431\u0440\u0430\u0437\u0430\u043c\u0438:<\/p>\n<p>  <a href=\"http:\/\/habr.habrastorage.org\/post_images\/c64\/fb8\/bff\/c64fb8bffaba945a6960bdb0534c1138.png\"><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/c59\/4ab\/151\/c594ab151a3e8c3cffcad178421233f9.png\"\/><\/a><\/p>\n<p>  \u042f \u0432\u044b\u0431\u0440\u0430\u043b \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043e\u0431\u0440\u0430\u0437 Red Hat Enterprise Linux 6.4, 64-\u0431\u0438\u0442\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u0447\u0435\u0433\u043e \u0438 \u0432\u0430\u043c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e (\u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0435).<\/p>\n<p>  \u041f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 Amazon EC2 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u0440\u0443 \u043a\u043b\u044e\u0447\u0435\u0439 (key pair)\u2014\u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0439\u0442\u0435\u0441\u044c \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u0435\u0451 \u043d\u0430 \u0441\u0432\u043e\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u2014\u043e\u043d\u0430 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0432\u0430\u043c \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0443 \u043f\u043e ssh.<\/p>\n<p>  \u041a\u043b\u0438\u043a\u043d\u0443\u0432 \u043c\u044b\u0448\u043a\u043e\u0439 \u043d\u0430 \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u00abInstances\u00bb \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440, \u043d\u0430\u0439\u0434\u0438\u0442\u0435 \u0432 \u0435\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 (Description) \u0435\u0433\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 ip-\u0430\u0434\u0440\u0435\u0441 (Public IP) \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0435\u0433\u043e \u0441\u0435\u0431\u0435 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440.<\/p>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u00abSecurity Groups\u00bb, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0442\u0430\u0442\u044c \u043d\u0430 \u0433\u0440\u0443\u043f\u043f\u0443 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0438\u043f\u0430 \u00ablaunch-wizard\u00bb (\u0435\u0441\u043b\u0438 \u0447\u0442\u043e, \u0433\u0440\u0443\u043f\u043f\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u0430 \u043d\u0430 \u0442\u043e\u0439 \u0436\u0435 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u00abDescription\u00bb \u0447\u0442\u043e \u0438 \u0435\u0433\u043e ip-\u0430\u0434\u0440\u0435\u0441) \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u043c \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u00abInbound\u00bb \u043d\u043e\u0432\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c DNS:<\/p>\n<p>  <a href=\"http:\/\/habr.habrastorage.org\/post_images\/e13\/acc\/fae\/e13accfae36a6df3f074a242d9590eea.png\"><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/757\/da8\/633\/757da86332e245c6bf9876af0ac9d0c4.png\"\/><\/a><\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u0442 53 \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u043d\u0430\u0448\u0435\u043c\u0443 dns-\u0441\u0435\u0440\u0432\u0435\u0440\u0443. \u041f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u00abApply Rule Changes\u00bb.<\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f EC2 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044c, \u043e\u043d\u0430 \u043d\u0430\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f.<\/p>\n<p>  <b>3. \u041b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440<\/b> \u043f\u043e ssh, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>ssh -i key-pair-file.pem ec2-user@ip<\/code>, \u0433\u0434\u0435 <i>key-pair-file.pm<\/i>\u2014\u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u0441 \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430, \u0430 ip\u2014\u0435\u0433\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 ip-\u0430\u0434\u0440\u0435\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0432\u044b\u0448\u0435.<\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043d\u0430\u043c \u0442\u0443\u0442 \u0431\u043e\u0433 \u043f\u043e\u0441\u043b\u0430\u043b? 600 \u043c\u0435\u0442\u0440\u043e\u0432 RAM, 6 \u0433\u0438\u0433\u043e\u0432 \u0434\u0438\u0441\u043a\u0430, \u0441\u0432\u043e\u043f-\u0444\u0430\u0439\u043b\u0430 \u043d\u0435\u0442\u2026 \u041d\u0435\u0433\u0443\u0441\u0442\u043e, \u0437\u0430\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u0434\u0430 \u0438 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0446\u0435\u043b\u0438 \u0432\u043f\u043e\u043b\u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u0442. \ud83d\ude42 \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0435\u0436\u0438\u043c \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<p>  <code>sudo su<\/code><\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443:<\/p>\n<p>  <code>yum update -y<\/code><\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c dns-\u0441\u0435\u0440\u0432\u0435\u0440:<\/p>\n<p>  <code>yum install bind bind-utils -y<\/code><\/p>\n<p>  <b>4. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c bind<\/b>, \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u044f \u0435\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433 <i>\/etc\/named.conf<\/i>.<\/p>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 slave-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441\u0435\u043a\u0446\u0438\u044f <i>options<\/i> \u0443 \u043d\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre>options { \t#listen-on port 53 { 127.0.0.1; };         listen-on-v6 port 53 { ::1; };         directory\t&quot;\/var\/named&quot;;         dump-file\t&quot;\/var\/named\/data\/cache_dump.db&quot;;         statistics-file &quot;\/var\/named\/data\/named_stats.txt&quot;;         memstatistics-file &quot;\/var\/named\/data\/named_mem_stats.txt&quot;; \tallow-query { any; };         recursion no;         allow-notify { \u0442\u0443\u0442 ip-\u0430\u0434\u0440\u0435\u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430; };         dnssec-enable yes;         dnssec-validation yes;         dnssec-lookaside auto;         bindkeys-file &quot;\/etc\/named.iscdlv.key&quot;;         managed-keys-directory &quot;\/var\/named\/dynamic&quot;; };<\/pre>\n<p>  \u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0437\u043e\u043d\u044b \u0442\u0430\u043a:<\/p>\n<pre>zone &quot;mydomain.com&quot; IN { \ttype slave; \tmasters { 1.1.1.1; }; \tfile &quot;domain.tld.hosts&quot;; };<\/pre>\n<p>  \u0433\u0434\u0435 1.1.1.1 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 ip-\u0430\u0434\u0440\u0435\u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u043c\u0451\u043d.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c dns-\u0441\u0435\u0440\u0432\u0435\u0440:<\/p>\n<p>  <code>service named start<\/code><\/p>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0451 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u0443\u0436\u043d\u043e \u0435\u0449\u0451 \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 iptables \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<p>  <code>iptables -F INPUT<\/code><\/p>\n<p>  \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e\u043c \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0435 Red Hat 53-\u0439 \u043f\u043e\u0440\u0442 \u0437\u0430\u043a\u0440\u044b\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c iptables.<\/p>\n<p>  <b>5. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c<\/b> \u0441\u0432\u0435\u0436\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0441\u043d\u0430\u0440\u0443\u0436\u0438:<\/p>\n<p>  <code>dig@ip domain.tld<\/code><\/p>\n<p>  \u0433\u0434\u0435 ip\u2014ip-\u0430\u0434\u0440\u0435\u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 EC2, \u0430 domain.tld\u2014\u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u043e\u043c\u0435\u043d\u043e\u0432, \u0437\u043e\u043d\u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448 \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u044b\u0439 dns-\u0441\u0435\u0440\u0432\u0435\u0440. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0442\u0434\u0430\u0442\u044c \u0437\u043e\u043d\u0443 \u0431\u0435\u0437 \u0432\u043e\u0437\u0440\u0430\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/209966\/\"> http:\/\/habrahabr.ru\/post\/209966\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u043e \u043c\u0435\u0440\u0435 \u0440\u043e\u0441\u0442\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432, \u0440\u0430\u0437\u043c\u0435\u0449\u0451\u043d\u043d\u044b\u0445 \u043d\u0430 \u043c\u043e\u0451\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 Hetzner, \u043c\u0435\u043d\u044f \u0432\u0441\u0451 \u0447\u0430\u0449\u0435 \u0441\u0442\u0430\u043b\u0430 \u043f\u043e\u0441\u0435\u0449\u0430\u0442\u044c \u043c\u044b\u0441\u043b\u044c \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e dns-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438\u043c\u0451\u043d \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430.<\/p>\n<p>  \u0421\u0440\u0435\u0434\u0438 \u043f\u043b\u044e\u0441\u043e\u0432 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u2014\u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c, \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u044f (\u043f\u0440\u0430\u0432\u0434\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f), \u0432 \u0441\u0440\u0435\u0434\u0438 \u043c\u0438\u043d\u0443\u0441\u043e\u0432\u2014\u043d\u0438\u0437\u043a\u0430\u044f \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0441\u0442\u044c, \u0438\u0431\u043e \u0435\u0441\u043b\u0438 \u043b\u043e\u0436\u0438\u0442\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440 \u0442\u043e \u043b\u043e\u0436\u0430\u0442\u0441\u044f \u0438 \u0437\u043e\u043d\u044b \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f\u043c\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u043e \u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432, \u0447\u044c\u0438 \u0437\u043e\u043d\u044b \u0432\u044b \u0445\u043e\u0441\u0442\u0438\u0442\u0435.<\/p>\n<p>  \u041d\u0443 \u0430 \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043a\u0440\u043e\u043c\u0435 dns \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0435\u0449\u0451 \u0441\u0442\u043e\u043f\u0438\u0446\u043e\u0442 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u0434\u0430 \u0438 \u0440\u0443\u043a\u0438 \u0443 \u043c\u0435\u043d\u044f \u0440\u0430\u0441\u0442\u0443\u0442 \u0445\u043e\u0442\u044f \u0438 \u0432\u044b\u0448\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430, \u043d\u043e \u0432\u0441\u0451 \u0436\u0435 \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0443\u0436 \u0432\u044b\u0441\u043e\u043a\u043e, \u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0443 \u043c\u0435\u043d\u044f \u043b\u043e\u0436\u0438\u0442\u0441\u044f \u043f\u0430\u0440\u0443 \u0440\u0430\u0437 \u0432 \u0433\u043e\u0434 \u0442\u043e\u0447\u043d\u043e. \ud83d\ude41 \u0412\u044b\u0445\u043e\u0434, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0432 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u043c\u0451\u043d (\u0447\u0442\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0435\u0439 dns).<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Amazon EC2, \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0447\u0442\u043e \u0432\u0441\u0435\u043c \u043d\u043e\u0432\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430\u043c Amazon \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 <a href=\"http:\/\/aws.amazon.com\/free\/\">\u0433\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e<\/a> (\u0434\u043b\u044f micro-\u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432):<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/6a5\/d87\/77d\/6a5d8777d115082649c1a0b4f22cdf06.png\"\/><\/p>\n<p>  \u041f\u043e\u0435\u0445\u0430\u043b\u0438!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-209966","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/209966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=209966"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/209966\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=209966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=209966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=209966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}