script for checking ip adddress for sanity