Small, less complex protocols are inherently less likely to be insecure all things being equal, simply due to reduced attack surface.
DNS was created for a different environment, at a time when security wasn't at forefront so it's not a good example of the opposite.