{"id":294,"date":"2013-03-08T22:53:05","date_gmt":"2013-03-08T22:53:05","guid":{"rendered":"6883966fd8f918a4aa29be29d2c386fb"},"modified":"2013-03-08T22:53:05","modified_gmt":"2013-03-08T22:53:05","slug":"","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/294","title":{"rendered":"\u5728Windows\u4e0b\u5b89\u88c5BIND\u4f5c\u4e3aDNS\u670d\u52a1\u5668"},"content":{"rendered":"<p>1\u3001\u4e0b\u8f7dBIND<\/p>\n<p>http:\/\/ftp.isc.org\/isc\/bind9\/9.4.3\/BIND9.4.3.zip<\/p>\n<p>2\u3001\u5b89\u88c5<br \/>\n\u4e0b\u8f7d\u56de\u6765\u662fzip\u7684\u538b\u7f29\u5305\uff0c\u89e3\u538b\u4ee5\u540e\u76f4\u63a5\u53cc\u51fbBINDInstall.exe\u5b89\u88c5\uff0c\u9ed8\u8ba4\u5b89\u88c5\u8def\u5f84\u662fC:\\WINDOWS\\system32\\dns\u3002bind\u5728win32\u4e0b\u5c06\u81ea\u5df1\u6ce8\u518c\u6210\u670d\u52a1\uff0c\u670d\u52a1\u540d\u53ebISC BIND\uff0c\u7a0b\u5e8f\u540d\u4e3anamed.exe\uff0c\u542f\u52a8\u670d\u52a1\u9700\u8981\u7528\u4e00\u4e13\u6709\u5e10\u6237\uff0c\u9ed8\u8ba4\u540d\u79f0\u4e3anamed\uff0c\u5bc6\u7801\u7531\u5b89\u88c5\u8005\u81ea\u5b9a\u4e49\u3002\u70b9\u51fbinstall\u4ee5\u540e\uff0c\u7a0b\u5e8f\u4fbf\u5b89\u88c5\u5728C:\\WINDOWS\\system32\\dns\u4e0b\uff0c\u8fd9\u65f6\u8fd8\u4e0d\u80fd\u542f\u52a8bind\u670d\u52a1\uff0c\u4f1a\u62a5\u4ee3\u53f71067\u7684\u9519\uff0c\u5f97\u5148\u7ecf\u8fc7\u914d\u7f6e\u3002<\/p>\n<p>3\u3001\u914d\u7f6e<br \/>\n\u5148\u8fd0\u884c\u547d\u4ee4\u884ccmd\uff0ccd \u81f3 C:\\WINDOWS\\system32\\dns\\bin\u4e0b\uff0c\u8fd0\u884crndc-confgen.exe -a\uff0c\u4f1a\u81ea\u52a8\u5728C:\\WINDOWS\\system32\\dns\\etc\\\u4e0b\u751f\u6210rndc.key\u3002\u6b64rndc.key\u662f\u5728\u662fbind 9.x\u7248\u672c\u7684\u65b0\u529f\u80fd\uff0c\u662f\u6709\u5173DNS\u66f4\u65b0\u4ee5\u53ca\u66f4\u65b0\u65f6\u52a0\u5bc6\u5904\u7406\u7684\uff0c\u8ddf\u6211\u4eec\u4e2a\u4eba\u7528\u6237\u65e0\u592a\u5927\u5173\u7cfb\uff0c\u4e0d\u8fc7\u57fa\u4e8e\u517c\u5bb9\u6027\uff0c\u8fd8\u662f\u7167\u505a\u3002\u63a5\u4e0b\u6765\uff0c\u5728C:\\WINDOWS\\system32\\dns\\etc\\\u4e0b\u5efa\u7acbnamed.conf\uff0c\u5373bind\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b:<\/p>\n<p>include \"c:\\windows\\system32\\dns\\etc\\rndc.key\";<br \/>\nzone \".\" {<br \/>\ntype hint;<br \/>\nfile \"c:\\windows\\system32\\dns\\etc\\named.root\";<br \/>\n};<\/p>\n<p>include\u4e00\u884c\u4e3b\u8981\u662f\u5c06rndc.key\u5305\u542b\u8fdb\u53bb\uff0czone \".\"\u4e00\u884c\u662f\u8bbe\u7f6e\u6839\u8282\u70b9\uff0c\u6211\u4eec\u505a\u81ea\u5df1\u4e2a\u4eba\u7684DNS\u670d\u52a1\u5668\uff0c\u53ea\u8981\u8bbe\u7f6e\u8fd9\u4e2a\u8db3\u591f\uff0c\u5176\u4ed6\u7684\u5404\u4e2a\u53c2\u6570\u53ef\u4ee5\u81ea\u5df1\u4e0a\u7f51\u53bb\u641c\u7d22\u4e86\u89e3\uff0c\u591f\u7528\u5c31\u597d\u63a5\u4e0b\u6765\u4ecehttp:\/\/www.internic.net\/\u4e0b\u8f7dnamed.root\u6587\u4ef6,\u91cc\u9762\u5b9a\u4e49\u4e86\u5168\u7403\u7684\u6839DNS\u670d\u52a1\u5668\uff0c\u4e0b\u8f7d\u5730\u5740\u662fhttp:\/\/www.internic.net\/zones\/named.root\uff0c\u9700\u8981\u5b9a\u671f\u66f4\u65b0\uff0c\u4e0d\u8fc7\u7528dig\u5de5\u5177\u4e5f\u53ef\u4ee5\u5b9e\u65f6\u67e5\u5f97\u6839DNS\u670d\u52a1\u5668\u7684\u5730\u5740\uff0c\u53ea\u4e0d\u8fc7win32\u4e0b\u6ca1\u6709\u76f4\u63a5\u5c06\u8f93\u51fa\u7ed3\u679c\u5b58\u4e3anamed.root\u6587\u4ef6\u7684\u529f\u80fd\uff0c\u6240\u4ee5\u8fd8\u662f\u4e0b\u8f7d\u6bd4\u8f83\u65b9\u4fbf\u3002named.root\u6587\u4ef6\u4e5f\u662f\u653e\u5728etc\u76ee\u5f55\u4e0b\u3002\u5982\u679cC\u76d8\u662fNTFS\u683c\u5f0f\u7684\u8bdd\uff0c\u8fd8\u8981\u8bb0\u5f97\u5b9a\u4e49\u542f\u52a8bind\u7684named\u7528\u6237c:\\windows\\system32\\dns\\etc\u8fd9\u4e2a\u76ee\u5f55\u7684\u5b8c\u5168\u63a7\u5236\u6743\uff0c\u4e0d\u7136\uff0c\u8fd8\u662f\u4f1a\u62a51067\u7684\u9519\uff08\u5982\u679cbind\u4e0d\u4f5c\u4e3a\u670d\u52a1\u542f\u52a8\uff0c\u76f4\u63a5\u5728cmd\u91cc\u542f\u52a8\uff0c\u6743\u9650\u4e0d\u5fc5\u653e\u884c\uff0c\u56e0\u4e3a\u662f\u76f4\u63a5\u7528\u5f53\u524d\u7528\u6237\u7684\u6743\u9650\u561b\uff09<\/p>\n<p>4\u3001\u542f\u52a8<\/p>\n<p>\u4ece\u201c\u8ba1\u7b97\u673a\u7ba1\u7406--\u300b\u670d\u52a1\u201d\u542f\u52a8ISC BIND\u670d\u52a1\u3002 <\/p>\n<\/p>\n<p>5\u3001\u6d4b\u8bd5\n<\/p>\n<p>\u628a\u7f51\u7edc\u4e0a\u7684\u4efb\u610f\u4e00\u53f0\u673a\u5668\u7684DNS\u8bbe\u7f6e\u5230\u5b89\u88c5\u4e86BIND\u7684\u673a\u5668IP\u3002Ping\u4e00\u4e0bwww.google.com\u3002\u5982\u679c\u901a\u4e86\uff0c\u606d\u559c\u4f60\uff0c\u505a\u5bf9\u4e86\u3002 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u4e0b\u8f7dBIND<\/p>\n<p>http:\/\/ftp.isc.org\/isc\/bind9\/9.4.3\/BIND9.4.3.zip<\/p>\n<p>2\u3001\u5b89\u88c5<br \/>\n\u4e0b\u8f7d\u56de\u6765\u662fzip\u7684\u538b\u7f29\u5305\uff0c\u89e3\u538b\u4ee5\u540e\u76f4\u63a5\u53cc\u51fbBINDInstall.exe\u5b89\u88c5\uff0c\u9ed8\u8ba4\u5b89\u88c5\u8def\u5f84\u662fC:\\WINDOWS\\system32\\dns\u3002bind\u5728win32\u4e0b\u5c06\u81ea\u5df1\u6ce8\u518c\u6210\u670d\u52a1\uff0c\u670d\u52a1\u540d\u53ebISC BIND\uff0c\u7a0b\u5e8f\u540d\u4e3anamed.exe\uff0c\u542f\u52a8\u670d\u52a1\u9700\u8981\u7528\u4e00\u4e13\u6709\u5e10\u6237\uff0c\u9ed8\u8ba4\u540d\u79f0\u4e3anamed\uff0c\u5bc6\u7801\u7531\u5b89\u88c5\u8005\u81ea\u5b9a\u4e49\u3002\u70b9\u51fbinstall\u4ee5\u540e\uff0c\u7a0b\u5e8f\u4fbf\u5b89\u88c5\u5728C:\\WINDOWS\\system32\\dns\u4e0b\uff0c\u8fd9\u65f6\u8fd8\u4e0d\u80fd\u542f\u52a8bind\u670d\u52a1\uff0c\u4f1a\u62a5\u4ee3\u53f71067\u7684\u9519\uff0c\u5f97\u5148\u7ecf\u8fc7\u914d\u7f6e\u3002<\/p>\n<p>... <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/294\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[283],"tags":[5,6],"class_list":["post-294","post","type-post","status-publish","format-standard","hentry","category-technologys","tag-Bind","tag-dns"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=294"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/294\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}