dns resource - should only allow either CNAME or A/AAAA record

Currently, you can have a CNAME and a A/AAAA record, which does not work. It should only be allowed to have either a CNAME or A/AAAA record