[Pdns-users] Configure Powerdns and check if the domain which is not present in Powerdns is tranferring the traffic to 8.8.8.8 .

Michael Hallager michael at nettrust.nz
Thu Nov 17 07:57:29 UTC 2022


By default Linux will use hosts file first and then DNS servers listed 
in /etc/resolv.conf (If the specific application uses Glibc functions 
for name resolution) but dig is a DNS specific command.

So maybe you want to use the ping command?

At this time your question sounds more like a Linux user question rather 
then a PowerDNS one. If you are an end user host its unlikely you will 
need PowerDNS for anything.

On 2022-11-17 20:46, Raghvendra Choudhary wrote:
> My requirement is when I dig any DNS first it goes to the hosts file
> in which all the host entry in linux the host file path is /etc/hosts.
> First check the host entry if the DNS found in the Host it resolve. If
> in case the DNS not found in the host Entry it redirect to the google
> the DNS of the goofle is 8.8.8.8.So [3] this is my requirement. I hope
> this is much clear.
> 
>  Raghvendra Choudhary
>  DevOps Engineer | www.digivalet.com [4]


More information about the Pdns-users mailing list