Add support for overriding DNS resolution for WPT
rdar://82927182
Pull request: https://github.com/WebKit/WebKit/pull/17351