/alidns-updater

A service to update alidns

Primary LanguageRust

alidns-updater

A service to update alidns

Usage

Setup

docker-compose

API

  • Get all DNS records: GET /dns
    curl http://127.0.0.1:8080/dns
  • Get single DNS record: GET /dns/:rr
    # get the aaa.<your-domain>
    curl http://127.0.0.1:8080/dns/aaa
  • Add or Replace single recored: POST /dns/:rr with ip=xxx in body or query.
    # set the aaa.<your-domain> = 1.2.3.4
    curl -X POST http://127.0.0.1:8080/dns/aaa?ip=1.2.3.4
    curl -X POST http://127.0.0.1:8080/dns/aaa -d '{"ip": "1.2.3.4"}'