From 3fa033c1a9317b476cb7bc597d053af2536a5318 Mon Sep 17 00:00:00 2001 From: Florent Guiotte Date: Wed, 12 Apr 2023 16:18:56 +0200 Subject: [PATCH] Update local zone DNS with guiotte.fr --- .gitattributes | 1 + README.md | 9 +++++ bind9/guiotte.db | 20 +++++++++++ bind9/named.conf | 5 +++ ddclient/ddclient.conf | Bin 0 -> 162 bytes docker-compose.yml | 74 ++++++++++++++++++++++++----------------- 6 files changed, 78 insertions(+), 31 deletions(-) create mode 100644 bind9/guiotte.db create mode 100644 ddclient/ddclient.conf diff --git a/.gitattributes b/.gitattributes index 6c14b67..e1f0efc 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,5 @@ ovh.ini filter=git-crypt diff=git-crypt syncthing/config.xml filter=git-crypt diff=git-crypt +ddclient/ddclient.conf filter=git-crypt diff=git-crypt *.pem filter=git-crypt diff=git-crypt *.env filter=git-crypt diff=git-crypt diff --git a/README.md b/README.md index 21735e1..f95eb04 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,15 @@ Once DNS are properly setup on host: - Socket: `/config/.local/share/rtorrent/rtorrent.sock` +## Create a new service + +1. Add the service in `docker-compose.yml` +2. Create the DynHost +3. Add the host in the DDclient configuration `./ddclient/ddclient.conf` +4. Add the nginx proxy configuration in `./swag/nginx/proxy-confs/` +5. Update the local zone in `./bind9/guiotte.db` +6. Restart `bind9` and `swag`: `dcc restart bind9 swag` + ## Logs 2022-11-02 Created OVH token diff --git a/bind9/guiotte.db b/bind9/guiotte.db new file mode 100644 index 0000000..d0aec4c --- /dev/null +++ b/bind9/guiotte.db @@ -0,0 +1,20 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA dm.guiotte.fr. root.localhost. ( + 39 + 604800 + 86400 + 2419200 + 604800 ) +; +@ IN NS dm.guiotte.fr. + +; OVH +guiotte.fr. IN A 37.59.61.141 +*.guiotte.fr. IN CNAME guiotte.fr. + +; LAN +dm.guiotte.fr. IN A 192.168.1.2 +money.guiotte.fr. IN CNAME dm.guiotte.fr. diff --git a/bind9/named.conf b/bind9/named.conf index 5f3902c..db50a4d 100644 --- a/bind9/named.conf +++ b/bind9/named.conf @@ -59,3 +59,8 @@ zone "lan" { type master; file "/etc/bind/lan.db"; }; + +zone "guiotte.fr" { + type master; + file "/etc/bind/guiotte.db"; +}; diff --git a/ddclient/ddclient.conf b/ddclient/ddclient.conf new file mode 100644 index 0000000000000000000000000000000000000000..5a0a079bd488e7bd8d891c039e67f11d6b540f22 GIT binary patch literal 162 zcmV;T0A2q8M@dveQdv+`0G1=5`(tcF6Rguyq?T1uW(tVLp+hr8C4D}vO2_{j88@yT z4L@806=3finULI~qjaSTBecpAioJU&Q@#nROu-~uRjuq3I@WO1$KnBNSWa^^HJ~wq z