preview: test
    dnscontrol preview --cmode all

build: preview

push:
    dnscontrol push --cmode all

notify:
    #!/usr/bin/env fish
    set servers 2607:7c80:54:6::53 2602:fe55:5::5
    set domains alanpearce.eu alin.ovh searchix.ovh
    for domain in $domains
      for ns in $servers
          pdns_notify $ns $domain
      end
    end

run: push

test:
    dnscontrol check

ci: test

cd: push

update:
    lon update

update-types:
    update-types

@get-ssh-host-key hostname:
    ssh-keyscan -q -D "{{ hostname }}" | \
        awk '{ printf "{ algo: %d, type: %d, fingerprint: \"%s\" },\n", $4, $5, $6 }'
