Added restrictions InetAddress.get(All)ByNameOnNet

Refs #1757