Indenting looks a bit odd. Additionally it would be great if you also added the dns_secondary if present, but I consider that optional.