Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-04-12 00:25:12 -05:00
parent c81b8f8ac6
commit 2a80f90f38
3 changed files with 16 additions and 1 deletions

View File

@ -1,9 +1,19 @@
all: bastion:
./go-nsupdate \
--tsig-algorithm=hmac-sha512 \
--tsig-secret="+jmA1sPgduPR3X7wBn16KsOD3XZQYkPOHXzr4+8IvNvQATO5FfoxinHXJLloWABN+5n56F5Fuvf41+D/RL89UA==" \
-i enp1s0f3 bastion.lab.wit.org
hpdevone:
./go-nsupdate \ ./go-nsupdate \
--tsig-algorithm=hmac-sha512 \ --tsig-algorithm=hmac-sha512 \
--tsig-secret="uf7tVM0ePWiSl0HtLNJVP7/DH/WuNkugxS19uXfN+k9V+avixXg/fmIS31FjR/kscvgMmkS+sspB83WjYXGU+w==" \ --tsig-secret="uf7tVM0ePWiSl0HtLNJVP7/DH/WuNkugxS19uXfN+k9V+avixXg/fmIS31FjR/kscvgMmkS+sspB83WjYXGU+w==" \
-i wlo1 hpdevone.lab.wit.org -i wlo1 hpdevone.lab.wit.org
setdate:
# apt install ntpdate
ntpdate pool.ntp.org
check: check:
./go-nsupdate \ ./go-nsupdate \
--tsig-algorithm=hmac-sha512 \ --tsig-algorithm=hmac-sha512 \
@ -11,4 +21,5 @@ check:
-i wlo1 check.lab.wit.com -i wlo1 check.lab.wit.com
make-keys: make-keys:
tsig-keygen -a hmac-sha512 bastion.lab.wit.org
sudo tsig-keygen -a hmac-sha512 hpdevone.lab.wit.org sudo tsig-keygen -a hmac-sha512 hpdevone.lab.wit.org

BIN
go-nsupdate Executable file

Binary file not shown.

4
mykey Normal file
View File

@ -0,0 +1,4 @@
key "hpdevone.lab.wit.org" {
algorithm hmac-sha512;
secret "uf7tVM0ePWiSl0HtLNJVP7/DH/WuNkugxS19uXfN+k9V+avixXg/fmIS31FjR/kscvgMmkS+sspB83WjYXGU+w==";
};