<div dir="ltr">Hi Michael,<div><br></div><div>Can you let me know the uses of PowerDNS . Why Power DNS is used. can we achieved whatever I said in the mail trail.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">
  <table style="font-family:Aktiv Grotesk,sans-serif;color:#9a9dbc;max-width:500px" cellspacing="0" cellpadding="0" border="0">
    <tbody>
      <tr>
        <td colspan="2" style="padding-bottom:4px;border-bottom:1px solid #183188" width="500">
          <span style="font-size:14pt;color:#183188;font-family:Aktiv Grotesk,sans-serif"><strong>Raghvendra Choudhary</strong></span><span><br></span>
          <span style="font-size:10pt;color:#9a9dbc">DevOps Engineer<span> | </span></span>
          <span>
            <a href="https://digivalet.com" rel="noopener" style="font-size:10pt;color:#183188!important;text-decoration:none;font-weight:bold" target="_blank"><span style="font-size:10pt;color:#183188!important;text-decoration:none;font-weight:bold">www.digivalet.com</span></a>
          </span>
        </td>
      </tr>
      <tr>
        <td style="padding-top:2px" width="150">
          <p style="padding:0px;margin:0px">
            <img alt="Logo" style="max-width:140px;height:auto;border:0" src="https://signature.digivalet.com/digivaletlogo.png" width="140" border="0">
          </p>
        </td>
        <td style="padding-top:5px">
          <p style="padding-bottom:2px;margin-bottom:0px;padding-top:0px;margin-top:0px;line-height:10pt">
            <span style="font-size:9pt;line-height:10pt;color:#9a9dbc;font-weight:bold">T:</span>
            <span style="font-size:9pt;line-height:10pt;color:#0a1250"> +91.731.6667891</span>
          </p>
          <p style="padding-bottom:2px;margin-bottom:0px;padding-top:0px;margin-top:0px;line-height:10pt">
            <span style="font-size:9pt;line-height:10pt;color:#9a9dbc;font-weight:bold">M:</span>
            <span style="font-size:9pt;line-height:10pt;color:#0a1250">+91.96307.90947</span>
          </p>
          <p style="padding-bottom:2px;margin-bottom:0px;padding-top:0px;margin-top:0px;line-height:10pt">
            <span style="font-size:9pt;line-height:10pt;color:#9a9dbc;font-weight:bold">E:</span>
            <a href="mailto:raghvendra.choudhary@digivalet.com" style="text-decoration:none;font-size:9pt;line-height:10pt;color:#0a1250" target="_blank"><span style="text-decoration:none;font-size:9pt;line-height:10pt;color:#0a1250"> raghvendra.choudhary@digivalet.com</span></a>
          </p>

          <p style="margin-bottom:0px;padding-bottom:0px;padding-top:0px;margin-top:4px"></p>
        </td>
      </tr>
      <tr>
        <td colspan="2" style="padding-top:5px;margin-bottom:0">
          <img alt="Banner" style="max-width:500px;height:auto;border:0" src="https://signature.digivalet.com/emailbanner.png" width="500" border="0">
        </td>
      </tr>
    </tbody>
  </table>

</div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 17, 2022 at 1:27 PM Michael Hallager <<a href="mailto:michael@nettrust.nz">michael@nettrust.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">By default Linux will use hosts file first and then DNS servers listed <br>
in /etc/resolv.conf (If the specific application uses Glibc functions <br>
for name resolution) but dig is a DNS specific command.<br>
<br>
So maybe you want to use the ping command?<br>
<br>
At this time your question sounds more like a Linux user question rather <br>
then a PowerDNS one. If you are an end user host its unlikely you will <br>
need PowerDNS for anything.<br>
<br>
On 2022-11-17 20:46, Raghvendra Choudhary wrote:<br>
> My requirement is when I dig any DNS first it goes to the hosts file<br>
> in which all the host entry in linux the host file path is /etc/hosts.<br>
> First check the host entry if the DNS found in the Host it resolve. If<br>
> in case the DNS not found in the host Entry it redirect to the google<br>
> the DNS of the goofle is <a href="http://8.8.8.8.So" rel="noreferrer" target="_blank">8.8.8.8.So</a> [3] this is my requirement. I hope<br>
> this is much clear.<br>
> <br>
>  Raghvendra Choudhary<br>
>  DevOps Engineer | <a href="http://www.digivalet.com" rel="noreferrer" target="_blank">www.digivalet.com</a> [4]<br>
</blockquote></div>