- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc/hosts question ..
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2001 06:53 PM
тАО08-15-2001 06:53 PM
Thanks
Richard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2001 07:23 PM
тАО08-15-2001 07:23 PM
SolutionWhy don't you use NIS, easy to manage, but if that is not an option then hmm..
get all the host files onto one host and lets say you have them at /tmp/host1, /tmp/host2,
where host1 is the host file from host1 and so on.
One way of generating a host file is
cd /tmp
cat host* |grep -v "\#" | sort |uniq > final_hosts_file
This will create a unique sorted list of all the hosts.
-HTH
I am RU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2001 07:24 PM
тАО08-15-2001 07:24 PM
Re: /etc/hosts question ..
For details, see the NIS manual... :
http://www.docs.hp.com/hpux/onlinedocs/B1031-90048/B1031-90048.html
Hope this helps !
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2001 07:35 PM
тАО08-15-2001 07:35 PM
Re: /etc/hosts question ..
If you are only concerned about synchronizing hosts then ofcourse setting up DNS is another option.
-Regards
I am RU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2001 09:57 PM
тАО08-15-2001 09:57 PM
Re: /etc/hosts question ..
DNS is the best way.
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 01:29 AM
тАО08-16-2001 01:29 AM
Re: /etc/hosts question ..
how about using DNS ??
this results in an extremely small hosts file, and all your IP definitions will be centralized.
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 01:41 AM
тАО08-16-2001 01:41 AM
Re: /etc/hosts question ..
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.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 02:26 AM
тАО08-16-2001 02:26 AM
Re: /etc/hosts question ..
man rdist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 06:16 AM
тАО08-16-2001 06:16 AM
Re: /etc/hosts question ..
Actually you need to think beyond the hosts files, you have the same problem with the /etc/services file, passwd, group, ... .
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.
My personal preference it to resolve hostnames with DNS and everything else with NIS(+).
If you don't have them already, two of your first O'Reilly Books should be 'DNS and BIND' and 'Managing NFS and NIS'.
Get these systems up and running and life becomes much easier.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 07:22 AM
тАО08-16-2001 07:22 AM
Re: /etc/hosts question ..
Otherwise you can create the master hosts file and rcp it to all machines assuming you can use rcp.