fix dns endpoint resolver

fix dns endpoint resolver