{"id":48,"date":"2017-04-17T15:46:35","date_gmt":"2017-04-17T15:46:35","guid":{"rendered":"https:\/\/oimi.me\/?p=48"},"modified":"2017-04-17T15:46:35","modified_gmt":"2017-04-17T15:46:35","slug":"pure-dns%e4%b8%bb%e8%8a%82%e7%82%b9%e6%90%ad%e5%bb%ba%e8%bf%87%e7%a8%8b%ef%bc%88centos6%ef%bc%89","status":"publish","type":"post","link":"https:\/\/myya.net\/index.php\/2017\/04\/17\/pure-dns%e4%b8%bb%e8%8a%82%e7%82%b9%e6%90%ad%e5%bb%ba%e8%bf%87%e7%a8%8b%ef%bc%88centos6%ef%bc%89\/","title":{"rendered":"Pure DNS\u4e3b\u8282\u70b9\u642d\u5efa\u8fc7\u7a0b\uff08CentOS6\uff09"},"content":{"rendered":"<p>\u6b64\u6587\u4ee5CentOS6 64\u4f4d\u7cfb\u7edf\u4e3a\u4f8b\u8bb0\u5f55Pure DNS\u4e3b\u8282\u70b9\u7684\u642d\u5efa\u8fc7\u7a0b\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002\u6ce8\u610f\uff1a\u9700\u8981\u4f7f\u7528\u56fd\u5185vps\uff0c\u6d77\u5916vps\u642d\u5efa\u5b8c\u7167\u6837\u65e0\u5375\u7528\u7684\uff01<!--more--><\/p>\n<p>Pure DNS\u4e3b\u8282\u70b9\u91c7\u7528Dnsmasq\u2192Bind\u2192Overture\u4e09\u79cdDNS\u4f9d\u6b21\u9012\u5f52\u7684\u5f62\u5f0f\u8fdb\u884c\u670d\u52a1\uff0c\u5145\u5206\u5229\u7528\u6bcf\u79cdDNS\u670d\u52a1\u7684\u4f18\u52bf\u3002Dnsmasq\u76d1\u542c531\u7aef\u53e3\uff0c\u8d1f\u8d23\u5e7f\u544a\u8fc7\u6ee4\u7b49\u5de5\u4f5c\uff1bBind\u76d1\u542c530\u7aef\u53e3\uff0c\u8d1f\u8d23\u7279\u6b8a\u57df\u540d\u89e3\u6790\u548c\u5176\u4ed6\u9ad8\u7ea7\u7684\u64cd\u4f5c\uff0cOverture\u76d1\u542c53\u7aef\u53e3\uff0c\u8d1f\u8d23\u5e38\u89c4\u57df\u540d\u7684\u667a\u80fd\u89e3\u6790\u548c\u5bf9\u5916\u670d\u52a1\u3002<br \/>\n\u53ef\u80fd\u9700\u8981\u7528\u5230\u7684\u5de5\u5177\uff1aPutty\uff08ssh\u7ec8\u7aef\uff09\u3001WinSCP\uff08sftp\u6587\u4ef6\u7ba1\u7406\u5de5\u5177\uff09\u3002<br \/>\n<a href=\"http:\/\/dream.ren\/down\/PureDNS\/PureDNS.zip\">\u4e0b\u8f7d\u914d\u7f6e\u6587\u4ef6<\/a>\uff08\u5185\u542b\u9002\u7528\u4e8eLinux64\u4f4d\u7684Overture\uff09\u5e76\u89e3\u538b\u3002<br \/>\n1\u3001\u5b89\u88c5dnsmasq\u3001Bind<\/p>\n<div>\n<div id=\"highlighter_858729\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash plain\">yum <\/code><code class=\"bash functions\">install<\/code> <code class=\"bash plain\">dnsmasq bind -y<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>2\u3001\u8bbe\u7f6ednsmasq\u3001bind\u5f00\u673a\u81ea\u542f\uff08Bind\u670d\u52a1\u540d\u4e3a\u201cnamed\u201d\uff09<\/p>\n<div>\n<div id=\"highlighter_896801\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<div class=\"line number2 index1 alt1\">2<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash plain\">chkconfig dnsmasq on<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"bash plain\">chkconfig named on<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>3\u3001\u4e0a\u4f20\u538b\u7f29\u5305etc\u6587\u4ef6\u5939\u4e2ddnsmasq.conf\u3001named.conf\u6587\u4ef6\u548cdnsmasq.d\u3001named.d\u6587\u4ef6\u5939\u5230\/etc\u76ee\u5f55<br \/>\n4\u3001\u91cd\u542fdnsmasq\u548cBind<\/p>\n<div>\n<div id=\"highlighter_653214\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<div class=\"line number2 index1 alt1\">2<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash plain\">service dnsmasq restart<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"bash plain\">service named restart<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>5\u3001\u5c06\u538b\u7f29\u5305\u5185var\u6587\u4ef6\u5939\u4e2d\u7684dns\u6587\u4ef6\u5939\u4e0a\u4f20\u5230\/var\u76ee\u5f55<br \/>\n6\u3001\u8fdb\u5165Overture\u76ee\u5f55<\/p>\n<div>\n<div id=\"highlighter_414955\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash functions\">cd<\/code> <code class=\"bash plain\">\/var\/dns<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>7\u3001\u8bbe\u7f6eOverture\u53ef\u6267\u884c\u6743\u9650<\/p>\n<div>\n<div id=\"highlighter_814306\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash functions\">chmod<\/code> <code class=\"bash plain\">777 overture<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>8\u3001\u540e\u53f0\u8fd0\u884cOverture<\/p>\n<div>\n<div id=\"highlighter_880392\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash functions\">nohup<\/code> <code class=\"bash plain\">.<\/code><code class=\"bash plain\">\/overture<\/code> <code class=\"bash plain\">&gt;<\/code><code class=\"bash plain\">\/dev\/null<\/code> <code class=\"bash plain\">2&gt;&amp;1 &amp;<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u505c\u6b62Overture\u547d\u4ee4<\/p>\n<div>\n<div id=\"highlighter_192619\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash plain\">killall overture<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u642d\u5efa\u8fc7\u7a0b\u81f3\u6b64\u7ed3\u675f\uff0c\u6ce8\u610f\uff1a\u670d\u52a1\u5668\u91cd\u542f\u540e\u9700\u8981\u624b\u52a8\u542f\u52a8Overture\uff0c\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u540e\u53ea\u9700\u91cd\u542fdnsmasq\u548cBind\u5373\u53ef\u751f\u6548\uff0c\u4e0d\u4f1a\u5bfc\u81f4DNS\u5bf9\u5916\u670d\u52a1\u4e2d\u65ad\u3002DNS\u670d\u52a1\u53ef\u80fd\u4f1a\u56e0\u4e3a\u67d0\u4e9b\u539f\u56e0\u800c\u670d\u52a1\u5f02\u5e38\uff08\u5176\u5b9e\u4e5f\u51e0\u4e4e\u6ca1\u6709\u5566\uff09\uff0c\u53ef\u4ee5\u7f16\u5199\u76d1\u63a7\u811a\u672c\u5b9e\u73b0\u670d\u52a1\u5f02\u5e38\u81ea\u52a8\u91cd\u542f\uff0c\u5982\u6709\u9700\u8981\u8bf7\u7b49\u5f85\u535a\u4e3b\u63a5\u4e0b\u6765\u7684\u53d1\u6587\uff1b<br \/>\n\u53e6\u5916\uff0c\u5916\u7f51\u670d\u52a1\u5668\u6700\u597d\u8fd8\u662f\u914d\u7f6e\u4e00\u4e0b\u9632\u706b\u5899\u6bd4\u8f83\u597d\uff0c\u5f53\u524d\u4e3b\u8282\u70b9\u9632\u706b\u5899\u914d\u7f6e\uff08\u535a\u4e3b\u8868\u793a\u4e5f\u4e0d\u77e5\u9053\u535a\u4e3b\u7684\u9632\u706b\u5899\u6709\u6ca1\u6709\u6548\u679c <img decoding=\"async\" class=\"wp-smiley\" src=\"http:\/\/static.dream.ren\/presence\/images\/smilies\/icon_smile.gif\" alt=\":smile:\" \/> \uff09\u8bf7\u7b49\u5f85\u535a\u4e3b\u63a5\u4e0b\u6765\u7684\u53d1\u6587\uff1b<br \/>\n\u6700\u540e\u63d2\u4e00\u53e5\uff0c\u535a\u4e3b\u5bfb\u627e\u7f13\u5b58DNS\u7684\u667a\u80fd\u89e3\u6790\u65b9\u6cd5\u5bfb\u627e\u4e86\u51e0\u4e2a\u6708\uff0c\u6700\u7ec8\u624d\u5b9e\u73b0\u4e86\u667a\u80fd\u89e3\u6790\uff0c\u5176\u4ed6\u7684\u4e5f\u4e0d\u5962\u671b\uff0c\u4ec5\u4ec5\u5e0c\u671b\u4f7f\u7528\u6b64\u914d\u7f6e\u548c\u65b9\u6cd5\u642d\u5efaDNS\u7684\u670b\u53cb\u80fd\u5728\u81ea\u5df1\u7684\u7f51\u7ad9\u4e0a\u9762\u653e\u4e2a\u94fe\u63a5\uff0c\u6ce8\u660e\u4e00\u4e0b\u65b9\u6cd5\u6765\u6e90\uff0c\u8c22\u8c22\u3002<br \/>\n\u7279\u522b\u9e23\u8c22\uff1a<a href=\"https:\/\/github.com\/shawn1m\/overture\" target=\"_blank\">Overture<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6b64\u6587\u4ee5CentOS6 64\u4f4d\u7cfb\u7edf\u4e3a\u4f8b\u8bb0\u5f55Pure DNS\u4e3b\u8282\u70b9\u7684\u642d\u5efa\u8fc7\u7a0b\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002\u6ce8\u610f\uff1a\u9700\u8981\u4f7f\u7528\u56fd\u5185vps\uff0c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"footnotes":""},"categories":[9],"tags":[254],"class_list":["post-48","post","type-post","status-publish","format-aside","hentry","category-lifestyle","tag-pure-dns","post_format-post-format-aside"],"_links":{"self":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":0,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"wp:attachment":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}