{"id":407,"date":"2015-03-14T10:03:56","date_gmt":"2015-03-14T02:03:56","guid":{"rendered":"http:\/\/www.ipcpu.com\/?p=407"},"modified":"2015-03-14T10:03:56","modified_gmt":"2015-03-14T02:03:56","slug":"cli53-route53","status":"publish","type":"post","link":"https:\/\/c.ipcpu.com\/2015\/03\/cli53-route53\/","title":{"rendered":"\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177cli53\u7ba1\u7406\u4e9a\u9a6c\u900aroute53\u57df\u540d\u8d44\u6e90"},"content":{"rendered":"

\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177cli53\u7ba1\u7406\u4e9a\u9a6c\u900aaroute53\u57df\u540d\u8d44\u6e90.md<\/p>\n

\u5c3d\u7ba1\u5b58\u5728awscli\u8fd9\u6837\u7684\u5b98\u65b9\u5de5\u5177\uff0c\u4f46\u8fd9\u4e9b\u5de5\u5177\u529f\u80fd\u4e0d\u591f\u5168\u9762\uff0c\u4e8e\u662f\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5de5\u5177\u5e94\u8fd0\u800c\u751f\u3002<\/p>\n

    \n
  1. \n

    cli53\u5b89\u88c5
    \u901a\u8fc7pip\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\uff0c\u6ca1\u6709pip\u7684\u9700\u8981\u5b89\u88c5pip<\/p>\n

    1. pip search cli53<\/span><\/code><\/li><\/ol><\/pre>\n<\/li>\n
    2. \n

      cli53\u7684\u914d\u7f6e
      \u4f7f\u7528\u524d\u9700\u8981\u914d\u7f6e\u6587\u4ef6~\/.boto\u6587\u4ef6\u4e2d\u914d\u7f6eAccess Key ID \u548c Secret Access Key\u6216\u8005\u76f4\u63a5\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u8f93\u51faAWS_ACCESS_KEY_ID\u548c AWS_SECRET_ACCESS_KEY\u3002<\/p>\n

      1. [<\/span>root@HK_CCS <\/span>~]#<\/span> cat <\/span>~\/.<\/span>boto <\/span><\/code><\/li>
      2. [<\/span>Credentials<\/span>]<\/span><\/code><\/li>
      3. aws_access_key_id <\/span>=<\/span> AK1AXXXXXXUAHZZZQS<\/span><\/code><\/li>
      4. aws_secret_access_key <\/span>=<\/span> <\/span>MWHki7ylV2OtBWkCXXXxxx2b<\/span>+<\/span>xyO7SxxxxxxA<\/span><\/code><\/li><\/ol><\/pre>\n<\/li>\n
      5. cli53\u7684\u57fa\u672c\u4f7f\u7528\n
        1. #\u67e5\u770b\u6240\u6709\u6258\u7ba1\u7684\u57df\u540d<\/span><\/code><\/li>
        2. cli53 list<\/span><\/code><\/li>
        3. #\u5bfc\u51fa\u57df\u540d\u8bb0\u5f55\uff08BIND\u683c\u5f0f\uff09<\/span><\/code><\/li>
        4. cli53 <\/span>export<\/span> example<\/span>.<\/span>com<\/span><\/code><\/li>
        5. #\u521b\u5efa\u4e00\u4e2a\u57df\u540d<\/span><\/code><\/li>
        6. cli53 create example<\/span>.<\/span>com <\/span>--<\/span>comment <\/span>'my first zone'<\/span><\/code><\/li>
        7. #\u5bfc\u5165bind\u683c\u5f0f\u7684\u57df\u540d\u8bb0\u5f55<\/span><\/code><\/li>
        8. cli53 <\/span>import<\/span> example<\/span>.<\/span>com <\/span>--<\/span>file zonefile<\/span>.<\/span>txt<\/span><\/code><\/li>
        9. #\u65b0\u5efa\u4e00\u6761\u8bb0\u5f55<\/span><\/code><\/li>
        10. cli53 rrcreate example<\/span>.<\/span>com www A <\/span>192.168<\/span>.<\/span>0.1<\/span> <\/span>--<\/span>ttl <\/span>3600<\/span><\/code><\/li><\/ol><\/pre>\n<\/li>\n<\/ol>\n

          \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aIPCPU-\u7f51\u7edc\u4e4b\u8def<\/a> » \u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177cli53\u7ba1\u7406\u4e9a\u9a6c\u900aroute53\u57df\u540d\u8d44\u6e90<\/a><\/p>","protected":false},"excerpt":{"rendered":"

          \u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177cli53\u7ba1\u7406\u4e9a\u9a6c\u900aaroute53\u57df\u540d\u8d44\u6e90.md \u5c3d\u7ba1\u5b58\u5728awscli\u8fd9\u6837\u7684\u5b98\u65b9\u5de5\u5177\uff0c\u4f46\u8fd9\u4e9b\u5de5\u5177\u529f\u80fd\u4e0d\u591f\u5168\u9762\uff0c\u4e8e\u662f\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5de5\u5177\u5e94\u8fd0\u800c\u751f\u3002 cli53\u5b89\u88c5\u901a\u8fc7pip\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\uff0c\u6ca1\u6709pip\u7684\u9700\u8981\u5b89\u88c5pip pip search cli53 cli53\u7684\u914d\u7f6e\u4f7f\u7528\u524d\u9700\u8981\u914d\u7f6e\u6587\u4ef6~\/.boto\u6587\u4ef6\u4e2d\u914d\u7f6eAccess Key ID \u548c Secret Access Key\u6216\u8005\u76f4\u63a5\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u8f93\u51faAWS_ACCESS_KEY_ID\u548c AWS_SECRET_ACCESS_KEY\u3002 [root@HK_CCS ~]# cat ~\/.boto [Credentials]aws_access_key_id = AK1AXXXXXXUAHZZZQSaws_secret_access_key = MWHki7ylV2OtBWkCXXXxxx2b+xyO7SxxxxxxA cli53\u7684\u57fa\u672c\u4f7f\u7528 #\u67e5\u770b\u6240\u6709\u6258\u7ba1\u7684\u57df\u540dcli53 list#\u5bfc\u51fa\u57df\u540d\u8bb0\u5f55\uff08BIND\u683c\u5f0f\uff09cli53 export example.com#\u521b\u5efa\u4e00\u4e2a\u57df\u540dcli53 create example.com –comment ‘my first zone’#\u5bfc\u5165bind\u683c\u5f0f\u7684\u57df\u540d\u8bb0\u5f55cli53 import example.com –file zonefile.txt#\u65b0\u5efa\u4e00\u6761\u8bb0\u5f55cli53 rrcreate example.com www A 192.168.0.1 –ttl 3600 \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aIPCPU-\u7f51\u7edc\u4e4b\u8def » \u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177cli53\u7ba1\u7406\u4e9a\u9a6c\u900aroute53\u57df\u540d\u8d44\u6e90<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[155,156,157],"_links":{"self":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/407"}],"collection":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/comments?post=407"}],"version-history":[{"count":0,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/407\/revisions"}],"wp:attachment":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/media?parent=407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/categories?post=407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/tags?post=407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}