LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-20-2016, 01:21 AM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,334

Rep: Reputation: 54
Random name resolution failures when using root servers directly in bind


I have my own local DNS server to resolve local domains like servers etc, and also have it setup to use root servers so I can resolve outside hosts.

Problem is, it randomly fails, it goes into this weird mode where half the internet I can't get to. Names just fail to resolve. It eventually starts working again.

I figured maybe I need to update my named.ca file, so I did by downloading the one from internic. It only made the problem worse. Some sites would not resolve AT ALL including this one. I ended up having to add the google dns servers back as forwarders just to be able to get here.

Is there a way to make it work more reliably by using root DNS? I don't like the idea of using a single forwarder as it's kind of a privacy issue, especially google, I'm sure they record all of that and sell the info to advertisers etc.

Heck, is there a way to just sync the entire domain database locally occasionally so that all name resolution is local? Bet that would speed up internet by A LOT. I'm on fibre, I find 90% of the time waiting for a page to load is DNS, as the actual data download speed is fast. If I could just store everything locally it would make things way faster. I don't imagine it would be that big, a couple hundred gigs maybe? Is this doable?
 
Old 08-20-2016, 06:11 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Most likely there is something wrong with your setup. Post the contents of named.conf (x-ing out keys and your static IP, of course). Also any details of your network that might be helpful.
 
Old 08-20-2016, 10:25 PM   #3
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,334

Original Poster
Rep: Reputation: 54
Here it is, it's mostly vanilla, may have done a few changes as seen in tutorials etc... at some point.

Code:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
	listen-on port 53 { 127.0.0.1; 10.1.1.5; };
	#listen-on-v6 port 53 { ::1; };
	directory 	"/var/named";
	dump-file 	"/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
	allow-query     { localhost; any; };
	recursion yes;

	dnssec-enable no;
	dnssec-validation no;
	dnssec-lookaside auto;

	/* Path to ISC DLV key */
	bindkeys-file "/etc/named.iscdlv.key";

	managed-keys-directory "/var/named/dynamic";


forwarders {
8.8.8.8;
8.8.4.4;
};


};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};


zone "." IN {
	type hint;
	file "named.ca";
};




include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
include "/var/named/zones.conf";
 
Old 08-21-2016, 11:05 AM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
The only thing I see that's wrong is that you turned off dnssec. Maybe check to see if you are getting cache-poisoning attacks.
 
Old 08-22-2016, 03:45 AM   #5
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,334

Original Poster
Rep: Reputation: 54
While troubleshooting I had read to try turning that off, but given it did not solve the issue I can probably just turn it back on.

The server does not face the internet so I don't believe it is compromised.
 
Old 11-09-2016, 09:43 PM   #6
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,334

Original Poster
Rep: Reputation: 54
This seems to have solved itself over time, I think updating my named.ca file may have done the trick but I tried so much other stuff in the process too it may not be that. I also setup a secondary name server just to have a backup, that may possibly be helping too as if it fails on one it might automatically try the other, so it would sorta be like when I would hit refresh, but it's faster and more seamless. Just guessing though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND directly resolve the hostname to internet cparapat Linux - Server 3 02-04-2011 04:22 AM
ati ixp random sound failures glorsplitz Linux - Hardware 4 11-11-2010 09:01 PM
root Authentication failures baldur2630 Linux - Security 8 11-25-2008 12:47 PM
issue with bind 8.3 on solaris (always show root servers) sunethj Linux - Server 1 04-22-2008 03:07 AM
BIND 9: Slow response from root servers. Local is ok. Apollo77 Linux - Networking 3 01-14-2005 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration