LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 02-12-2002, 10:25 AM   #1
jdevanand
LQ Newbie
 
Registered: Jan 2002
Location: Memphis
Distribution: Redhat 7.2
Posts: 23

Rep: Reputation: 15
Red face DNS configuration how to


Hi,

iam new to networking ..plz help..

i have two linux boxes running on redhat 7.2 and are connected using the crossover cable...I could self ping ( both with the ip address and hostname ie devanand) and ping the other system with the IP addr but not with the host name ...how to setup the DNS config ..so that i can use either IP or hostname to ping...details..

comp 1 ) redhat 7.2 ..hostname --> devanand , IP->192.168.1.1

comp 2) redhat 7.2 ..hostname --> sxshiv , IP ->192.168.1.2

subnet mask 255.255.255.0..and domain name
www.myhome.com

please let me know how to configure the DNS in Redhat..
thankful if there is any step by step process on the net..

regards,
dev
 
Old 02-12-2002, 12:26 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Re: DNS configuration how to

Quote:
Originally posted by jdevanand
Hi,

iam new to networking ..plz help..

i have two linux boxes running on redhat 7.2 and are connected using the crossover cable...I could self ping ( both with the ip address and hostname ie devanand) and ping the other system with the IP addr but not with the host name ...how to setup the DNS config ..so that i can use either IP or hostname to ping...details..

comp 1 ) redhat 7.2 ..hostname --> devanand , IP->192.168.1.1

comp 2) redhat 7.2 ..hostname --> sxshiv , IP ->192.168.1.2

subnet mask 255.255.255.0..and domain name
www.myhome.com

please let me know how to configure the DNS in Redhat..
thankful if there is any step by step process on the net..

regards,
dev
Honestly, I think using DNS for just your two computers is a lot of overkill. It would be a lot easier to create a file /etc/hosts on both systems that contain the IP address and hostname.

The file could look like this:

192.168.1.1 machine1.myfakedomain.org machine1
192.168.1.2 machine2.myfakedomain.org machine2

Create this file on both of your computers and you can access them by the name of 'machine1' and 'machine2'.

Setting up DNS is quite involved and I'm unsure if there are step-by-step turorials for DNS newbies. You'd best get your hands on a good book about DNS so you can learn about it first.

Perhaps your distribution comes with a DNS admin program, but I wouldn't be able to tell you that.
 
Old 02-12-2002, 03:02 PM   #3
s018811
LQ Newbie
 
Registered: Feb 2002
Location: Ohio
Distribution: Red Hat
Posts: 3

Rep: Reputation: 0
With my limited experience with dns, I found that the tables MUST be in the proper columns for dns to work..it through me...you need both a name to ip address table and a ip to name table (rev entry)..This is making it very simple..it is involved and I would agree with the previous post, just use host table for 2 machines..
 
Old 02-12-2002, 05:00 PM   #4
jimval7
Member
 
Registered: Jan 2002
Location: Dallas, TX
Distribution: RedHat 7.0 - Kernel 2.4.17
Posts: 95

Rep: Reputation: 16
Agree

I agree with the previous 2 post. Unless u just want to learn how to setup DNS, then buy a book and setup one. On my LAN i have 5 computers, and I just add the entries in the /etc/host file and my machines can resolve names or ips.
 
Old 02-12-2002, 06:41 PM   #5
ctdp
Member
 
Registered: Sep 2000
Location: Michigan
Distribution: Redhat
Posts: 30

Rep: Reputation: 15
I agree with the above posts, but there is no need to buy a book. There is plenty of free documentation at:
http://www.comptechdoc.org/os/linux/index.html
and:
http://www.linuxdoc.org
and:
http://www.gnu.org/manual/manual.html

This URL explains setting up Linux DNS:
http://www.comptechdoc.org/os/linux/...nux_ugdns.html
 
Old 02-12-2002, 09:43 PM   #6
scooby
LQ Newbie
 
Registered: May 2001
Posts: 8

Rep: Reputation: 0
Thumbs up BINDCONF

If you want to explore DNS you might try steppin into it slowly with BINDCONF (Available with RedHat - I think it is included in the main RPM for BIND but just in case it is not go ahead and poke around in the SRPM dir. It is a GUI based tool not unlike Linuxconf that is very handy and makes configuring a basic BIND Server very easy.

CHEERS
 
Old 02-16-2002, 10:34 AM   #7
jdevanand
LQ Newbie
 
Registered: Jan 2002
Location: Memphis
Distribution: Redhat 7.2
Posts: 23

Original Poster
Rep: Reputation: 15
appreciate ur replies.........i have edited the /etc/host file and its workin fine............
 
Old 02-16-2002, 10:57 PM   #8
PCRon58
LQ Newbie
 
Registered: Feb 2002
Location: Ohio
Distribution: RedHat
Posts: 3

Rep: Reputation: 0
I don't know if anyone will see this post since this thread seems to be closed, but...

I've been stumbling my way around RedHat 7.2 for the last few weeks.

I've also been monitoring this web site for several weeks. I registered today becasue of this particular posting.

This was exactly the information I was looking for - and it also works on my system.

Thanks for the help!

PCRon58
 
  


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
DNS configuration ?? xedios Linux - Software 6 12-23-2004 01:59 PM
DNS Configuration skecs Linux - Networking 10 11-17-2004 08:31 AM
DNS Configuration DoubleOTeC Linux - Networking 3 09-27-2004 12:18 PM
DNS configuration? existo Slackware 1 01-30-2004 12:43 PM
DNS Configuration jojogeorge Linux - Software 3 09-23-2003 06:01 AM


All times are GMT -5. The time now is 03:11 AM.

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