replace dot by dash in IP address