- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- DNS / HOSTS file 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
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
тАО01-25-2006 03:40 AM
тАО01-25-2006 03:40 AM
at my new job, there is a DNS server and I'm not sure what its currently doing. But every system has its own hosts file and is driving me crazy.
What are the pros and cons of having one hosts file on all server versus every system having its own hosts file.
thanks and points will be assigned.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 04:37 AM
тАО01-25-2006 04:37 AM
Re: DNS / HOSTS file question
/etc/nsswtich.conf
hosts line determines the order of host name resoultion.
normally its sales files dns
That means files first dns second
/etc/hosts is a mini dns type database that the admin can edit. If its not maintained, it can be a problem. We actually generate ours FROM DNS, so it provides redundancy.
if you want to go dns first, change /etc/nsswitch.conf
The change will be instant, and you need to test things such as email after you do it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 04:42 AM
тАО01-25-2006 04:42 AM
Re: DNS / HOSTS file question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 04:56 AM
тАО01-25-2006 04:56 AM
SolutionIndividual files should have IPs for the
server, its mailhib, and possibly a few other
servers for purposes such as LDAP and backup.
The file only needs to change if one of these
IPs change.
Other changes are reflected by DNS.
- Don't need a mechanism to keep all servers
updated with the latest hosts file.
CON - Need to have DNS entries for all
local net servers (10.* 192.*). This may
require multiple DNS configurations.
- If DNS is down servers ability to
find each other degrades rapidly.
- Are require to have a mechanism such
as cfengine to keep all the servers up
to date.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 04:59 AM
тАО01-25-2006 04:59 AM
Re: DNS / HOSTS file question
"having one hosts file on all server versus every system having its own hosts file"
You must have one hosts file on every server, now, the contents of the file could be the same or different, I think that is that what you mean.
Maintaining name resolution using hosts file is time consuming and requires too much administrative effort.
You should use the hosts file only for some critical servers, then use DNS for everything else.
I see more cons that pro on hosts based name resolution. The pro is that you don't depend of the availability the DNS server. The cons is the administrative job that requires maintaining that file.
If your DNS server is reliable or you have a secondary DNS server also, or you can configure one, you should use DNS as name resolution method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 05:22 AM
тАО01-25-2006 05:22 AM
Re: DNS / HOSTS file question
Thanks for all your response. Assigning points now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2006 10:02 PM
тАО01-29-2006 10:02 PM
Re: DNS / HOSTS file question
PROS:
+ makes servers more independent: failure of DNS server does not cause problems
CONS:
- more work when a new server is added or old one is changed (you have to ensure /etc/hosts is up to date on all servers, or constantly deal with them being out of sync)
Using DNS:
PROS:
+ much easier to maintain, since all changes can be done in one spot
CONS:
- if you have just one DNS server, "everything" stops working when it fails (so you'd better have at least two)