func getHostName(dnsName string) string {
	if dnsName == "" {
		return ""
	}
	fields := strings.Split(dnsName, ".")
	return fields[0]
}
getHostName return the hostname from the fqdn
package vip
import (
	"fmt"
	"net"
	"strings"
	"syscall"
	"github.com/pkg/errors"
	"github.com/vishvananda/netlink"
)
func lookupHost(dnsName string) (string, error) {
	addrs, err := net.LookupHost(dnsName)
	if err != nil {
		return "", err
	}
	if len(addrs) == 0 {
		return "", errors.Errorf("empty address for %s", dnsName)
	}
	return addrs[0], nil
}
func IsIP(address string) bool {
	ip := net.ParseIP(address)
	return ip != nil
}