[ASUS] RT-AC1900P2017. 7. 9. 13:36

[RT-1900P] ASUS DDNS Cloudflare 설정


참고 사이트 : https://github.com/RMerl/asuswrt-merlin/wiki/DDNS-Sample-Scripts



Zone ID 확인하기

https://www.cloudflare.com/a/overview




API Key 확인하기

https://www.cloudflare.com/a/account/my-account




{{Zone ID}} : 위에서 조회한 Zone ID

{{Domain Name}} : Cloudeflare 에 등록된 도메인 (DDNS 설정할 도메인)

{{USER ID}} : Cloudeflare 계정

{{API Key}} : 위에서 조회한 API Key


chule@RT-AC1900P:/tmp/home/root# curl -X GET "https://api.cloudflare.com/client/v4/zones/{{Zone ID}}/dns_records

?name={{Domain Name}}" \

>  -H "Content-Type: application/json" \

>  -H "X-Auth-Email: {{USER ID}}" \

>  -H "X-Auth-Key: {{API Key}}"

{"result":[{"id":"66f1cad3540675f6f53e6aXXXXXXXXXX","type":"A","name":"sub.chule.kr","content":"127.0.0.1","proxiable":false,"proxied":false,"ttl":120,"locked":false,"zone_id":"Zone Id","zone_name":"chule.kr","modified_on":"2017-07-09T03:15:02.452773Z","created_on":"2017-07-09T03:15:02.452773Z","meta":{"auto_added":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}


chule@RT-AC1900P:/tmp/home/root# nano /jffs/scripts/ddns-start



chule@RT-AC1900P:/tmp/home/root# chmod 755 /jffs/scripts/ddns-start





ASUS 공유기 설정에서 DDNS 설정


Posted by ChulE