feat: add VPN DNS service with dynamic service catalog resolution and CoreDNS integration
Add ServiceDNSRecord type and gateway API endpoint to expose active service domain-to-IP mappings. Implement ListServiceDNSRecords repository method querying services table with proxy_ip resolution using effectiveAccessProxyIP helper. Add vpn-dns microservice built on CoreDNS with periodic sync from backend API. Generate Corefile with configurable upstream DNS servers and hosts plugin for service overrides.
This commit is contained in:
11
deploy/vpn-dns/Dockerfile
Normal file
11
deploy/vpn-dns/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM golang:1.23-alpine AS builder
|
||||
|
||||
WORKDIR /src
|
||||
COPY vpn-dns/go.mod ./
|
||||
COPY vpn-dns/main.go ./
|
||||
RUN go build -o /out/nexavpn-vpn-dns ./main.go
|
||||
|
||||
FROM coredns/coredns:1.11.3
|
||||
|
||||
COPY --from=builder /out/nexavpn-vpn-dns /usr/local/bin/nexavpn-vpn-dns
|
||||
ENTRYPOINT ["/usr/local/bin/nexavpn-vpn-dns"]
|
||||
Reference in New Issue
Block a user