Skip to content

Commit

Permalink
[#4] ddns wip
Browse files Browse the repository at this point in the history
- ddns conf
  • Loading branch information
horia committed May 21, 2019
1 parent 95d22d9 commit 8dc2984
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 43 deletions.
15 changes: 0 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ EGRESS = vio0

MASTER = yes
DOMAIN_NAME = example.com
DDNS_NAME = ddns

MASTER_HOST = dot
MASTER_IPv4 = 203.0.113.3
Expand Down Expand Up @@ -120,10 +119,6 @@ PKG = powerdns \
SYSCONF += ${BASESYSCONFDIR:S|^/||}/weekly.local
.endif

.if !empty(DDNS_NAME)
NSDCONF += ${VARBASE:S|^/||}/nsd/etc/nsd.conf.zone.${DDNS_NAME}.${DOMAIN_NAME}
.endif

.if defined(UPGRADE) && ${UPGRADE} == "yes"
upgrade: config .WAIT ${DITHEMATIC}
@echo Upgrade
Expand All @@ -145,11 +140,6 @@ config:
-e 's|203.0.113.4|${SLAVE_IPv4}|g' \
-e 's|2001:0db8::4|${SLAVE_IPv6}|g' \
{} +
.if !empty(DDNS_NAME)
find ${WRKSRC} -type f -exec sed -i \
-e 's|ddns|${DDNS_NAME}|g' \
{} +
.endif
.if ${MASTER} != "yes"
sed -i \
-e 's|^master=yes|#master=yes|' \
Expand All @@ -174,13 +164,8 @@ config:
@echo Super-Master
.endif
.for _NSDCONF in ${NSDCONF:N*nsd.conf:N*.PowerDNS}
. if !empty(DDNS_NAME)
cp -p ${_NSDCONF:S|${DOMAIN_NAME}|example.com|:S|${DDNS_NAME}|ddns|:S|^|${WRKSRC}/|} \
${_NSDCONF:S|^|${WRKSRC}/|}
. else
cp -p ${_NSDCONF:S|${DOMAIN_NAME}|example.com|:S|^|${WRKSRC}/|} \
${_NSDCONF:S|^|${WRKSRC}/|}
. endif
.endfor
@echo Configured

Expand Down
1 change: 0 additions & 1 deletion src/var/nsd/etc/nsd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ remote-control:
control-cert-file: /var/nsd/etc/nsd_control.pem

#include: /var/nsd/etc/nsd.conf.zone.example.com
#include: /var/nsd/etc/nsd.conf.zone.ddns.example.com

27 changes: 0 additions & 27 deletions src/var/nsd/etc/nsd.conf.zone.ddns.example.com

This file was deleted.

0 comments on commit 8dc2984

Please sign in to comment.