change init() to a normal function so it doesn't get called even when DNS discovery is not enabled