skibish/ddns

TTL support

M96268004 opened this issue · 2 comments

Hi there,

The V2 API supporting TTL value now
https://developers.digitalocean.com/documentation/v2/#domain-records

Would like to know if I want to have TTL, the do.go file should be modified right?

Thanks,

Hi @M96268004 ,

Thanks for noting that TTL is now available!

You are right! You need to add TTL to the Record struct.

ddns/do/do.go

Lines 22 to 27 in e5b7ce5

type Record struct {
ID uint64 `json:"id"`
Type string `yaml:"type" json:"type"`
Name string `yaml:"name" json:"name"`
Data string `json:"data"`
}

After this you will be able to specify it in configuration like this:

records:
  - type: "A"
    name: "www"
    ttl: 1800

Hi @skibish

Well noted and thanks for reply.