127.0.0.1 localhost #if $getVar("system_name","") != "" #set $ikeys = $interfaces.keys() #for $iface in $ikeys #set $idata = $interfaces[$iface] #if $idata["interface_type"].lower() in ["","na","bridge","bond"] $idata["ip_address"] #set $my_interface_hostname_short = $idata["dns_name"].split('.',1)[:1][0] $idata["dns_name"].lower() $my_interface_hostname_short.lower() #end if #end for #end if