<?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>topic Re: Host name not getting resolved in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989935#M421963</link>
    <description>Jayachandran,&lt;BR /&gt;&lt;BR /&gt;Even thought it looks like we repeating ourselves, you should have 3 very important files in the system.&lt;BR /&gt;&lt;BR /&gt;/etc/hosts&lt;BR /&gt;/etc/nsswitch.conf&lt;BR /&gt;/etc/resolv.conf&lt;BR /&gt;&lt;BR /&gt;please make sure that they are on the system and configure properly.  You can always type man and the  name of the file for more info.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;jaime.</description>
    <pubDate>Tue, 11 Jul 2006 07:25:39 GMT</pubDate>
    <dc:creator>Jaime Bolanos Rojas.</dc:creator>
    <dc:date>2006-07-11T07:25:39Z</dc:date>
    <item>
      <title>Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989925#M421953</link>
      <description>Hi all &lt;BR /&gt;&lt;BR /&gt;    I have two servers in cluster. SRV1 and SRV2.One of the processes in SRV2 server is trying to get the hostname for the SRV1 servers ipaddress.&lt;BR /&gt;&lt;BR /&gt;    The Error: Unable to get the hostname for the ipaddress 10.1.1.1 (10.1.1.1 is the SRV1 ipaddress)&lt;BR /&gt;&lt;BR /&gt;    I have checked the /etc/hosts file, found that the ipaddress and the host name for this ipaddress is missing in both the servers.&lt;BR /&gt;&lt;BR /&gt;    Then I have added the ipaddress and host name in both of the servers. &lt;BR /&gt; &lt;BR /&gt;    But then too problem is not solved.&lt;BR /&gt;&lt;BR /&gt;help me, thanks in  advance&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2006 02:21:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989925#M421953</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2006-07-11T02:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989926#M421954</link>
      <description>Do both servers use /etc/hosts for host name resolution? Check /etc/nsswitch.conf file.</description>
      <pubDate>Tue, 11 Jul 2006 02:31:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989926#M421954</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-07-11T02:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989927#M421955</link>
      <description>Hi,&lt;BR /&gt;Have you checked your /etc/nsswitch.conf file and /etc/resolv.conf, their perms and for nsswitch.conf if you do have something like:&lt;BR /&gt;hosts:        files [NOTFOUND=continue] dns&lt;BR /&gt;&lt;BR /&gt;Are these addresses correctly routed?&lt;BR /&gt;(correct subnet route, netmask..)&lt;BR /&gt;&lt;BR /&gt;What are the perms on your hosts file? (444)&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Tue, 11 Jul 2006 02:31:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989927#M421955</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2006-07-11T02:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989928#M421956</link>
      <description>Hi RAC/Victor&lt;BR /&gt;&lt;BR /&gt;     There is no nsswitch.conf (or) resolv.conf file in the servers. &lt;BR /&gt;&lt;BR /&gt;     I have already checked and rectified the host file.   &lt;BR /&gt;&lt;BR /&gt;     entry for the ipaddress 10.1.1.1 was missing previously.And I have already added the missing Ipaddress to the host files.</description>
      <pubDate>Tue, 11 Jul 2006 04:01:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989928#M421956</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2006-07-11T04:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989929#M421957</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have you added the servers to the /etc/hosts file asfollow:&lt;BR /&gt;&lt;IP-ADDRESS&gt; &lt;FQDN&gt; &lt;ALIAS&gt;&lt;BR /&gt;10.1.1.1 srv1.domain.com srv1&lt;BR /&gt;&lt;BR /&gt;And as already mentioned check your /etc/nsswitch.conf file.&lt;BR /&gt;If the file doesn't exists copy it.&lt;BR /&gt;# cp /etc/nsswitch.files /etc/nsswitch.conf &lt;BR /&gt;Modify the line hosts:&lt;BR /&gt;hosts:        files [ NOTFOUND=continue ] dns&lt;BR /&gt;&lt;BR /&gt;Goodluck &lt;BR /&gt;&lt;BR /&gt;Darrel Louis&lt;BR /&gt;&lt;/ALIAS&gt;&lt;/FQDN&gt;&lt;/IP-ADDRESS&gt;</description>
      <pubDate>Tue, 11 Jul 2006 04:05:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989929#M421957</guid>
      <dc:creator>Darrel Louis</dc:creator>
      <dc:date>2006-07-11T04:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989930#M421958</link>
      <description>You will probably have a file /etc/nsswitch.compat, which can be copied to nsswitch.conf.&lt;BR /&gt;&lt;BR /&gt;You should set it up so it uses files first for hosts.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Tue, 11 Jul 2006 04:06:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989930#M421958</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2006-07-11T04:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989931#M421959</link>
      <description>Hi again!&lt;BR /&gt;What servers and most important what cluster are you talking about?&lt;BR /&gt;It may be nothing to do with the servers themselves but more the way a process is looking for his "hostname"...&lt;BR /&gt;A cluster like mcSG will have on a host ist address (HW-server) + the addresses of the packages running on it....&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Tue, 11 Jul 2006 04:22:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989931#M421959</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2006-07-11T04:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989932#M421960</link>
      <description>Otherwise you can create the nsswitch.conf&lt;BR /&gt;in the /etc directory and put this&lt;BR /&gt;contents in it&lt;BR /&gt;&lt;BR /&gt;hosts: files   [NOTFOUND=continue UNAVAIL=continue] dns     [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]&lt;BR /&gt;&lt;BR /&gt;If will first check your local /etc/hosts&lt;BR /&gt;and then check your dns&lt;BR /&gt;&lt;BR /&gt;You can troubleshoot with nslookup command:&lt;BR /&gt;&lt;BR /&gt;I have a host called frank only in /etc/hosts&lt;BR /&gt;10.214.9.118    frank&lt;BR /&gt;&lt;BR /&gt;When I use nslookup it will show where it&lt;BR /&gt;resolved it.&lt;BR /&gt;&lt;BR /&gt;[orapic@orasrv1:]/etc&amp;lt;&amp;gt;&amp;gt;&amp;gt; nslookup&lt;BR /&gt;Using /etc/hosts on:  orasrv1&lt;BR /&gt;&lt;BR /&gt;&amp;gt; frank&lt;BR /&gt;Using /etc/hosts on:  orasrv1&lt;BR /&gt;&lt;BR /&gt;looking up FILES&lt;BR /&gt;Name:    frank&lt;BR /&gt;Address:  10.214.9.118&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Good luck</description>
      <pubDate>Tue, 11 Jul 2006 04:23:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989932#M421960</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2006-07-11T04:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989933#M421961</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;    Host name to IP address maping is working fine.&lt;BR /&gt;&lt;BR /&gt;    Ip to Hostname is not working. &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jayachandran.G</description>
      <pubDate>Tue, 11 Jul 2006 06:39:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989933#M421961</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2006-07-11T06:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989934#M421962</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try using nslookup to do reverse DNS:&lt;BR /&gt;&lt;BR /&gt;# nslookup &lt;FQDN&gt;&lt;BR /&gt;# nslookup &lt;ALIAS&gt;&lt;BR /&gt;&lt;BR /&gt;If the IP address is resolved correctly, try restarting the processes.  This will force them to re-read configuration.&lt;BR /&gt;&lt;BR /&gt;Did you create /etc/nsswitch.conf and /etc/resolv.conf ?&lt;BR /&gt;&lt;BR /&gt;PCS&lt;/ALIAS&gt;&lt;/FQDN&gt;</description>
      <pubDate>Tue, 11 Jul 2006 07:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989934#M421962</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-07-11T07:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989935#M421963</link>
      <description>Jayachandran,&lt;BR /&gt;&lt;BR /&gt;Even thought it looks like we repeating ourselves, you should have 3 very important files in the system.&lt;BR /&gt;&lt;BR /&gt;/etc/hosts&lt;BR /&gt;/etc/nsswitch.conf&lt;BR /&gt;/etc/resolv.conf&lt;BR /&gt;&lt;BR /&gt;please make sure that they are on the system and configure properly.  You can always type man and the  name of the file for more info.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;jaime.</description>
      <pubDate>Tue, 11 Jul 2006 07:25:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989935#M421963</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-07-11T07:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989936#M421964</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1. Try ping from Both servers with Hostname, not down the IP address.&lt;BR /&gt;&lt;BR /&gt;2. Try to ping with those IP address, is this ping working?&lt;BR /&gt;&lt;BR /&gt;3. Try to do a "tracert" from your desktop and check the hosts are reachable. &lt;BR /&gt;&lt;BR /&gt;4. Check for hardcoding IP address in your script. &lt;BR /&gt;&lt;BR /&gt;5. Run netstat -nr and check your gateway and mask are fin on both servers.&lt;BR /&gt;&lt;BR /&gt;Chan</description>
      <pubDate>Tue, 11 Jul 2006 07:50:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989936#M421964</guid>
      <dc:creator>Chan 007</dc:creator>
      <dc:date>2006-07-11T07:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989937#M421965</link>
      <description>Hi all &lt;BR /&gt;&lt;BR /&gt;  It is working now. Thanks for all of your valuble replies.&lt;BR /&gt;&lt;BR /&gt;  Steps that are followed to solve&lt;BR /&gt;&lt;BR /&gt; 1) Copied the file nsswitch.files as &lt;BR /&gt;    nsswitch.conf&lt;BR /&gt;&lt;BR /&gt;    #cp nsswitch.files  nsswitch.conf&lt;BR /&gt;   &lt;BR /&gt; (Tried nsslookup but fialed)&lt;BR /&gt;&lt;BR /&gt; 2) Except the line "hosts: file" all other &lt;BR /&gt;    lines are hashed in the nsswitch.conf.&lt;BR /&gt;&lt;BR /&gt; (Tried nsslookup but failed)&lt;BR /&gt;&lt;BR /&gt; 3) As if these servers are there in cluster,&lt;BR /&gt;    hosts file where having more &lt;BR /&gt;    then one ipaddress for the same server.&lt;BR /&gt;    &lt;BR /&gt;   example&lt;BR /&gt;cat /etc/hosts&lt;BR /&gt;&lt;BR /&gt;   10.1.1.2  SRV1&lt;BR /&gt;   10.1.1.1  SRV1&lt;BR /&gt;  &lt;BR /&gt;I have hased out other entries except for the ipaddress for which the error is reporting          &lt;BR /&gt;&lt;BR /&gt;cat /etc/hosts&lt;BR /&gt;    #10.1.1.2  SRV1&lt;BR /&gt;    10.1.1.1 SRV1&lt;BR /&gt;&lt;BR /&gt;Now nssokup is working fine.&lt;BR /&gt;&lt;BR /&gt;(Note: I have even removed my nsswitch.conf file then too nsslookup is working fine).&lt;BR /&gt;&lt;BR /&gt;I supspect the entries in the hosts file. &lt;BR /&gt;&lt;BR /&gt;Please correct me if i'm wrong.</description>
      <pubDate>Wed, 12 Jul 2006 00:49:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989937#M421965</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2006-07-12T00:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989938#M421966</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Well you didnt tell us you had 2 entries to the same server in /etc/hosts, otherwise we would have said:&lt;BR /&gt;Its the first that is used...&lt;BR /&gt;&lt;BR /&gt;It would have saved time in your first post to have given the content of /etc/hosts...&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 12 Jul 2006 03:52:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989938#M421966</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2006-07-12T03:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989939#M421967</link>
      <description>Hi Victor&lt;BR /&gt;&lt;BR /&gt; I accecpt that is a mistake..&lt;BR /&gt;&lt;BR /&gt; I'm was trying nslookup for ipaddress and not for a hostname.So i felt multiple entires for the same hostname dosen't matter.&lt;BR /&gt;&lt;BR /&gt;  #nslookup &lt;BR /&gt;  &amp;gt;10.1.1.1 (for this ipddress there is only one entry in my host file) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jul 2006 05:43:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989939#M421967</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2006-07-12T05:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Host name not getting resolved</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989940#M421968</link>
      <description>Thanks for all your help..</description>
      <pubDate>Wed, 12 Jul 2006 06:51:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-name-not-getting-resolved/m-p/4989940#M421968</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2006-07-12T06:51:16Z</dc:date>
    </item>
  </channel>
</rss>

