Last active
June 4, 2017 22:44
-
-
Save stefan2904/adea97ec3fec916156488787a679b6c9 to your computer and use it in GitHub Desktop.
Sign a DNS zone using ldns and nsd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ldns-dane create tightest.eu 443 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export ZSK=`ldns-keygen -a ECDSAP256SHA256 tightest.eu` | |
| export KSK=`ldns-keygen -k -a ECDSAP256SHA256 tightest.eu` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ZSK="" | |
| # KSK="" | |
| echo "signing zone tightest.eu" ... | |
| ldns-signzone -n -p -s $(head -n 1000 /dev/random | sha1sum | cut -b 1-16) tightest.eu.zone $ZSK $KSK | |
| echo "reloading zone tightest.eu ..." | |
| nsd-control reload tightest.eu | |
| echo "done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment