IP subnet mask and DNS difference