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.