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)