LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2009, 04:40 AM   #1
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Rep: Reputation: 16
Dns Config


hai


I having two machines installed centos5. I need to configure both nodes can resolve correctly names ( either through dns or /etc/hosts).
Please advise me how to do this.

Thanks.

Last edited by saran_redhat; 11-17-2009 at 04:41 AM.
 
Old 11-17-2009, 04:57 AM   #2
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Quote:
Originally Posted by saran_redhat View Post
hai


I having two machines installed centos5. I need to configure both nodes can resolve correctly names ( either through dns or /etc/hosts).
Please advise me how to do this.

Thanks.
Hi saran_redhat,

This problem can be resolved by adding hostnames of both nodes to /etc/hosts file of both the nodes...

OR

you can configure DNS in one of these nodes, so that any other system in your network can resolve hostname...

Cheers !!
 
Old 11-17-2009, 05:01 AM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
If you only have the two hosts and their IPs are static it is easiest to use /etc/hosts.
Just add entries like the following to /etc/hosts on both machines.

Code:
192.168.1.2 host1
192.168.1.3 host2
Cheers,

Evo2.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Caching Only Config Help unixanalyst Linux - Networking 2 09-28-2009 10:59 PM
config LIVE DNS HOW ? wasifali Linux - Server 2 03-25-2007 06:17 AM
dns config sheryco Linux - Networking 8 03-26-2003 09:11 PM
Help with DNS config garrepi Linux - Networking 3 09-24-2002 04:45 AM
DNS Config ramkumar_rkin Linux - Newbie 1 03-16-2002 01:33 PM


All times are GMT -5. The time now is 02:51 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration