Extract DNS resolver to interface