LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-23-2003, 03:54 PM   #1
Bake-SaleNet
LQ Newbie
 
Registered: Jul 2003
Posts: 15

Rep: Reputation: 0
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
 
Old 07-23-2003, 04:00 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Have you read http://www.tldp.org/HOWTO/DNS-HOWTO.html (especially teh example files)?
 
Old 07-23-2003, 05:19 PM   #3
Bake-SaleNet
LQ Newbie
 
Registered: Jul 2003
Posts: 15

Original Poster
Rep: Reputation: 0
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...
 
Old 07-23-2003, 05:53 PM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,609

Rep: Reputation: 4115Reputation: 4115Reputation: 4115Reputation: 4115Reputation: 4115Reputation: 4115Reputation: 4115Reputation: 4115Reputation: 4115Reputation: 4115Reputation: 4115
http://www.linuxquestions.org/questions/answers/26

--jeremy
 
Old 07-23-2003, 06:09 PM   #5
Bake-SaleNet
LQ Newbie
 
Registered: Jul 2003
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 07-24-2003, 03:33 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
Old 07-25-2003, 04:56 PM   #7
Bake-SaleNet
LQ Newbie
 
Registered: Jul 2003
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 07-26-2003, 03:45 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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).
 
Old 08-12-2003, 11:34 AM   #9
Bake-SaleNet
LQ Newbie
 
Registered: Jul 2003
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 08-12-2003, 01:29 PM   #10
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
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.
 
Old 08-12-2003, 02:08 PM   #11
JRandom
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: Reputation: 15
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
 
Old 08-12-2003, 10:49 PM   #12
Bake-SaleNet
LQ Newbie
 
Registered: Jul 2003
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 08-13-2003, 08:13 AM   #13
JRandom
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: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dns client cannot resolve on dns server jtvillegas Linux - Software 3 03-12-2016 03:30 PM
Do I leave primary and seconday DNS blank for a DNS Server? imsam Linux - Networking 3 10-25-2004 01:48 PM
lame dns servers etc and general dns issues suse_linux9.1 Linux - Networking 3 06-01-2004 01:50 PM
DNS still slow after installing caching DNS mooreted Linux - Networking 16 01-01-2004 12:18 AM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration