Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Knot Nameserver #65

Merged
merged 7 commits into from
Jan 24, 2024
Merged

Use Knot Nameserver #65

merged 7 commits into from
Jan 24, 2024

Conversation

nils-wisiol
Copy link
Contributor

No description provided.

@nils-wisiol
Copy link
Contributor Author

Integration of knot and replicator is ready for review. What's still missing is proper configuration of the public interfaces of knot (including bootstrapping zones).

@peterthomassen
Copy link
Member

peterthomassen commented Jan 12, 2024

Planning to deploy at ns2.desec.org. While support for draft-ietf-dnsop-dnssec-bootstrapping is missing in Knot DNS, _signal.ns2.desec.org will be handled by ns1.desec.io. To prepare, the following commands are needed on each ns1 POP:

docker-compose exec --env DESEC_NS_NAME=ns2.desec.org ns su pdns -s /bin/bash -c /usr/bin/local/signaling_domain_zone.sh \
    && docker-compose exec ns pdnsutil replace-rrset _signal.ns2.desec.org "@" NS 3600 "ns1.desec.io" \
    && docker-compose stop ns && docker-compose up -d

Also, on each ns2 POP (to prevent ns2 from answering with its DNSKEY):

docker-compose exec ns pdnsutil delete-zone _signal.ns2.desec.org \
    && sed -i 's/^DESEC_NS_SIGNALING_DOMAIN_ZONE_PRIVATE_KEY_B64=.*/DESEC_NS_SIGNALING_DOMAIN_ZONE_PRIVATE_KEY_B64=/g' .env
    && docker-compose stop ns && docker-compose up -d

@peterthomassen
Copy link
Member

Migration from PowerDNS (assuming that the _data dir of an existing Knot volume is in ~/data.tar.bz2):

# Clean up old installation
cd desec-ns && docker-compose down && docker ps -aq | xargs docker rm -f && docker volume rm desec-ns_ns && docker network ls && docker volume ls

# Build, run & sync
git pull && git checkout 20231228_knot && docker-compose build && docker-compose up -d ns && docker-compose down
cd /var/lib/docker/volumes/desec-ns_ns && rm -rf _data && tar xvjf ~/data.tar.bz2 && ls -l
cd ~/desec-ns && docker-compose up -d && tail -f /var/log/syslog

# If all works, clean up
rm ~/data.tar.bz2 && exit

@peterthomassen peterthomassen marked this pull request as ready for review January 18, 2024 17:08
@peterthomassen peterthomassen self-requested a review January 18, 2024 17:09
@peterthomassen
Copy link
Member

@nils-wisiol These commits are Kraut und Rüben, but may be useful individually for understanding why any specific line is there. Let me know if you prefer it squashed.

Copy link
Contributor Author

@nils-wisiol nils-wisiol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay, looks good to me! Formal approval is required by @peterthomassen

@peterthomassen peterthomassen merged commit 0f9c47b into main Jan 24, 2024
1 check passed
@peterthomassen peterthomassen deleted the 20231228_knot branch January 24, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants