linux - host command not resolving reverse lookup zone using secondary dns entry -


i using 2 dns entries

nameserver x.x.x.x nameserver y.y.y.y 

where x.x.x.x ip domain1 , y.y.y.y ip domain2

i using host command reverse lookup.

host domain1 gives 2 ip's , b  host domain2 gives 2 ip's c , d 

now when do

host 

it gives me reverse lookup but

host c  

doesnot .

does host command reverse lookup works primary dns , not secondary dns. have taken wireshark captures , seen no request going secondary dns failed case.

whatever have read /etc/resolver works in following way:

you should have dc's want resolve resolvable using primary dns , forwarders in it. dns can 2 types of errors nxdomain timeout nxdomain when dns authoritatively says cannot find domain , not searches further. when timeout primary dns resolver continue , tries resolve using secondary dns.

the order in nameservers specified in /etc/resolv.conf used undefined. first 1 used first , subsequent ones used if previous ones fail respond, can't count on that.

in case, each of resolvers list in /etc/resolv.conf should have same view of dns , should produce same answer given question.

if resolvers able resolve domains , not others, should fix problem.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -