change how IP is set and how dns records are set (blatantly stealing bits from @stgraber)