2024-12-11 11:24:18 +01:00
|
|
|
# This makefile provides a few examples of dnsmanagerctl.
|
2024-12-02 17:14:54 +01:00
|
|
|
# For a more thorough documentation, read the manual.
|
|
|
|
|
|
|
|
# For requests where authentication is required.
|
|
|
|
LOGIN ?=
|
|
|
|
ifeq ($(LOGIN),)
|
|
|
|
LOGIN_OPT =
|
|
|
|
else
|
|
|
|
LOGIN_OPT = -l $(LOGIN)
|
|
|
|
endif
|
|
|
|
|
|
|
|
DOMAIN ?= example.com
|
|
|
|
zone-file: build-write-zone-file; $(Q)$(LOC)write-zone-file $(DOMAIN)
|
|
|
|
zone-basic-template-file: build-write-template-zone-file; $(Q)$(LOC)write-template-zone-file $(DOMAIN)
|
|
|
|
|
|
|
|
VERBOSITY ?= 4
|
2024-12-11 11:24:18 +01:00
|
|
|
run-client-verbosity:; $(Q)$(LOC)dnsmanagerctl admin maintenance verbosity $(VERBOSITY) $(LOGIN_OPT)
|
|
|
|
run-client-domain-add:; $(Q)$(LOC)dnsmanagerctl user domain add $(DOMAIN) $(LOGIN_OPT)
|
|
|
|
run-client-domain-del:; $(Q)$(LOC)dnsmanagerctl user domain del $(DOMAIN) $(LOGIN_OPT)
|
|
|
|
run-client-domain-list:; $(Q)$(LOC)dnsmanagerctl user domain list $(LOGIN_OPT)
|
|
|
|
run-client-zone-add:; $(Q)$(LOC)dnsmanagerctl user zone add $(DOMAIN).json $(LOGIN_OPT)
|
|
|
|
run-client-zone-get:; $(Q)$(LOC)dnsmanagerctl user zone get $(DOMAIN) $(LOGIN_OPT)
|
2024-12-02 17:14:54 +01:00
|
|
|
|
|
|
|
RRID ?= 1
|
|
|
|
NAME ?=
|
|
|
|
TTL ?= 3600
|
|
|
|
TARGET ?=
|
|
|
|
run-client-rr-add-a:
|
2024-12-11 11:24:18 +01:00
|
|
|
$(Q)$(LOC)dnsmanagerctl user rr add A $(DOMAIN) $(NAME) $(TTL) $(TARGET) $(LOGIN_OPT)
|
2024-12-02 17:14:54 +01:00
|
|
|
run-client-rr-update-a:
|
2024-12-11 11:24:18 +01:00
|
|
|
$(Q)$(LOC)dnsmanagerctl user rr update A $(DOMAIN) $(RRID) $(NAME) $(TTL) $(TARGET) $(LOGIN_OPT)
|
|
|
|
run-client-rr-del:; $(Q)$(LOC)dnsmanagerctl user rr del $(DOMAIN) $(RRID) $(LOGIN_OPT)
|
|
|
|
run-client-genzones:; $(Q)$(LOC)dnsmanagerctl admin genall $(LOGIN_OPT)
|