not sure if it really matters but it lets you match the CNAME and the primary name, so if hostname is 'foobar' and you put additionals as 'foobar' it takes it with no issues
That was one place where there isn't much error checking. You can also put the same name in for the cname over and over (foobar, foobar, foobar). And when it does a check for uniqueness of the cnames, it doesn't break the string apart to see if there is duplicates. It just checks the whole string. I guess it wouldn't be hard to see if the name is the cnames field. Trying to avoid implementing the cnames check though
Let me know what you find about the segfaulting and I will try to fix that.