Allow dot in interface name in get_default_host_ip()

When using (vlan)[https://wiki.ubuntu.com/vlan], there may be `.` dot in interface name.