Results 1 to 1 of 1

Thread: DNS time out, but only on localhost

  1. #1
    Join Date
    Nov 2015

    DNS time out, but only on localhost

    I configure bind9 and it was working for fine for years. Recently, we changed ISP so I updated the forwarders. I believe all that changed were the forwarders, but now the DNS times out when using nslookup from the server itself.

    root@server1:/etc/bind# nslookup
    ;; connection timed out; no servers could be reached
    It works fine when running the same command from another client on the LAN.

    $ nslookup
    Non-authoritative answer:
    Server:  UnKnown
    Addresses:  2607:f8b0:4009:819::200e
    What could be blocking access from localhost?


    Here is my named.conf.options. Notice that is has allow-query set.

    // Allow the following to query the DNS.
    acl goodclients {
            localhost;      // This host.
            localnets;      // All hosts on the LAN.
  ;    // Hosts coming from VPN tunnels.
    options {
            directory "/var/cache/bind";
            // If there is a firewall between you and nameservers you want
            // to talk to, you may need to fix the firewall to allow multiple
            // ports to talk.  See
            // If your ISP provided one or more IP addresses for stable
            // nameservers, you probably want to use them as forwarders.
            // Uncomment the following block, and insert the addresses replacing
            // the all-0's placeholder.
            allow-query { goodclients; };
            forwarders {
                    // Google DNS servers
            // If BIND logs error messages about the root key being expired,
            // you will need to update your keys.  See
            dnssec-validation auto;
            auth-nxdomain no;    # conform to RFC1035
            listen-on-v6 { any; };
    Also, dns-nameservers is set in /etc/network/interfaces.

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    # The loopback network interface
    auto lo
    iface lo inet loopback
    # The primary network interface
    auto eth0
    iface eth0 inet static
            dns-search home.lan
            dns-domain home.lan
    #iface eth0 inet dhcp
    Still, nslookup results in timed out when ran from localhost.
    Last edited by david-novak; August 9th, 2021 at 10:36 PM.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts