thomasgassmann / vercel-ddns

Dynamic DNS for Vercel

Home Page:https://github.com/KROSF/vercel-ddns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vercel-ddns

vercel-ddns is a simple command line tool for creating a DNS record for Vercel's Managed DNS service.

Usage

cli

vercel-ddns 0.1.0


USAGE:
    vercel-ddns [OPTIONS] --domain <domain> --subdomain <subdomain> --token <token>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -d, --domain <domain>           [env: VDDNS_DOMAIN=]
    -i, --ip-type <ip-type>         [env: VDDNS_IP_TYPE=]  [default: ipv4]  [possible values: IPV4,
                                   IPV6]
    -s, --subdomain <subdomain>     [env: VDDNS_SUBDOMAIN=]
    -t, --token <token>             [env: VERCEL_TOKEN=]
        --ttl <ttl>                 [env: VDDNS_TTL=]  [default: 3600]

docker

docker run -d \
    -e VERCEL_TOKEN=<YOUR_TOKEN> \
    -e VDDNS_DOMAIN=<example.com> \
    -e VDDNS_SUBDOMAIN=<sample> \
    -e VDDNS_TTL=3600 `#optional` \
    -e VDDNS_IP_TYPE=ipv4 `#optional` \
    -e CRON_SCHEDULE="*/15 * * * *" `#optional` \
    krosf/vercel-ddns:cronjob

docker-compose

version: "3.7"
services:
    ddns:
        image: krosf/vercel-ddns:cronjob
        restart: unless-stopped
        environment:
            - VERCEL_TOKEN=<YOUR_TOKEN>
            - VDDNS_DOMAIN=<example.com>
            - VDDNS_SUBDOMAIN=<sample>
            - VDDNS_TTL=3600 #optional
            - VDDNS_IP_TYPE=ipv4 #optional
            - CRON_SCHEDULE="*/15 * * * *" #optional

Related

Check out lukehsiao/netlify-ddns-rs for a similar client for Netlify.

About

Dynamic DNS for Vercel

https://github.com/KROSF/vercel-ddns

License:MIT License


Languages

Language:Rust 87.3%Language:Dockerfile 9.2%Language:Shell 3.4%