@penguinpages
i poked around a bit and tried to figure this out. still not clear at all what to do to enable TSIG for DNS and then enable local subnets to update DDNS and DHCP also to make updates.
So far I think I have tried a few dozen ways to change.. and if you don't use GUI.. any GUI change just overwrites. So here is what I have so far
Step 6: BIND DNS
Create TSIG vi command line
[2.7.2-RELEASE][admin@rt1.core.penguinpages.net]/root: tsig-keygen -a hmac-sha256 ddns-update
key "ddns-update" {
algorithm hmac-sha256;
secret "wn6G9qxOZhDpfn+SUUeEX<snip>k51Tc=";
};
Copy output stanza and paste in : service -> bind -> Settings -> advanced -> Custom Options: <paste key standza in box>
Validate service restarted
Now check if DDNS update via remote host will work
export BIND_SERVER=172.16.100.1
export CERTBOT_DOMAIN=shuffleboard01.core.acme.net
export CERTBOT_TOKEN="example-token-12345" # Replace with actual Certbot token
echo 'key "ddns-update" {
algorithm hmac-sha256;
secret "wn6G9qxOZhDpfn+SUUeEX<snip>k51Tc=";
};' > /tmp/ddns-update.key
chmod 600 /tmp/ddns-update.key
nsupdate -k /tmp/ddns-update.key <<EOF
server $BIND_SERVER
zone $CERTBOT_DOMAIN
update add _acme-challenge.$CERTBOT_DOMAIN 300 IN TXT "$CERTBOT_TOKEN"
send
EOF
update failed: NOTAUTH
Baseline that use to work before update TSIG then after.. I can do updates and not pass key so.. meh.. its not working
nsupdate <<EOF
server 172.16.100.1
zone core.acme.net
update add _acme-challenge.shuffleboard01.core.acme.net. 300 IN TXT 12345
send
EOF
dig -t TXT _acme-challenge.shuffleboard01.core.acme.net. @172.16.100.1
nsupdate -k ddns-update.key <<EOF
server 172.16.100.1
zone core.acme.net
update add _acme-challenge.shuffleboard01.core.acme.net. 300 IN TXT 12221
send
EOF
dig -t TXT _acme-challenge.shuffleboard01.core.acme.net. @172.16.100.1
<snip>
_acme-challenge.shuffleboard01.core.acme.net. 300 IN TXT "12221"
_acme-challenge.shuffleboard01.core.acme.net. 300 IN TXT "111111"
_acme-challenge.shuffleboard01.core.acme.net. 300 IN TXT "43441"
_acme-challenge.shuffleboard01.core.acme.net. 300 IN TXT "12345"
so that TSIG stanza posted in Advanced -> Global Settings. Is being ignored.