|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Multiple Domain and MX with BIND
Hi
I followed "Bet you want to setup a DNS server huh?" and got the DNS server running. I have a domain name syednishat.com and I created a name server, ns1.syednishat.com, ns2.syednishat.com. I have one static IP address, where I want to install my mail server as well as point my two other domains. I am not very sure how do I point both my domain MX record to the same IP address as well as I am not sure how do I point both my domain to the same IP address. I am using Windows 2003 server and installed BIND as per the instruction |
|
#2
|
||||
|
||||
|
What's your IP? I'll test to make sure your dns server looks ok.
__________________
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
|
|||
|
|||
|
This is my static IP. 216.117.177.153
|
|
#4
|
||||
|
||||
|
Well looks to me you did a fine job assigning the same IP to all those domains.
dig @216.117.177.153 syednishat.com axfr Do the same thing for another domain. It's the same concept. You do understand what you did right? |
|
#5
|
|||
|
|||
|
Also I have few more queries
1. under C:\Windows\System32\dns, there are some files like 177.117.216.in-addr.arpa.dns, cache.dns, dns.log, syednishat.com.dns. In the first two file there is this line @ IN SOA NISHATIPONLY. hostmaster. Where "NISHATIPONLY" is my computer name Do these file matter? Does my Computer Name affect anything 2. My Computer Name is not same as the domain name (syednishat.com) is that ok, or shd it be like the domain name 3. My IP: 216.117.177.153 |
|
#6
|
||||
|
||||
|
well I've confirmed it's definately BIND that is running, so no, it does not matter what your computer name is. All *.dns files may be deleted I think. The files the tutorial works with are *.zone. The .dns file extension is used by Microsoft DNS Server which comes with Windows 2003.
Figured out how to add a second domain yet? |
|
#7
|
|||
|
|||
|
Do I have to create new zone file, Like I did for "syednishat.com.zone". SO if my domain is nashmash.com
then I will have create a zone file called "nashmash.com.zone" What modification will I have to do in my Named.conf and What modification do I have to do in the 216.117.177.rev file? Are there any other files that needs modification? |
|
#8
|
||||
|
||||
|
You really should read over that tutorial again perhaps. I thought for sure I wrote it explaining why each change was necessary.
named.conf is what BIND loads. That file has to tell BIND what domains you want hosted. It also has path information to tell BIND where the zone files are located so that it can answer requests for that domain. So yeah, you need to add another zone block to tell BIND you want to host another domain. It should be pretty similar to the one you setup for "syednishat.com". And yes, you need to create another file for the new domain and tell BIND where it is with the "file" line inside of the zone block. It all makes a lot of sense if you try to understand it. Don't ever follow instructions without knowing what you're doing. Ask questions if ya have to if you don't understand something. I don't think it matters what you do with the .rev file at this point. |
|
#9
|
|||
|
|||
|
Thanx for that, my confusion was in this line "type master;"
zone "syednishat.com" IN { type master; file "syednishat.com.zone"; }; do all domains have to be master? |
|
#10
|
|||
|
|||
|
yes got it. I misunderstood. The server is the master of the domain, so thast the reason why the type is master.
|
|
#11
|
||||
|
||||
|
* SilentRage smiles
yep, if you are a master of the domain type should be master. If you have another server (a slave), it can download the zone contents from the master server automatically when it changes. On the second server it would be type "slave" for those domains. There's other types, but you won't have to worry about them.
|
|
#12
|
|||
|
|||
|
I did the second domain (nashmash.com) but I was not sure what to put on the ns. Just check the result, the ns1 and ns2 has mixed domains. I added ns1.syednishat.com in the place of ns1.
I want nashmash.com to be on ns1.syednishat.com |
|
#13
|
||||
|
||||
|
yeah, common configuration mistake:
Quote:
And sure enough, you left off the period, cause this is what DNS Crawler is seeing: dig @216.117.177.153 nashmash.com axfr And you can delete the ns1 and ns2 hosts cause you're not using them in the nashmash.com zone. |
|
#14
|
|||
|
|||
|
All right. Its done. So now if I change the ns server at my registrar to ns1.syednishat.com and ns2.syednishat.com for my domain nashmash.com and syednishat.com, it will come to this computer correct?
Now I have to setup virtual server and click on to advance to add the host headers for both the domain, correct? Is there anything else I need to do. Or this is enogh for my site to work? |
|
#15
|
||||
|
||||
|
You can delete these records since you won't be using them.
ns1.nashmash.com 900 A 216.117.177.153 ns2.nashmash.com 900 A 216.117.177.153 And yes, in IIS you enable "Host Headers" to host multiple websites on a single IP/port. And yes, you need to change the name servers at your registrar. That's why I had to ask for your IP cause I noticed that you had something else in place as your domain hosts. You'll also need to register the name servers first at your registrar so that it knows what IP address goes with each ns domain. |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > Multiple Domain and MX with BIND |
| Thread Tools | Search this Thread |