LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 05-31-2012, 08:15 AM   #1
Pawan_Battula
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Rep: Reputation: Disabled
Should i Manually make entries


Should i Manually make entries for host records for every Client i have in the network.

Configured DNS sever in RHEl6
 
Old 05-31-2012, 08:26 AM   #2
fogpipe
Member
 
Registered: Mar 2011
Distribution: Slackware 64 Current
Posts: 312

Rep: Reputation: 64
You should have entries for every machine on the local network in your /etc/hosts file on every machine. Applications check there before looking at DNS. Here is a page with a good example format:
http://linux.about.com/od/commands/l/blcmdl5_hosts.htm

Last edited by fogpipe; 05-31-2012 at 08:32 AM.
 
Old 05-31-2012, 08:53 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6
Posts: 1,244

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
Quote:
Originally Posted by fogpipe View Post
You should have entries for every machine on the local network in your /etc/hosts file on every machine.
On all but the smallest of local networks this is a recipe for disaster, especially if you offer services on multiple machines and need to change them. A local DNS zone with DHCP setting a default prefix is a much better way of managing addresses within a lan.
 
Old 05-31-2012, 09:08 AM   #4
Pawan_Battula
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I am not able to understand

1. I configured dns server. (server1.example.com)
2. after configuring dns server, i installed rhel6 in Virtual Manager. (server2.example.com)
3. when i am pinging server2.example.com in server1 machine it is not pinging.
4. then i manually added host record in dns server for server2.example.com it worked.

5. My question is if i have 100 or 1000 pc's in the network, i have to maually add the host record.
 
Old 05-31-2012, 09:15 AM   #5
fogpipe
Member
 
Registered: Mar 2011
Distribution: Slackware 64 Current
Posts: 312

Rep: Reputation: 64
Quote:
Originally Posted by TenTenths View Post
On all but the smallest of local networks this is a recipe for disaster, especially if you offer services on multiple machines and need to change them.

Could you give an example of how this might lead to disaster? This has always been standard practice in the companies i have worked for. Admittedly, i havent worked in the industry since about 05 and the places i worked were small web development outfits with maybe less then 20 or so machines. We used static local ip's with hosts files on every machine that had entries for every machine on the network. What if DNS goes down?

Last edited by fogpipe; 05-31-2012 at 09:19 AM.
 
Old 05-31-2012, 10:27 AM   #6
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6
Posts: 1,244

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
Quote:
Originally Posted by fogpipe View Post
the places i worked were small web development outfits with maybe less then 20 or so machines. We used static local ip's with hosts files on every machine that had entries for every machine on the network. What if DNS goes down?
If that worked for you then that's cool. As with all things linux there's more than one way to do it.

Last place I worked had close on 200 devices (a mixture of computers, terminals, wireless handheld "gun" terminals, forklift terminals, and a number of different operating systems) in the main location with over 500 machines across the whole network. Try co-ordinating one change to a critical (router/firewall/proxy) IP across that number of machines and you'll soon appreciate that DNS is the way to go.
 
Old 06-03-2012, 08:35 PM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
Indeed DNS was invented when the then 'internet' (Arpanet) became too big to keep updated manually or even semi-automatically.
Normally /etc/hosts has the machine itself and possibly any key systems it depends on (eg as part of the boot process it may mount shares from other systems).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a bootable USB flash drive manually? m4rtin Linux - General 6 02-01-2011 04:05 PM
Do I need to make entries the the .rev file swamprat Linux - Networking 2 09-14-2009 09:22 AM
why did I have to manually make a mount folder? newbiesforever Linux - General 1 01-28-2009 10:22 AM
tried to make bootfloppy manually ..... but failed HELP tuxfood Programming 4 07-12-2004 06:57 AM
how do you add/remove Gnome menu entries manually? randomx Linux - General 2 10-16-2003 10:06 PM


All times are GMT -5. The time now is 04:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration