Dig resolves a domain, but all other programs fail to find it
Found it, it was a misconfiguration issue.

An old pow config file stayed in /etc/resolver, forcing the nameserver to be 127.0.0.1 for this domain.