Introduce name resolution interface and named socket opener.