<?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: /etc/hosts  question .. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565869#M594239</link>
    <description>If you do not want to use thing slike NIS or DNS, you could look at the rdist facility.&lt;BR /&gt;man rdist</description>
    <pubDate>Thu, 16 Aug 2001 09:26:25 GMT</pubDate>
    <dc:creator>melvyn burnard</dc:creator>
    <dc:date>2001-08-16T09:26:25Z</dc:date>
    <item>
      <title>/etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565862#M594232</link>
      <description>we have several boxes with differnt /etc/hosts files. What is the best way to get all the hosts files to be the same. And any specific details that I need to watch out for.And ways to work around them. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Thu, 16 Aug 2001 01:53:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565862#M594232</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-08-16T01:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565863#M594233</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;Why don't you use NIS, easy to manage, but if that is not an option then hmm..&lt;BR /&gt;&lt;BR /&gt;get all the host files onto one host and lets say you have them at /tmp/host1, /tmp/host2,&lt;BR /&gt;where host1 is the host file from host1 and so on.&lt;BR /&gt;&lt;BR /&gt;One way of generating a host file is&lt;BR /&gt;&lt;BR /&gt;cd /tmp&lt;BR /&gt;cat host* |grep -v "\#" | sort |uniq &amp;gt; final_hosts_file&lt;BR /&gt;&lt;BR /&gt;This will create a unique sorted list of all the hosts.&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;I am RU</description>
      <pubDate>Thu, 16 Aug 2001 02:23:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565863#M594233</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-08-16T02:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565864#M594234</link>
      <description>Not sure if you've considered using NIS (Networking Information Service)..  but that will allow you to have 'syncronised' /etc/hosts...&lt;BR /&gt;&lt;BR /&gt;For details, see the NIS manual... :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/hpux/onlinedocs/B1031-90048/B1031-90048.html" target="_blank"&gt;http://www.docs.hp.com/hpux/onlinedocs/B1031-90048/B1031-90048.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps !&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Thu, 16 Aug 2001 02:24:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565864#M594234</guid>
      <dc:creator>Andrew_4</dc:creator>
      <dc:date>2001-08-16T02:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565865#M594235</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;If you are only concerned about synchronizing hosts then ofcourse setting up DNS is another option.&lt;BR /&gt;&lt;BR /&gt;-Regards&lt;BR /&gt;I am RU</description>
      <pubDate>Thu, 16 Aug 2001 02:35:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565865#M594235</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-08-16T02:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565866#M594236</link>
      <description>If you are too particular about security at your site, you may think twice to use NIS. NIS+ is tedious to configure but supports encryption. Going for LDAP with ssl encryption is too much to think.&lt;BR /&gt;&lt;BR /&gt;DNS is the best way.&lt;BR /&gt;&lt;BR /&gt;Sri</description>
      <pubDate>Thu, 16 Aug 2001 04:57:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565866#M594236</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-08-16T04:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565867#M594237</link>
      <description>hey,&lt;BR /&gt;how about using DNS ??&lt;BR /&gt;this results in an extremely small hosts file, and all your IP definitions will be centralized.&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Thu, 16 Aug 2001 08:29:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565867#M594237</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-08-16T08:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565868#M594238</link>
      <description>Hi Richard:&lt;BR /&gt;&lt;BR /&gt;I'd use DNS.  Make sure, however, that each server's hosts file has a 'localhost' (127.0.0.1) entry and its own hostname at a minimum.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 16 Aug 2001 08:41:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565868#M594238</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-16T08:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565869#M594239</link>
      <description>If you do not want to use thing slike NIS or DNS, you could look at the rdist facility.&lt;BR /&gt;man rdist</description>
      <pubDate>Thu, 16 Aug 2001 09:26:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565869#M594239</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2001-08-16T09:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565870#M594240</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;Actually you need to think beyond the hosts files, you have the same problem with the /etc/services file, passwd, group, ... .&lt;BR /&gt;&lt;BR /&gt;It's probably time to bite the bullet and implement BOTH DNS and NIS (or NIS+). It's very nice to be able to change an IP address or a passwd in one place and have the changes propogate thoughout your domain.&lt;BR /&gt;&lt;BR /&gt;My personal preference it to resolve hostnames with DNS and everything else with NIS(+).&lt;BR /&gt;If you don't have them already, two of your first O'Reilly Books should be 'DNS and BIND' and 'Managing NFS and NIS'.&lt;BR /&gt;&lt;BR /&gt;Get these systems up and running and life becomes much easier.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Thu, 16 Aug 2001 13:16:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565870#M594240</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-08-16T13:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565871#M594241</link>
      <description>DNS is the obvious solution.&lt;BR /&gt;&lt;BR /&gt;Otherwise you can create the master hosts file and rcp it to all machines assuming you can use rcp.</description>
      <pubDate>Thu, 16 Aug 2001 14:22:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565871#M594241</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2001-08-16T14:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565872#M594242</link>
      <description>Hi Richard,&lt;BR /&gt;I would suggest like Melvyn the use of rdist (thats what do...) even with DNS( because I dont add printers in the DNS...)&lt;BR /&gt;You would have to choose a box where you update /etc/hosts (and other files why not...) and rdist would synchronize all the boxes&lt;BR /&gt;so man rdist!&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Thu, 16 Aug 2001 14:30:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565872#M594242</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2001-08-16T14:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565873#M594243</link>
      <description>Hi Richard,&lt;BR /&gt;I just remembered about rdist:&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90147/00/00/85-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90147/00/00/85-toc.html&amp;amp;searchterms=rdist&amp;amp;queryid=20010608-065927" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90147/00/00/85-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90147/00/00/85-toc.html&amp;amp;searchterms=rdist&amp;amp;queryid=20010608-065927&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;&lt;BR /&gt;Victor</description>
      <pubDate>Thu, 16 Aug 2001 15:50:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565873#M594243</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2001-08-16T15:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565874#M594244</link>
      <description>wow .. The web site is working today whoo hooo!&lt;BR /&gt;First of all Ramesh congrats on your hat there buddy. And what got to me is that you did it in a short time. You have been with the forum for a while but you didnt start to answer soo much till this last month. &lt;BR /&gt;&lt;BR /&gt;Now about my issue here. NIS and DNS sound great as a matter of fact I found out that we already have an internal DNS server set up. Why did I just find out (thats another post). &lt;BR /&gt;But the reason behind the etc hosts is that we have some 3rd party software running. That I was told would only work with the etc hosts. Im not too sure why but that is what I was told. So that I why I was wanting to fix the etc hosts files.&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Thu, 16 Aug 2001 17:03:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565874#M594244</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-08-16T17:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565875#M594245</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;I don't think I have ever seen a third party program rely on /etc/hosts.  I would think as long as the system is resolving, you would be ok.  At least it would be worth a try, instead of attempting maintain like hosts files.  If worst comes to worst, you could write a script to do it, but I would at least attempt DNS or NIS before............#$%^&amp;amp;*&lt;BR /&gt;&lt;BR /&gt;My thoughts.&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Thu, 16 Aug 2001 17:15:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565875#M594245</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2001-08-16T17:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565876#M594246</link>
      <description>Hi again Richard,&lt;BR /&gt;&lt;BR /&gt;Before I took someone's word that software can only use /etc/hosts, I would try it. It's very easy to test if your already have a DNS server.&lt;BR /&gt;Simply create an /etc/resolv.conf file and modify your /etc/nsswitch.conf file to look at DNS. You actually have to work in C to not use&lt;BR /&gt;DNS,NIS, or the hosts file. The library routines hide the task of deciding how to resolve the hostnames from the programmer. My guess is that it will work. I certainly keep all hostnames in DNS including printers.&lt;BR /&gt;&lt;BR /&gt;Clay&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Aug 2001 17:17:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565876#M594246</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-08-16T17:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565877#M594247</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;It looks like your question has been well-answered, but I just wanted to throw in one more option.  I worked at a site many years ago that used a network copy of /etc/hosts.  Unfortunately, I only heard of it second-hand and never saw it in operation.  I think they made /etc/hosts on all "client" machines a sym link to an nfs-mounted copy of /etc/hosts from the "master" machine.&lt;BR /&gt;&lt;BR /&gt;Probably ill-advised for more than one reason, but it's an option just the same.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Jim</description>
      <pubDate>Thu, 16 Aug 2001 17:26:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565877#M594247</guid>
      <dc:creator>Jim Turner</dc:creator>
      <dc:date>2001-08-16T17:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565878#M594248</link>
      <description>Hi Richard:&lt;BR /&gt;&lt;BR /&gt;Your third-party vendor is blowing smoke!  The biggest problem you may encounter with DNS is a timing one with 'reverse-name-lookups'.  You will usually see this with telnet sessions.  It stems from the fact that DNS is trying to make sure your are not spoofing.  &lt;BR /&gt;&lt;BR /&gt;Reverse lookup is the process by which a server receiving a request for service from a remote machine ascertains whether the identity claimed by the machine is in fact its true one. The process goes like this: &lt;BR /&gt;&lt;BR /&gt;1. The request arrives in a packet with an IP address indicating the point of origin. &lt;BR /&gt;&lt;BR /&gt;2. The server queries name service on the net to find out what hostname is associated with that IP address.&lt;BR /&gt;&lt;BR /&gt;3. The server then queries name service to find out what IP address is associated with that hostname.&lt;BR /&gt; &lt;BR /&gt;4. If this last request fails to find an IP address, or finds one that doesn't match the original, the request for service is rejected. &lt;BR /&gt;&lt;BR /&gt;When you setup your DNS (a.k.a. BIND) environment correctly, this is not a problem.  If worse comes to worse, you can put bogus hostnames in your /etc/hosts to accomodate telnet devices more easily.&lt;BR /&gt;&lt;BR /&gt;The resolution of hostnames to IPaddresses is transparent to your vendor.  The appropriate mechanism (hosts file or DNS) is done through the library call 'gethostbyname' in all cases.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 16 Aug 2001 17:26:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565878#M594248</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-16T17:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565879#M594249</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;First of all thanks, I have been following this forum much before my present account was created, just decided one fine day to start sharing/learning more. The more one shares, the more one learns. And i know if i say something wrong, others will be there to point my mistake.&lt;BR /&gt;&lt;BR /&gt;Now coming to your problem, whoever your vendor is, they are just trying to pull a fast one. Even if you have updated the hosts file and modified the /etc/nsswitch.conf file not to look at hosts, there goes your hosts file lookup, because name resolution will not consult the hosts file anymore. &lt;BR /&gt;&lt;BR /&gt;Like I and so many others have suggested the way to go is with DNS/NIS/NIS+&lt;BR /&gt;&lt;BR /&gt;-Regards&lt;BR /&gt;I am RU</description>
      <pubDate>Thu, 16 Aug 2001 18:12:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565879#M594249</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-08-16T18:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565880#M594250</link>
      <description>Actually, there is a good reason to use nsswitch.conf setup as: hosts then dns (and perhaps then nis). As mentioned, some DNS servers aren't maintained as a critical network tool and things go down hard when DNS goes out. And while nsswitch.conf can specify the next alternative, each request can take 15-20 seconds per request for a timeout.  &lt;BR /&gt;&lt;BR /&gt;These long delays are often confused with overloaded networking or permission issues, but they are simple timeouts that create a lot of problems. So a workaround is to create a small /etc/hosts file on each server. Most servers use a small number of unique hosts regularly. &lt;BR /&gt;&lt;BR /&gt;And most important, many network backup tools (including Omniback) will perform a DNS lookup for EVERY file it stores on tape (commercial backup tools can backup multiple hosts at the same time so each file must also have the source's name and IP stored too). This means that the DNS server (and network) can get slammed with dozens of requests per second during a backup. If /etc/hosts provides the IP/name service for selected systems, no network traffic and much faster lookup times.&lt;BR /&gt;&lt;BR /&gt;But the most important is to survive a DNS failure. By coding the most important IP/name entries in /etc/hosts, the server can continue without DNS.&lt;BR /&gt;&lt;BR /&gt;As far as the vendor's requirement, this is quite possible. IP address lookup is not a kernel function at all--it is user-space code and if anyone remembers the old days of HP-UX when there was no nsswitch.conf support, the number of pieces of code that had to be patched to support this file was lengthy. Xwindows did it one, telnet another, DCE still another way, NFS, remsh, and the list goes on. &lt;BR /&gt;&lt;BR /&gt;So for reliability, I would recommend /etc/hosts be populated with important IP/names and setup nsswitch.conf to use hosts, then DNS and if available, nis.</description>
      <pubDate>Thu, 16 Aug 2001 22:19:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565880#M594250</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-08-16T22:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/hosts  question ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565881#M594251</link>
      <description>What a day what a day. &lt;BR /&gt;Tommrow I have a meeting with my IT director about this and other issues that I have uncoverd. Even though my title at my company is still "customer support" I have taken all the dutited of the system admin that was let go. And now I find my self cleaning up a mess that I didnt make. Go figure but anyways that is another post. I will find out about the etc/hosts and dns. I will find out what the vendor says and come armed with the details I have gathered from this post. I will update this post tommrow and let everyone know what happened. &lt;BR /&gt;&lt;BR /&gt;richard</description>
      <pubDate>Thu, 16 Aug 2001 23:06:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-hosts-question/m-p/2565881#M594251</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-08-16T23:06:07Z</dc:date>
    </item>
  </channel>
</rss>

