Hmmm. Nothing comes to mind about how to do that. All I can suggest is to setup or write your own DNS server that just returns NXDOMAIN for all requests. Although it does seem kind of a bug to not internally fail the DNS lookup if there are no nameservers.
