diff --git a/README.md b/README.md index 6b8edb1..33bf565 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,12 @@ Once the module is fetched, you should be able to compile the program using `go ```bash git clone https://github.com/anaganisk/digitalocean-dynamic-dns-ip.git ``` -create a file ".digitalocean-dynamic-ip.json"(dot prefix to hide the file) and place it user home directory and add the following json +create a file ".digitalocean-dynamic-ip.json" (dot prefix to hide the file) and place it user home directory and add the following json ```json { "apikey": "samplekeydasjkdhaskjdhrwofihsamplekey", - "doPageSize" : 20, + "doPageSize": 20, "useIPv4": true, "useIPv6": false, "allowIPv4InIPv6": false, diff --git a/digitalocean-dynamic-ip.go b/digitalocean-dynamic-ip.go index a567b3d..a1ab236 100644 --- a/digitalocean-dynamic-ip.go +++ b/digitalocean-dynamic-ip.go @@ -217,10 +217,10 @@ func UpdateRecords(domain Domain, ipv4, ipv6 net.IP) { doRecords := GetDomainRecords(domain.Domain) // look for the item to update if len(doRecords) < 1 { - log.Printf("%s: No DNS records found in Digital Ocean", domain.Domain) + log.Printf("%s: No DNS records found in DigitalOcean", domain.Domain) return } - log.Printf("%s: %d DNS records found in Digital Ocean", domain.Domain, len(doRecords)) + log.Printf("%s: %d DNS records found in DigitalOcean", domain.Domain, len(doRecords)) for _, toUpdateRecord := range domain.Records { if toUpdateRecord.Type != "A" && toUpdateRecord.Type != "AAAA" { log.Printf("%s: Unsupported type (Only A and AAAA records supported) for updates %+v", domain.Domain, toUpdateRecord) @@ -338,7 +338,7 @@ func main() { config = GetConfig() currentIPv4, currentIPv6 := CheckLocalIPs() if currentIPv4 == nil && currentIPv6 == nil { - log.Fatal("current IP addresses are not a valid, or both are disabled in the config. Check you configuration and internet connection") + log.Fatal("Current IP addresses are not valid, or both are disabled in the config. Check your configuration and internet connection.") } for _, domain := range config.Domains { log.Printf("%s: START", domain.Domain)