From 307d442f3b0f9ba30e2b51cb8295d8686461f3bd Mon Sep 17 00:00:00 2001 From: Lab 8916100448256 Date: Sat, 29 Feb 2020 19:17:08 +0000 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 9c03baa..50df4c8 100644 --- a/README.md +++ b/README.md @@ -33,5 +33,15 @@ This is the script that is called by the cron job. + Then they are compared to DNS records for the configured host and domain. + In case of mismatch Gandi live DNS API is called to update the DNS records +Information logs are written to system log. Exemple : +``` +Feb 29 20:12:02 passerelle root: WAN IPv4 : 1.2.3.4 +Feb 29 20:12:02 passerelle root: WAN IPv6 : 1111:2222:3333:4444:5555:6666:7777:8888 +Feb 29 20:12:02 passerelle root: DNS IPv4 : 1.2.3.4 +Feb 29 20:12:02 passerelle root: DNS IPv6 : 1111:2222:3333:4444:5555:6666:7777:8888 +Feb 29 20:12:02 passerelle root: No need to update IPv4 DNS record for sub.domain.tld +Feb 29 20:12:02 passerelle root: No need to update IPv6 DNS record for sub.domain.tld +``` + This script is based on this sample provided by Gandi on their GitHub : [mywanip.sh](https://github.com/Gandi/api-examples/blob/master/bash/livedns/mywanip.sh)