def AAAA(host, nameserver=None):
 dig = ['dig', '+short', str(host), 'AAAA']
 if (nameserver is not None):
  dig.append('@{0}'.format(nameserver))
 cmd = __salt__['cmd.run_all'](dig, python_shell=False)
 if (cmd['retcode'] != 0):
  log.warning("dig returned exit code '{0}'. Returning empty list as fallback.".format(cmd['retcode']))
  return []
 return [x for x in cmd['stdout'].split('\n') if check_ip(x)]

def AAAA ( host , nameserver = None ) : dig = [ 'dig' , '+short' , str ( host ) , 'AAAA' ] if ( nameserver is not None ) : dig . append ( '@{0}' . format ( nameserver ) ) cmd = __salt__ [ 'cmd.run_all' ] ( dig , python_shell = False ) if ( cmd [ 'retcode' ] != 0 ) : log . warning ( "dig returned exit code '{0}'. Returning empty list as fallback." . format ( cmd [ 'retcode' ] ) ) return [ ] return [ x for x in cmd [ 'stdout' ] . split ( '\n' ) if check_ip ( x ) ]
return the aaaa record for host .