Add function to resolve the name server name to an IP if the argument provided is a nameserver name instead of IP