DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 10th, 2004, 07:35 PM
rharis rharis is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 30 rharis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
how to create multiple DNS hosting

i have setup my DNS server (spearcomm.net) using BIND (Thanks to silent rage and alangraph). Primary name server is ns1.spearcomm.net and secondary name server ns2.spearcomm.net.

how do i go about hosting another domain name, for example speartsoft.com in the same server?

RH

Reply With Quote
  #2  
Old June 10th, 2004, 09:13 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
ah yes, accidentally forgot the first time you asked this. I'll ignore that post since you created a new topic.

Create another zone block like the first one you have in named.conf with the new domain's information and new filename.

Create another file similar to the original domain's file to store the domain information.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #3  
Old June 10th, 2004, 10:48 PM
rharis rharis is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 30 rharis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
do you mean i have to add the new zone in the existing named.conf file?


# Configure ourself as the host for spearcomm.net
zone "spearcomm.net" IN {
type master;
file "spearcomm.net.zone";
};


# Configure ourself as the host for speartsoft.com
zone "spearcomm.net" IN {
type master;
file "speartsoft.com.zone";
};

the rest i'm not so sure. can you show it to me what do you mean by i have to create a new filename.Also what do you mean by "Create another file similar to the original domain's file to store the domain information"

appreciate if you can show it to me and what are the files that will be create.

thanks

RH

Reply With Quote
  #4  
Old June 11th, 2004, 08:45 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
man, it's not difficult. Just do what you had to do to create the first domain. What you have there is 2 zone blocks for the same zone:

