fix dns endpoint resolver