Adapt NamingAndResolverAffix to advertisepipe's be5d7936382d75908bfe42dd65b55d57f6320fb0, and make sure that `resolve_identifier` and `gethostbyname` raise the correct exceptions.