Created
August 1, 2018 15:27
-
-
Save zeha/7e80fd73b92dbf0dbed9f1b42118df15 to your computer and use it in GitHub Desktop.
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
function load_rootkeys() | |
root_key_path = "/usr/share/dns/root.ds" | |
print("LUA: Loading DNSSEC root keys from " .. root_key_path) | |
-- . IN DS 19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5 | |
for line in io.lines(root_key_path) do | |
ds = string.match(line, "^%.%s+IN%s+DS%s+(%d+%s+%d+%s+%d+%s+%S+)") | |
if ds then | |
print("LUA: Adding DS: " .. ds) | |
addDS(".", ds) | |
end | |
end | |
end | |
load_rootkeys() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TODO (thanks @Habbie @rgacogne):