Techniques for conditional name resolution and configuration are provided. Calls made by applications to resolve hostnames through name resolution services are intercepted and processed unbeknownst to the applications. The calls are inspected for hostnames and the hostnames are lookup in a policy store for IP addresses. The IP addresses are supplied back to the applications as if IP addresses were provided by the name resolution services.