digitalocean dns-functions updated

Uses everything behind the first period as a domainname, in stead of statically using the last 2 dot-separated strings.