Alow dns name or ip for fabric

it supports ips and dns names