LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Bind don't return DNS entries (https://www.linuxquestions.org/questions/linux-server-73/bind-dont-return-dns-entries-4175695671/)

Ben31 05-27-2021 08:53 AM

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

elgrandeperro 05-27-2021 09:14 AM

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.

dc.901 05-27-2021 09:54 AM

Quote:

Originally Posted by Ben31 (Post 6254330)
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/


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