def _add_dns_records(self, conf, mgmts):
nets = conf['<STR_LIT>']<EOL>dns_mgmt = mgmts[-<NUM_LIT:1>]<EOL>LOGGER.debug('<STR_LIT>', dns_mgmt)<EOL>forward = conf['<STR_LIT>'][dns_mgmt].get('<STR_LIT>')<EOL>dns_records = {}<EOL>for net_name, net_spec in nets.items():<EOL><INDENT>dns_records.update(net_spec['<STR_LIT>'].copy())<EOL>if net_name not in mgmts:<EOL><INDENT>net_spec['<STR_LIT>'] = forward<EOL><DEDENT><DEDENT>for mgmt in mgmts:<EOL><INDENT>if nets[mgmt].get('<STR_LIT>'):<EOL><INDENT>nets[mgmt]['<STR_LIT>'].update(dns_records)<EOL><DEDENT>else:<EOL><INDENT>nets[mgmt]['<STR_LIT>'] = dns_records<EOL><DEDENT><DEDENT>
Add DNS records dict('dns_records') to ``conf`` for each
management network. Add DNS forwarder IP('dns_forward') for each none
management network.


Args:
    conf(spec): spec
    mgmts(list): management networks names

Returns:
    None