LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-27-2021, 08:53 AM   #1
Ben31
LQ Newbie
 
Registered: May 2021
Posts: 1

Rep: Reputation: Disabled
Question Bind don't return DNS entries


Hello,

I've a strange problem with bind running on my SERVER_A.

On a remote server (SERVER_B), if I execute:

$ dig @SERVER_A domain.tld
I've no answer.

Now, I execute on my SERVER_A:

$ dig @127.0.0.1 domain.tld
I've an answer with the domain IP.

If now I re-execute on my SERVER_B:
$ dig @SERVER_A domain.tld
I've the domain IP returned.


I've tested on many subdomains or domains and I've the same problem : no answer before I execute a @127.0.0.1 dig query on the SERVER_A.

I've tried to restart Bind, to rndc reload. To rndc flush, but I've the same problem.

Do you have an idea please?

Thx

Ben
 
Old 05-27-2021, 09:14 AM   #2
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
I think you didn't allow-recursion on Server A. If it is in cache, it will get the answer that is why prerequesting works. There is a separate directive to allow query cache, but I think just allowing query and recursion should fix it.
 
Old 05-27-2021, 09:54 AM   #3
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by Ben31 View Post
Hello,

I've a strange problem with bind running on my SERVER_A.

On a remote server (SERVER_B), if I execute:

$ dig @SERVER_A domain.tld
I've no answer.

Now, I execute on my SERVER_A:

$ dig @127.0.0.1 domain.tld
I've an answer with the domain IP.

If now I re-execute on my SERVER_B:
$ dig @SERVER_A domain.tld
I've the domain IP returned.


I've tested on many subdomains or domains and I've the same problem : no answer before I execute a @127.0.0.1 dig query on the SERVER_A.

I've tried to restart Bind, to rndc reload. To rndc flush, but I've the same problem.

Do you have an idea please?

Thx

Ben
Please show the config files from your server:
named.conf
forward
reverse

Please put the output in code tags...

If you are unable to share take a look at this example (and compare your setup): https://fedoramagazine.org/how-to-se...ver-with-bind/
 
  


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
wrong ttl time for dns entries on bind 9.7 with suse 11.4 server marb84 Linux - Networking 4 08-31-2011 04:24 AM
[SOLVED] Override real DNS entries with BIND (Centos 5.3) orthogonal3 Linux - Server 2 08-14-2009 03:42 AM
BIND (DNS) Entries Atwin Linux - Server 3 10-25-2008 09:51 PM
Bind: adding DNS entries noir911 Linux - Server 7 10-08-2008 01:31 AM
With bind DNS on localhost, still need to add entries to /etc/hosts? pridefc Linux - Networking 1 04-21-2008 12:24 AM

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

All times are GMT -5. The time now is 06:42 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