DNS configuration how to
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
please let me know how to configure the DNS in Redhat..
thankful if there is any step by step process on the net..
Re: DNS configuration how to
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.
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..
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.
I agree with the above posts, but there is no need to buy a book. There is plenty of free documentation at:
This URL explains setting up Linux DNS:
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.
appreciate ur replies.........i have edited the /etc/host file and its workin fine............
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!
|All times are GMT -5. The time now is 01:09 PM.|