Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DNS Configeration 2

Status
Not open for further replies.

JKingdom

Programmer
May 9, 2004
141
AE
How do i configer DNS in Linux 9 ..

i have 2 PCs .. i installed server in the first and workstation in the second ...

now i want to setup a network ..

i connected them using cross over cable and the connection is working perfect.. but i don't know how to configer them using ... system settings >> network >> DNS tab and the hosts tab

thanks..
 
If it's working, don't touch nothin'. Ya might break it. :) If this is just going to be a peer to peer network, you will be able to keep things very simple. The dns tab is where you would enter the ip addresses of your dns servers. If you do not run your own dns servers, you would supply the ip of your networks gateway. This is the machine the network goes through to get to the internet. As for the hosts tab, You would enter the ip of each machine on your network, This is not really needed but it helps some programs to find reources on your lan if they are refered to by host (machine) name. Each machine on your lan would have a private ip address. A private ip is one that can only be accessed from within a particular subnet. For example 192.168.0.1 and 192.168.0.2 are on the same subnet, where 192.168.1.1 and 192.168.0.1 are not. You would need a bridge or gateway to connect the two subnets. Since this subnet ip range only covers the 4th (far right)octet, you would use a subnet mask of 255.255.255.0. You would assign a host name to each of the ip addresses you list here.
 
so if i want to create my own DNS server (not to the internet).. e.g : kingdom.com ... i will have to create new host name ?? then i guess i have to identify the host e.g: J.kingdom.com ... J2.kingdom.com ... and then go to the other computer and locate it ?? this what i couldn't understand .. if i create DNS in the server how i run the other computer using this DNS ?
 
My point was if you just have a peer to peer setup, you don't need a dns server. You only have two machines. All machines know who they are. They only need to dns server to tell it what ip belongs to a host (or domain) name. Kind of like information. You call 411 and ask for the number for Joe Doakes and they give you 555-1234. This is what a dns server does. Now since one machine only needs to know the ip of one other machine, you can see the foolishness here. The first machine would access the second machine to get the address of the second machine.
 
i understood your point its was so clear .. thanks alot.. but am required to learn about DNS even if its peer to peer ... i connecting the 2 PCs ( server and workstation) and i created users on teh server .. but what then ?? how to log in from the workstation using the user accounts that created on the server ??
 
You can use telnet or ssh to login into shell mode. You can also mount a network drive if you want to access each other's file systems directly. To get back to the dns server, the one that comes with most linux distros is Bind. The daemon is called "named". I wouldn't know where to start to explain but it uses a config file called /etc/named.conf. To get started you can read the man pages on it. Just type "man named" in a terminal window (shell prompt). At the bottom of the pages, it has other resouces for help on the subject.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top