DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Domains and DNS (http://www.daniweb.com/forums/forum150.html)
-   -   How To Install Dns in Linux ? (http://www.daniweb.com/forums/thread60854.html)

saqib389 Nov 7th, 2006 1:37 pm
How To Install Dns in Linux ?
 
hi All

can any one tell me how can i install DNS by using LINUX..
basically i have installed RED HAT.. and i havnt install BIND in that..

now i want to know that how can i install BIND by using commands.. and how can i install BIND by using commands...

can any one tell me ?

Thank you for your time..

Saqib

John A Nov 7th, 2006 8:22 pm
Re: How To Install Dns in Linux ?
 
Hello,

Installing Bind is not complex. First of all, you'll want to download an RPM for Bind:

http://penguinman.com/rh9/bind-9.2.3-1.i386.rpm

Once it's finished downloading, you can install it (as root):
rpm -Uvh bind-9.2.3-1.i386.rpm

Then you can edit named.conf to configure Bind.

See here for more information:
http://www.linuxhelp.net/guides/bind/

saqib389 Nov 8th, 2006 6:45 am
Re: How To Install Dns in Linux ?
 
Quote:

Originally Posted by joeprogrammer (Post 273439)
Hello,

Installing Bind is not complex. First of all, you'll want to download an RPM for Bind:

http://penguinman.com/rh9/bind-9.2.3-1.i386.rpm

Once it's finished downloading, you can install it (as root):
rpm -Uvh bind-9.2.3-1.i386.rpm

Then you can edit named.conf to configure Bind.

See here for more information:
http://www.linuxhelp.net/guides/bind/

what is RPM -Uvh bind -9.2.3-1.i386.rpm ?

John A Nov 8th, 2006 7:09 pm
Re: How To Install Dns in Linux ?
 
Quote:

Originally Posted by saqib389 (Post 273568)
what is RPM -Uvh bind -9.2.3-1.i386.rpm ?

It's a command you enter at the command prompt to install the rpm file that you've downloaded.

Additionally, you'll need to provide the complete path to the RPM and gain root access, so the final command that you enter might be like:
cd /home/you/Desktop
su
[enter your password here, although it won't show up onscreen]
rpm -Uvh bind-9.2.3-1.i386.rpm
Replace /home/you/Desktop with the path to the rpm (where your web browser saved it).

jbennet Nov 15th, 2006 3:39 am
Re: How To Install Dns in Linux ?
 
can someone explain the whole conecpt of domains?

John A Nov 18th, 2006 9:00 pm
Re: How To Install Dns in Linux ?
 
On a local area network, when a computer wants to view something other than an IP address, it first looks in its internal DNS routing table. On Linux, this is usually in /etc/resolv.conf. If it can't find it in there, it asks the local DNS server (whose IP address is in its config) for the IP address of this name that it's trying to find. The DNS server than returns the IP address (if it can be found) to the computer.

When you enter a domain into your address bar, the first thing that happens when you press return is your browser sends a lookup domain request to your DNS server.

DNS servers are servers that contain tables of domains and their IP address that they point to, and these DNS servers are all around the world. They all contain the same data, so it doesn't matter which one you use. Usually, your ISP has a DNS server, so that is usually the one your browser uses to lookup domains, as it's the closest.

When the DNS server recieves the request, it looks up in its domain table, finds the IP address, and sends this back to your computer. Now that your browser has this information, it can then communicate directly with the web server to get the website.

jbennet Nov 19th, 2006 7:45 am
Re: How To Install Dns in Linux ?
 
so if i wanted to point say, www.ben.net to my fixed IP adress, what would i need to do?

also, is thier any benefit of having domains on a linux LAN as opposed to just hostnames

John A Nov 19th, 2006 7:48 pm
Re: How To Install Dns in Linux ?
 
Quote:

Originally Posted by jbennet (Post 277919)
so if i wanted to point say, www.ben.net to my fixed IP adress, what would i need to do?

On your local DNS server, you would need to edit the /etc/named/named.your.domain and /etc/named.conf and add an entry pointing www.ben.net to your fixed IP address. If you don't know how to do this, try looking here:
http://www.xenocafe.com/tutorials/dn...dhat-part2.php

Quote:

also, is thier any benefit of having domains on a linux LAN as opposed to just hostnames
Domains are useful as you can use an entire domain to represent your LAN, and each individual computer can use a subdomain. Or, if you have a larger computer, you can use subdomains for subnetworks inside your LAN. Simply having hostnames works, but it's not as easy to see which network and computer it points to.


All times are GMT -4. The time now is 12:17 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC