Skip to content

Instantly share code, notes, and snippets.

@miekg
Created August 3, 2019 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miekg/993dcbde700dc3a9844e7e783f189059 to your computer and use it in GitHub Desktop.
Save miekg/993dcbde700dc3a9844e7e783f189059 to your computer and use it in GitHub Desktop.
Force resigning with CoreDNS
# Force resigning
$ rm /var/lib/coredns/db.miek.nl.signed
[ERROR] plugin/file: Failed to open zone "miek.nl." in "/var/lib/coredns/db.miek.nl.signed": open /var/lib/coredns/db.miek.nl.signed: no such file or directory
$ kill -SIGUSR1 $(pidof coredns)
[INFO] SIGUSR1: Reloading
[INFO] Reloading
[WARNING] plugin/file: Failed to open "open /var/lib/coredns/db.miek.nl.signed: no such file or directory": trying again in 1m0s
[INFO] Reloading complete
[INFO] plugin/sign: Successfully signed zone "miek.nl." in "/var/lib/coredns/db.miek.nl.signed" with key tags "33694" and 1564822775 SOA serial, elapsed 211.445314ms, next: 2019-08-03T13:59:35.150Z
[INFO] plugin/file: Successfully reloaded zone "miek.nl." in "/var/lib/coredns/db.miek.nl.signed" with serial 1564822775
[INFO] plugin/file: Sent notify for zone "miek.nl." to "37.97.149.87:53"
[INFO] plugin/file: Sent notify for zone "miek.nl." to "185.49.140.62:53"
[INFO] plugin/file: Outgoing transfer of 56 records of zone miek.nl. to 185.49.140.62 started with 1564822775 SOA serial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment