<?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>question Re: DNS Resolution: hostname and canonical name for this host are not consistent when checked from a Java process in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386239#M245977</link>
    <description>&lt;P&gt;Hello, im using rhel8.4 but still the same.&lt;/P&gt;&lt;P&gt;The etc/sysconfig/network file is empty but the network still working, im using the etc/hosts wth ips, fqdn and aliases.&lt;/P&gt;&lt;P&gt;The nslookup is not working, do i must to have a dns server?? I mean, in a local network configuring etc/hosts don't thik so...&lt;/P&gt;&lt;P&gt;Anybody knows how this works and what is the exact commands used for this test? This shouldn't be so difficult, I've read the topics and followed the recommendations but nothing.&lt;/P&gt;&lt;P&gt;Many thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 07 Apr 2024 16:16:34 GMT</pubDate>
    <dc:creator>Juanes</dc:creator>
    <dc:date>2024-04-07T16:16:34Z</dc:date>
    <item>
      <title>DNS Resolution: hostname and canonical name for this host are not consistent when checked from a Java process</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386117#M245948</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good morning Community,&lt;/P&gt;&lt;P&gt;i'm suffering of DNS resolution getting the following fatalistic view every time I access to CM:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Juanes_0-1712239324475.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40277i40290B2D097DA707/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Juanes_0-1712239324475.png" alt="Juanes_0-1712239324475.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm reading a lot but not getting any robust conclussion of what is the test that concludes in "DNS resolution error".&amp;nbsp;&lt;/P&gt;&lt;P&gt;it checks "&lt;SPAN&gt;host's hostname and canonical name&lt;/SPAN&gt;" but, what does it means? is it the hostname? the name in the /etc/hosts?&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, having&lt;/P&gt;&lt;P&gt;[root@master1 ~]# hostname&lt;BR /&gt;master1&lt;/P&gt;&lt;P&gt;[root@master1 ~]# python -c "import socket; print socket.getfqdn(); print socket.gethostbyname(socket.getfqdn())"&lt;BR /&gt;master1.domain.net&lt;BR /&gt;192.168.0.90&lt;/P&gt;&lt;P&gt;does it means the discrepancy between hostname and&amp;nbsp;socket.getfqdn()?&lt;/P&gt;&lt;P&gt;I can see how many people is getting this error but not a consistent response, could anyone give the solution here? for trying to understand this common issue?&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 14:12:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386117#M245948</guid>
      <dc:creator>Juanes</dc:creator>
      <dc:date>2024-04-04T14:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Resolution: hostname and canonical name for this host are not consistent when checked from a Java process</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386223#M245972</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/83916"&gt;@Juanes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reaching out on this&lt;/P&gt;&lt;P&gt;Can you please confirm what OS version are you using?&lt;/P&gt;&lt;P&gt;Check the output of the following command and see if hostname is the correct one&lt;/P&gt;&lt;P&gt;# hostname -f&lt;/P&gt;&lt;P&gt;If hostname -f is not returning the complete FQDN then please set the FQDN correct and restart the cloudera-scm-agent and you should be good&lt;/P&gt;&lt;P&gt;You might want to check the below discussion&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/The-hostname-and-canonical-name-for-this-host-are-not/m-p/19444" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/The-hostname-and-canonical-name-for-this-host-are-not/m-p/19444&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 05:25:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386223#M245972</guid>
      <dc:creator>upadhyayk04</dc:creator>
      <dc:date>2024-04-07T05:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Resolution: hostname and canonical name for this host are not consistent when checked from a Java process</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386235#M245973</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/83916"&gt;@Juanes&lt;/a&gt;&amp;nbsp;this might also be coming from the DNS side, check the agent logs for any DNS test failures and try to do nslookup from another node to this node IP address and then HQDN and check whether the DNS server is resolving the hostname and IP address correctly or not.&lt;BR /&gt;&lt;BR /&gt;as&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95611"&gt;@upadhyayk04&lt;/a&gt;&amp;nbsp;suggested try the #hostname -f or #hostnamectl commands to get the correct FQDN.&lt;BR /&gt;&lt;BR /&gt;# nslookup &amp;lt;IP-address&amp;gt;/FQDN - if this is not resolving correctly then you may need to check the DNS server whats happening.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 09:40:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386235#M245973</guid>
      <dc:creator>Rajat_710</dc:creator>
      <dc:date>2024-04-07T09:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Resolution: hostname and canonical name for this host are not consistent when checked from a Java process</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386238#M245976</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It seems the hostname is not enough, the hostname -f is showing the full name wth fqdn, will continue investigating, tanks&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 15:37:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386238#M245976</guid>
      <dc:creator>Juanes</dc:creator>
      <dc:date>2024-04-07T15:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Resolution: hostname and canonical name for this host are not consistent when checked from a Java process</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386239#M245977</link>
      <description>&lt;P&gt;Hello, im using rhel8.4 but still the same.&lt;/P&gt;&lt;P&gt;The etc/sysconfig/network file is empty but the network still working, im using the etc/hosts wth ips, fqdn and aliases.&lt;/P&gt;&lt;P&gt;The nslookup is not working, do i must to have a dns server?? I mean, in a local network configuring etc/hosts don't thik so...&lt;/P&gt;&lt;P&gt;Anybody knows how this works and what is the exact commands used for this test? This shouldn't be so difficult, I've read the topics and followed the recommendations but nothing.&lt;/P&gt;&lt;P&gt;Many thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 16:16:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386239#M245977</guid>
      <dc:creator>Juanes</dc:creator>
      <dc:date>2024-04-07T16:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Resolution: hostname and canonical name for this host are not consistent when checked from a Java process</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386240#M245978</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your update&lt;/P&gt;&lt;P&gt;Can you please elaborate more on nslookup not working? Do you mean nslookup command is not available or the command is not returning any output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no mandate to have an external DNS server, the entries in /etc/hosts should be enough. What about hostname -f is it working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 16:30:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386240#M245978</guid>
      <dc:creator>upadhyayk04</dc:creator>
      <dc:date>2024-04-07T16:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Resolution: hostname and canonical name for this host are not consistent when checked from a Java process</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386241#M245979</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Finally found the root cause...&lt;/P&gt;&lt;P&gt;/Etc/hosts&lt;/P&gt;&lt;P&gt;192.168.0.10 master1.customerdomain.com&lt;/P&gt;&lt;P&gt;# Hostname&lt;/P&gt;&lt;P&gt;Master1&lt;/P&gt;&lt;P&gt;This is the discrepancy, setting the hostname to the same as shown in /etc/hosts, the issue was solved.&lt;/P&gt;&lt;P&gt;Command used: # hostnamectl set-hostname master1.customerdomain.com&lt;/P&gt;&lt;P&gt;Then restarted the agent daemon and services in the cluster.&lt;/P&gt;&lt;P&gt;Many thanks to the community for so many clues.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 17:23:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DNS-Resolution-hostname-and-canonical-name-for-this-host-are/m-p/386241#M245979</guid>
      <dc:creator>Juanes</dc:creator>
      <dc:date>2024-04-07T17:23:44Z</dc:date>
    </item>
  </channel>
</rss>

