|
|
|
| |||||||||
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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? |
|
#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? |
|
#6
|
|||
|
|||
|
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? |
|
#7
|
||||
|
||||
|
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.
|
|
#8
|
|||
|
|||
|
hahah...thank you..that's why in my first thread i include step by step.
|
|
#9
|
|||
|
|||
|
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 |
|
#10
|
|||
|
|||
|
How about using the existing nameservers (ns1 and ns2) to a new domain
Quote:
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 |
|
#11
|
||||
|
||||
|
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. |
| Viewing: Dev Shed Forums > System Administration > DNS > how to create multiple DNS hosting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|