<?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 RHEL4U$ &amp;gt; nslookup not looking up /etc/hosts on private network in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131896#M82013</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I've installed Red Hat Enterprise Linux AS release 4 (Nahant Update 4) on a server for testing purposes.&lt;BR /&gt;&lt;BR /&gt;I have no DNS server and am defining the hostname and domainname my self..&lt;BR /&gt;ie:&lt;BR /&gt;domainname: my.test.com&lt;BR /&gt;hostname: box&lt;BR /&gt;&lt;BR /&gt;IP is private: 192.168.0.101&lt;BR /&gt;&lt;BR /&gt;There are two servers on this network.&lt;BR /&gt;they can ping each other and I can ssh from one to the other.&lt;BR /&gt;&lt;BR /&gt;However, when installing an application (not mine) it's startup scripts run the host command.&lt;BR /&gt;this command does not work and times out on my server just as nslookup does:&lt;BR /&gt;&lt;BR /&gt;[root@box ~]# nslookup box&lt;BR /&gt;;; connection timed out; no servers could be reached&lt;BR /&gt;&lt;BR /&gt;my config is as attached...&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 25 Sep 2008 10:22:35 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2008-09-25T10:22:35Z</dc:date>
    <item>
      <title>RHEL4U$ &gt; nslookup not looking up /etc/hosts on private network</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131896#M82013</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I've installed Red Hat Enterprise Linux AS release 4 (Nahant Update 4) on a server for testing purposes.&lt;BR /&gt;&lt;BR /&gt;I have no DNS server and am defining the hostname and domainname my self..&lt;BR /&gt;ie:&lt;BR /&gt;domainname: my.test.com&lt;BR /&gt;hostname: box&lt;BR /&gt;&lt;BR /&gt;IP is private: 192.168.0.101&lt;BR /&gt;&lt;BR /&gt;There are two servers on this network.&lt;BR /&gt;they can ping each other and I can ssh from one to the other.&lt;BR /&gt;&lt;BR /&gt;However, when installing an application (not mine) it's startup scripts run the host command.&lt;BR /&gt;this command does not work and times out on my server just as nslookup does:&lt;BR /&gt;&lt;BR /&gt;[root@box ~]# nslookup box&lt;BR /&gt;;; connection timed out; no servers could be reached&lt;BR /&gt;&lt;BR /&gt;my config is as attached...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2008 10:22:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131896#M82013</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2008-09-25T10:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: RHEL4U$ &gt; nslookup not looking up /etc/hosts on private network</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131897#M82014</link>
      <description>clobber /etc/resolv.conf. And since you are not using dns you can remove it from nsswitch.conf. You can get rid of nis also, unless you are using it. I assume you aren't.</description>
      <pubDate>Thu, 25 Sep 2008 11:34:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131897#M82014</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2008-09-25T11:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: RHEL4U$ &gt; nslookup not looking up /etc/hosts on private network</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131898#M82015</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Unless you are hosting a DNS server on the system, this is the problem.&lt;BR /&gt;&lt;BR /&gt;[root@diameter ~]# cat /etc/resolv.conf&lt;BR /&gt;&lt;BR /&gt;domain my.test.com&lt;BR /&gt;&lt;BR /&gt;search my.test.com&lt;BR /&gt;&lt;BR /&gt;nameserver 127.0.0.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You need a nameserver that contains DNS information for your network&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 25 Sep 2008 11:58:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131898#M82015</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-09-25T11:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: RHEL4U$ &gt; nslookup not looking up /etc/hosts on private network</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131899#M82016</link>
      <description>ok, I've no DNS server on the network, just two hosts a client and a server.&lt;BR /&gt;&lt;BR /&gt;I removed resolv.conf&lt;BR /&gt;and removed everything but files for hosts from nsswitch.conf and rebooted.&lt;BR /&gt;&lt;BR /&gt;nslookup, host commands still timeout:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@box /]# Last login: Thu Sep 25 11:33:09 2008 from 192.168.0.102&lt;BR /&gt;[ocadmin@box ~]$ nslookup box&lt;BR /&gt;;; connection timed out; no servers could be reached&lt;BR /&gt;&lt;BR /&gt;[ocadmin@box ~]$ host box&lt;BR /&gt;;; connection timed out; no servers could be reached&lt;BR /&gt;[ocadmin@diameter ~]$ ping diameter&lt;BR /&gt;&lt;BR /&gt;PING box (192.168.0.101) 56(84) bytes of data.&lt;BR /&gt;64 bytes from diameter (192.168.0.101): icmp_seq=0 ttl=64 time=2.00 ms&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[ocadmin@box ~]$ cat /etc/hosts&lt;BR /&gt;# Do not remove the following line, or various programs&lt;BR /&gt;# that require network functionality will fail.&lt;BR /&gt;127.0.0.1       localhost               localhost.localdomain&lt;BR /&gt;192.168.0.101   box                box.my.test.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for the replies so far...</description>
      <pubDate>Thu, 25 Sep 2008 12:23:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131899#M82016</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2008-09-25T12:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: RHEL4U$ &gt; nslookup not looking up /etc/hosts on private network</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131900#M82017</link>
      <description>Maybe your options are:&lt;BR /&gt;&lt;BR /&gt;Configure a DNS server on one fo the linux boxes, you can do it quickly by modifying the files provided by caching-nameserver.&lt;BR /&gt;&lt;BR /&gt;Or maybe, you can just trick the installation program, build your own "host" command with a script to return the desired value.</description>
      <pubDate>Thu, 25 Sep 2008 13:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131900#M82017</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-09-25T13:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: RHEL4U$ &gt; nslookup not looking up /etc/hosts on private network</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131901#M82018</link>
      <description>yes Ivan, this is what I've done to workaround this for the moment:&lt;BR /&gt;&lt;BR /&gt;[ocadmin@diameter lib]$ cat /usr/bin/host&lt;BR /&gt;echo "box.my.test.com has address 192.168.0.101"&lt;BR /&gt;&lt;BR /&gt;etc...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2008 13:56:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131901#M82018</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2008-09-25T13:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: RHEL4U$ &gt; nslookup not looking up /etc/hosts on private network</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131902#M82019</link>
      <description>Did you ever try&lt;BR /&gt;&lt;BR /&gt;nslookup 192.168.0.101 &lt;BR /&gt;nslookup box.my.test.com&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;host 192.168.0.101 &lt;BR /&gt;host box.my.test.com</description>
      <pubDate>Thu, 25 Sep 2008 15:13:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131902#M82019</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2008-09-25T15:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: RHEL4U$ &gt; nslookup not looking up /etc/hosts on private network</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131903#M82020</link>
      <description>yes, for all host command (as well as nslookup) lookups (ip or hostname) I get:&lt;BR /&gt;&lt;BR /&gt;;; connection timed out; no servers could be reached&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2008 15:16:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131903#M82020</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2008-09-25T15:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: RHEL4U$ &gt; nslookup not looking up /etc/hosts on private network</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131904#M82021</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Contrary to HP-UX where nslookup tries to resolve from /etc/hosts and dns, the normal nslookup (as implemented in Linux and all the other systems (Unixes, windows, etc...)) stands to request only DNS nameservers. &lt;BR /&gt;&lt;BR /&gt;If there is no resolv.conf on the system, nslookup will try to request 127.0.0.1 even if there is no bind running on the system.&lt;BR /&gt;&lt;BR /&gt;To try to resolve host names (as well as many other services) you should try getent:&lt;BR /&gt;&lt;BR /&gt;getent hosts box or getent hosts 192.168.0.101&lt;BR /&gt;&lt;BR /&gt;It will rely on /etc/nsswitch.conf (man nsswitch.conf)&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2008 18:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131904#M82021</guid>
      <dc:creator>Brem Belguebli</dc:creator>
      <dc:date>2008-09-25T18:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: RHEL4U$ &gt; nslookup not looking up /etc/hosts on private network</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131905#M82022</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;As Brem points out, host and nslookup are working as expected, or at least as I'd expect them to on Linux.&lt;BR /&gt;&lt;BR /&gt;The man page for nslookup on Linux is quite different to that on HP-UX.&lt;BR /&gt;&lt;BR /&gt;HP-UX: nslookup is a program to query Internet domain name servers.  If a name server is not configured, nslookup uses NIS if it is configured. Otherwise the local host table, /etc/hosts, is used.&lt;BR /&gt;&lt;BR /&gt;Linux: nslookup is a program to query Internet domain name servers.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It's doing what it says on the tin !&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Rob</description>
      <pubDate>Thu, 25 Sep 2008 18:42:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131905#M82022</guid>
      <dc:creator>Rob Leadbeater</dc:creator>
      <dc:date>2008-09-25T18:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: RHEL4U$ &gt; nslookup not looking up /etc/hosts on private network</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131906#M82023</link>
      <description>correct. Nslookup only queries DNS servers, it will not look to /etc/hosts and any hosts settings in nsswitch.conf are not consulted.</description>
      <pubDate>Sat, 04 Oct 2008 03:57:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131906#M82023</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2008-10-04T03:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: RHEL4U$ &gt; nslookup not looking up /etc/hosts on private network</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131907#M82024</link>
      <description>see above</description>
      <pubDate>Thu, 16 Apr 2009 14:58:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rhel4u-gt-nslookup-not-looking-up-etc-hosts-on-private-network/m-p/5131907#M82024</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2009-04-16T14:58:38Z</dc:date>
    </item>
  </channel>
</rss>