zone "spearcomm.net" IN {
zone "spearcomm.net" IN {

You have 2 identical lines like that. You need to change one to com instead of net. You also have the following 2 lines:

file "spearcomm.net.zone";
file "spearcomm.com.zone";

good, one of them is pointing to one file, the other is pointing to another file. I hope both files exist?

Reply With Quote
  #5  
Old June 11th, 2004, 10:04 PM
rharis rharis is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 30 rharis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
This is my spearcomm.net.zone file.

@ SOA ns1 ( ; ns1.spearcomm.net is the primary server for spearcomm.net
postmaster ; contact email for spearcomm.net is postmaster@spearcomm.net
2004041700 ; Serial ID in reverse date format
21600 ; Refresh interval for slave servers
1800 ; Retry interval for slave servers
604800 ; Expire limit for cached info on slave servers
900 ) ; Minimum Cache TTL in zone records

@ NS ns1 ; ns1.spearcomm.net is a host for spearcomm.net
@ NS ns2 ; ns2.spearcomm.net is a host for spearcomm.net

@ A 203.125.234.117 ; spearcomm.net's IP address is 203.125.234.117

@ MX 10 mail ; Mail for *@spearcomm.net is sent to mail.spearcomm.net

ns1 A 203.125.234.116 ; ns1.spearcomm.net's IP address is 203.125.234.116
ns2 A 203.125.234.116 ; ns2.spearcomm.net's IP address is 203.125.234.116

mail A 203.125.234.117 ; mail.spearcomm.net's IP address is 203.125.234.117

www A 203.125.234.117 ; www.spearcomm.net's IP address is 203.125.234.117


so i create another speartsoft.com.zone file and save.

@ SOA ns1 ( ; ns1.speartsoft.com is the primary server for speartsoft.com
postmaster ; contact email for speartsoft.com is postmaster@speartsoft.com
2004041700 ; Serial ID in reverse date format
21600 ; Refresh interval for slave servers
1800 ; Retry interval for slave servers
604800 ; Expire limit for cached info on slave servers
900 ) ; Minimum Cache TTL in zone records

@ NS ns1 ; ns1.speartsoft.com is a host for speartsoft.com
@ NS ns2 ; ns2.speartsoft.com is a host for speartsoft.com

@ A 203.125.234.117 ; speartsoft.com's IP address is 203.125.234.117

@ MX 10 mail ; Mail for *@speartsoft.com is sent to mail.speartsoft.com

ns1 A 203.125.234.116 ; ns1.speartsoft.com's IP address is 203.125.234.116
ns2 A 203.125.234.116 ; ns2.speartsoft.com's IP address is 203.125.234.116

mail A 203.125.234.117 ; mail.speartsoft.com's IP address is 203.125.234.117

www A 203.125.234.117 ; www.speartsoft.com's IP address is 203.125.234.117


Then i create these entries in named.conf

# Configure ourself as the host for spearcomm.net
zone "spearcomm.net" IN {
zone "speartsoft.com" IN {
type master;
file "spearcomm.net.zone";
file "speartsoft.com.zone";
} ;

Is this correct?

Reply With Quote
  #6  
Old June 11th, 2004, 10:51 PM
rharis rharis is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 30 rharis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
i have done the above configuration but when i start bind, i receive error message.
named.conf unknown option 'zone'
and also "}" expected near end of file.

what is not correct?

Reply With Quote
  #7  
Old June 11th, 2004, 11:27 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
no no no, you don't combine things. You create a whole new zone {} block. Copy the original zone block and paste to the end of the file then change the filename and the zone name. You amaze me.

Reply With Quote
  #8  
Old June 13th, 2004, 02:02 AM
rharis rharis is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 30 rharis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
hahah...thank you..that's why in my first thread i include step by step.

Reply With Quote
  #9  
Old July 16th, 2004, 08:36 AM
ToyShot ToyShot is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 1 ToyShot User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to ToyShot
Hi,

I have just read this post about a second domain setup and I have the question about the secondary SOA file.

If I understand this correctly is that you create an uniq ns for each zone.

What is I wish that my first zone should be the primary ns for the second zone?

For exampel in my case I have a .nu adress and got a new .com adress.

I have pointed the ns settings in the .com zone to my .nu nameserver and to a friends as a secondary. He's running a .com zone.

But when I'm trying to register the namservers on the registrate only my friends namserver are acceppted for the zone not my .nu namserver.

ns1.gautland.nu is my primary namserver.
ns2.creson.com is the secondary namserver.

The new zone I'm setting up is Darkfellowship.com.

When I'm doing a who is only my friends namserver comes up.

--------------------------
$TTL 3h
darkfellowship.com. IN SOA ns1.gautland.nu. hostmaster.gautland.nu. (
1089543175 ; Serial
3h ; Refresh after 3 hours
1h ; Retry after 1 hour
1w ; Expire after 1 week
1h ) ; Negative caching TTL of 1 hour

darkfellowship.com. IN NS ns1.gautland.nu.
darkfellowship.com. IN NS ns2.creson.com.

-----------------------------

$TTL 3h
gautland.nu. IN SOA ns1.gautland.nu. hostmaster.gautland.nu. (
1089543175 ; Serial
3h ; Refresh after 3 hour
1h ; Retry after 1 hour
1w ; Expire after 1 week
1h ) ; Negative caching TTL of 1 hour

@ IN NS ns1.gautland.nu.
IN NS ns2.creson.com.
IN MX 10 mail.gautland.nu.

ns1 IN A 217.215.117.63



//Benny

Reply With Quote
  #10  
Old July 20th, 2004, 12:19 PM
xorprime xorprime is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 xorprime User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How about using the existing nameservers (ns1 and ns2) to a new domain

Quote:
Originally Posted by SilentRage
no no no, you don't combine things. You create a whole new zone {} block. Copy the original zone block and paste to the end of the file then change the filename and the zone name. You amaze me.


the entry for the zone files would be easy for a new domain, let's say newdomain.com

zone "newdomain.com" IN {
type master;
file "newdomain.com.zone";
} ;

but what would be the value of newdomain.com.zone file if it will be using ns1.speartsoft.net and ns2.speartsoft.net as opposed to the original post where it will use the nameserver of the same domain name (ns1.newdomain.com and ns2.newdomain.com)

Thanks

xorprime

Reply With Quote
  #11  
Old July 20th, 2004, 01:34 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
You remove the IP records:

ns1.newdomain.com. A 127.0.0.1
ns2.newdomain.com. A 127.0.0.2

Since you won't be using them. And you make the NS records match your host name servers:

newdomain.com. NS ns1.speartsoft.net.
newdomain.com. NS ns2.speartsoft.net.

I'm closing this thread. Don't post in other people's topics.

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsSystem AdministrationDNS > how to create multiple DNS hosting


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |