<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Nominated Discussion: Basic Question about DNS Query in General Articles</title>
    <link>https://live.paloaltonetworks.com/t5/general-articles/nominated-discussion-basic-question-about-dns-query/ta-p/563423</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P data-unlink="true"&gt;&lt;SPAN&gt;This Nominated Discussion Article is based on the post "&lt;/SPAN&gt;&lt;STRONG&gt;Basic Question about DNS Query&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;" by&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/197203"&gt;@perumalj&lt;/a&gt;&amp;nbsp;and answered by&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/7608"&gt;@reaper&lt;/a&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Scenario : In an organization, a client machine doesn't know IP address of example.com. So it sends DNS query to its local DNS server. Even the local DNS server doesn't know about example.com. Hence, the local DNS server sends DNS query to DNS forwarder. DNS forwarder too doesn't have information about example.com.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However , DNS forwarder is able to do external DNS lookup. Hence, It contacts root DNS server at first.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;secondly , It contacts TLD server and later Name server of example.com to get the IP address.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this is how DNS query works for external websites. Please correct me if I am wrong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question 1: I would like to know if IP address of example.com and IP address of its name server will be same or different.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question 2 : I would also like to know When DNS forwarder contacts name server of example.com asking for IP address of example.com, it will send normal DNS query as how client machine has sent DNS query for example.com to its local DNS server or it will be different&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Response:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Question 1: I would like to know if IP address of example.com and IP address of its name server will be same or different.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333399"&gt;- the IP of the nameserver (NS) will most likely be different from the A record pointing to example.com (it's not impossible, just not very common to have the nameserver as the target for an A record). Typically an organization will have an NS record for example.com that points to the dedicated DNS server, and an A record that points to the web frontend, here's an example&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;% dig any example.com &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;;; Truncated, retrying in TCP mode.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;; &amp;lt;&amp;lt;&amp;gt;&amp;gt; DiG 9.10.6 &amp;lt;&amp;lt;&amp;gt;&amp;gt; any example.com&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;;; global options: +cmd&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;;; Got answer:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 40873&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;;; flags: qr rd ra ad; QUERY: 1, ANSWER: 14, AUTHORITY: 0, ADDITIONAL: 1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;;; OPT PSEUDOSECTION:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;; EDNS: version: 0, flags:; udp: 512&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;;; QUESTION SECTION:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;;example.com. IN ANY&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;;; ANSWER SECTION:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;example.com. 7405 IN &lt;STRONG&gt;NS&lt;/STRONG&gt; b.iana-servers.net&amp;nbsp; &amp;nbsp;&amp;lt;- this tells everyone which DNS server is responsible for this record&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT color="#333399"&gt;&lt;SPAN class="s1"&gt;example.com. 9667 IN &lt;STRONG&gt;A&lt;/STRONG&gt; 93.184.216.34&amp;nbsp; &amp;nbsp;&amp;lt;- this tells every webbrowser which webserver to connect to&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question 2 : I would also like to know When DNS forwarder contacts name server of example.com asking for IP address of example.com, it will send normal DNS query as how client machine has sent DNS query for example.com to its local DNS server or it will be different&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333399"&gt;- eventually, yes. the final forwarded will go through the hierarchy of dns (root, TLD, and so on) to find out who is the final responsible for a record, until it reaches the 'owner' of a record and then queries it for the A record (as a normal query)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333399"&gt;hope this helps&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 27 Oct 2023 23:50:03 GMT</pubDate>
    <dc:creator>JayGolf</dc:creator>
    <dc:date>2023-10-27T23:50:03Z</dc:date>
    <item>
      <title>Nominated Discussion: Basic Question about DNS Query</title>
      <link>https://live.paloaltonetworks.com/t5/general-articles/nominated-discussion-basic-question-about-dns-query/ta-p/563423</link>
      <description>&lt;P&gt;This Nominated Discussion Article is based on the post "Basic Question about DNS Query".&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 23:50:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-articles/nominated-discussion-basic-question-about-dns-query/ta-p/563423</guid>
      <dc:creator>JayGolf</dc:creator>
      <dc:date>2023-10-27T23:50:03Z</dc:date>
    </item>
  </channel>
</rss>

