Update README.md

This commit is contained in:
Lab 8916100448256 2020-02-29 19:17:08 +00:00
parent f3311b7e69
commit 307d442f3b

View file

@ -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. + 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 + 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) 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)