-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: DNS backend #876
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
Open
iyashnov
wants to merge
24
commits into
dev
Choose a base branch
from
refactor_dns_backend
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
04344ad
add: add PowerDNS authoritative and recursor services with Docker sup…
iyashnov 1103484
refactor: update DNS service adapter and router for improved zone man…
iyashnov ab47183
refactor: add PDNS_API_KEY to local environment configuration
iyashnov b574f0d
refactor: restructure DNS module with PowerDNS integration and enhanc…
iyashnov beab9b9
refactor: update DNS settings and add PowerDNS client support
iyashnov 933df99
refactor: enhance DNS management with PowerDNS integration and DTO up…
iyashnov 4defc82
refactor: remove SelfHostedDNSManager class and associated methods
iyashnov 7caa9e6
refactor: remove unused DNS entrypoint script and zone templates
iyashnov be08bf9
refactor: remove obsolete bind9 Dockerfile
iyashnov 379d17a
refactor: remove SelfHostedDNSManager import and clean up exception h…
iyashnov 94b5d67
refactor: update DNS adapter and use cases for improved zone manageme…
iyashnov 53f214a
test: update DNS DTOs and improve test cases for DNS record and zone …
iyashnov bf3964d
refactor: implement get_zones method in StubDNSManager to return an e…
iyashnov ba6ff12
refactor: add DEFAULT_NAMESERVER and PDNS_API_KEY to md-test service …
iyashnov cf84397
refactor: remove SelfHostedDNSManager from exports in DNS module
iyashnov a53bc0d
refactor: update DNS error handling to use DNSError for consistency
iyashnov 9d79ce8
refactor: fix codestyle and naming
iyashnov 0f4f8ec
refactor: simplify client selection logic by introducing _get_client_…
iyashnov 6af8c05
refactor: simplify client selection logic in _get_client_by_zone_kind…
iyashnov cba99d8
refactor: improve code readability by simplifying select statement an…
iyashnov 50f50d2
refactor: enhance DNS error handling by adding DNSRecordGetError and …
iyashnov 03f8def
refactor: add missing line breaks for improved readability in DNS exc…
iyashnov 7385dd1
refactor: rename bind9 to pdns_auth and update related configurations…
iyashnov 20fdede
fix: codestyle
iyashnov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| FROM alpine:3.20 AS builder | ||
|
|
||
| RUN apk add --no-cache --virtual .build-deps \ | ||
| build-base \ | ||
| lmdb-dev \ | ||
| openssl-dev \ | ||
| boost-dev \ | ||
| autoconf automake libtool \ | ||
| git ragel bison flex \ | ||
| lua5.4-dev \ | ||
| curl-dev | ||
|
|
||
| RUN apk add --no-cache \ | ||
| lua \ | ||
| lua-dev \ | ||
| lmdb \ | ||
| boost-libs \ | ||
| openssl-libs-static \ | ||
| curl \ | ||
| libstdc++ | ||
|
|
||
| RUN git clone https://github.com/PowerDNS/pdns.git /pdns | ||
| WORKDIR /pdns | ||
|
|
||
| RUN git submodule init &&\ | ||
| git submodule update &&\ | ||
| git checkout auth-5.0.1 | ||
|
|
||
| RUN autoreconf -vi | ||
|
|
||
| RUN mkdir /build && \ | ||
| ./configure \ | ||
| --sysconfdir=/etc/powerdns \ | ||
| --enable-option-checking=fatal \ | ||
| --with-dynmodules='lmdb' \ | ||
| --with-modules='' \ | ||
| --with-unixodbc-lib=/usr/lib/$(dpkg-architecture -q DEB_BUILD_GNU_TYPE) && \ | ||
| make clean && \ | ||
| make $MAKEFLAGS -C ext &&\ | ||
| make $MAKEFLAGS -C modules &&\ | ||
| make $MAKEFLAGS -C pdns && \ | ||
| make -C pdns install DESTDIR=/build &&\ | ||
| make -C modules install DESTDIR=/build &&\ | ||
| make clean && \ | ||
| strip /build/usr/local/bin/* /build/usr/local/sbin/* /build/usr/local/lib/pdns/*.so | ||
|
|
||
| # ==================================================================================================== | ||
|
|
||
| FROM alpine:3.20 AS runtime | ||
|
|
||
| COPY --from=builder /build / | ||
|
|
||
| RUN apk add --no-cache \ | ||
| lua \ | ||
| lua-dev \ | ||
| lmdb \ | ||
| boost-libs \ | ||
| openssl-libs-static \ | ||
| curl \ | ||
| libstdc++ | ||
|
|
||
| RUN mkdir -p /etc/powerdns/pdns.d /var/run/pdns /var/lib/powerdns /etc/powerdns/templates.d /var/lib/pdns-lmdb | ||
|
|
||
| COPY ./pdns.conf /etc/powerdns/pdns.conf | ||
|
|
||
| EXPOSE 8082/tcp | ||
|
|
||
| CMD ["/usr/local/sbin/pdns_server"] |
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.