Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-23-2003, 03:54 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Posts: 15
Rep:
|
oblivious to DNS
currently I operate my site using Dns2go to keep track of my dynamic IP on the cable modem. However, they want $80 to have e-mail, which isn't good. So now I want to operate independently. I've been reading up on DNS(which I'm assuming I'll need) but i'm not understanding any of it. If anyone has a good explanation in plain english of how to setup an entire site, it'd be of great help. And I've already read through most of the DNS websites i've seen on this board, they're no good to me.
Thanks
|
|
|
07-23-2003, 05:19 PM
|
#3
|
LQ Newbie
Registered: Jul 2003
Posts: 15
Original Poster
Rep:
|
yes i have and to be honest, i'm an intellegent guy but this insane. lol i just don't have a good grasp of what's going on.
I have one machine, and only one will be used. for www, email, ftp, etc.
With the domain I pointed it to both:
www.bake-sale.net and
ns1.bakesale.net
just to cover some bases. I know it'll take a few days to populate so that's not the issue. I'm just plain lost, thats all. can 'ns1' and 'www' point to the same machine? are they primary zones or domains or what? the terminology isn't that great...
|
|
|
07-23-2003, 05:53 PM
|
#4
|
root
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,609
|
|
|
|
07-23-2003, 06:09 PM
|
#5
|
LQ Newbie
Registered: Jul 2003
Posts: 15
Original Poster
Rep:
|
yeah bud, i read through that one too.
now messing around with some of the BIND settings I've been able to partially ping and tracert ns1.bake-sale.net.
is this a good thing? should i be excited about this?
|
|
|
07-24-2003, 03:33 PM
|
#6
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Yes, it means your configuration works. If you still have problems with it, please post the zone file. Someone will correct it (if needed) for you.
|
|
|
07-25-2003, 04:56 PM
|
#7
|
LQ Newbie
Registered: Jul 2003
Posts: 15
Original Poster
Rep:
|
rock on. i figured all those trial-and error settings would yield something.
now the next question to ask is directory namin for the client.
all html files are in /htdocs. if the client has website www.linuxquestions.org, would the directory be named 'linuxquestions' or is that something the DNS will point to specifically?
|
|
|
07-26-2003, 03:45 PM
|
#8
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
The name (and location) of the file is your choice. The only thing is to tell the server where's your file. It's done using 'file' command in named.conf file. To make a full path, you need to get directory in 'options' of thet file and 'file' secrtion describing your domain. Example:
Code:
options {
directory "/var/named";
};
zone "yourzone.net" {
type master;
file "master/yourzone.net";
};
In this case, the file describin yourzone.net is /var/named/master/yourzone.net
It can have any name, but it's a good idea to use a name similar to your domain (makes searching for the file easier).
|
|
|
08-12-2003, 11:34 AM
|
#9
|
LQ Newbie
Registered: Jul 2003
Posts: 15
Original Poster
Rep:
|
the conf files
well i have read up on the subject and now it's come to an interesting situation.
here's the named.conf file:
/*
*named.conf - not using rndc
*/
options {
directory "/var/named";
};
zone "." in {
type hint;
file "db.cache";
};
zone "whoisrory.com" in {
type master;
file "whoisrory.com";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "0.168.192.in-addr.arpa.dns";
};
the zone file for whoisrory.com(master) is:
$TTL 86400
@ IN SOA ns1.whoisrory.com. scot.jesusshaves.com. (
11
21600
3600
604800
86400 )
IN NS ns1.whoisrory.com.
www IN A ns1.whoisrory.com.
to me, it all looks nice however, going to ns1.whoisrory.com will yield you the defualt site on my computer. i can work around this, but using www .whoisrory.com gives you a bad website.
so now im a bit confused. lol.
|
|
|
08-12-2003, 01:29 PM
|
#10
|
Member
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358
Rep:
|
Webmin offers a nice interface for setting up dns records and zone files.
Alternatly you could use dyndns.org for dynamic dns they allow mx records.
|
|
|
08-12-2003, 02:08 PM
|
#11
|
Member
Registered: Aug 2003
Location: Grand Junction, CO, USA
Distribution: Changes monthly. Also use Solaris, IRIX, and FreeBSD (and that's just at my house!)
Posts: 40
Rep:
|
Hello,
I think you zone file is goofy. In your zone file, you have something like:
www IN A ns1.whoisrory.com
It should read (after all the TTL stuff and stuff, delete all in you file after 86400) )
NS ns1.whoisrory.com.
NS scot.jesusshaves.com.
ns1 A (insert IP address here)
www CNAME ns1.whoisrory.com.
CNAME specifies an alias, so www will point to ns1. Restart named after you make the changes. Also, windows boxes seem to cache DNS info, so a reboot might help, or just wait it out!
--Eric
|
|
|
08-12-2003, 10:49 PM
|
#12
|
LQ Newbie
Registered: Jul 2003
Posts: 15
Original Poster
Rep:
|
eric,
thanks for the reply, that makes a lot of sense believe it or not. lol
now after all that is said and done and i've established the .com the next thing i woner is what happens if you run more than one site? do the zone files support "ip.ip.ip.ip/directory" as a valid CNAME argument? or is there another file type that actually redirects to a different directory on the same machine?
i know when i login to another site of mine (hosted with a different company) that my workign directory is the same as my domain name, minus the TLD indicator. THis is the direction i want to take.
Thanks again
scot
|
|
|
08-13-2003, 08:13 AM
|
#13
|
Member
Registered: Aug 2003
Location: Grand Junction, CO, USA
Distribution: Changes monthly. Also use Solaris, IRIX, and FreeBSD (and that's just at my house!)
Posts: 40
Rep:
|
Scot,
As far as Apache, use the <VirtualHost> directive in your apache config file. Specifics can be found at http://httpd.apache.org/docs/vhosts/index.html
Apache has the ability to determine which directory to display based on the URL entered in the browser. So:
www.whoisrory.net can point to /var/www/whoisrory/index.html
-and-
www.whoami.net can point to /var/www/whoami/index.html
and so on.
For FTP and sendmail, etc. I would create a new master zone in your config file for each domain. You currently have whoisrory.net, but you could also have whoami,net, etc. in that file and have the zone files point to ns1.whoisrory.net. Sorry I can't be more specific, but I've only ever set up multiple domains for Apache, not sendmail or FTP.
--Eric
|
|
|
All times are GMT -5. The time now is 02:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|