added DNS support from remedy and checking of valid IP masks.