Looking up a local domain name without specifying the local DNS server

binddns

I've set up a local domain name by creating a zone (by following the steps in this tutorial).

Why I look the domain using dig, I get the right results when using the following command:

dig debian.lan @localhost

But when I don't add the DNS address, it doesn't return an answer. How can I solve this problem?

dig debian.lan

Best Answer

You need to configure the nameserver in /etc/resolv.conf or whichever tool generates this file.

Related Question