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

Reply
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 August 12th, 2004, 04:58 AM
nashmash nashmash is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 11 nashmash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old August 12th, 2004, 09:15 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,193 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 14 h 35 m 27 sec
Reputation Power: 77
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

Reply With Quote
  #3  
Old August 12th, 2004, 09:51 AM
nashmash nashmash is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 11 nashmash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This is my static IP. 216.117.177.153

Reply With Quote
  #4  
Old August 12th, 2004, 10:01 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,193 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 14 h 35 m 27 sec
Reputation Power: 77
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?

Reply With Quote
  #5  
Old August 12th, 2004, 10:08 AM
nashmash nashmash is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 11 nashmash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #6  
Old August 12th, 2004, 10:11 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,193 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 14 h 35 m 27 sec
Reputation Power: 77
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?

Reply With Quote
  #7  
Old August 12th, 2004, 10:14 AM
nashmash nashmash is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 11 nashmash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #8  
Old August 12th, 2004, 10:25 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,193 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 14 h 35 m 27 sec
Reputation Power: 77
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.

Reply With Quote
  #9  
Old August 12th, 2004, 10:28 AM
nashmash nashmash is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 11 nashmash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #10  
Old August 12th, 2004, 10:30 AM
nashmash nashmash is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 11 nashmash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
yes got it. I misunderstood. The server is the master of the domain, so thast the reason why the type is master.

Reply With Quote
  #11  
Old August 12th, 2004, 10:33 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,193 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 14 h 35 m 27 sec
Reputation Power: 77
* 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.

Reply With Quote
  #12  
Old August 12th, 2004, 10:48 AM
nashmash nashmash is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 11 nashmash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #13  
Old August 12th, 2004, 10:59 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,193 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 14 h 35 m 27 sec
Reputation Power: 77
yeah, common configuration mistake:

Quote:
Originally Posted by tutorial
You are allowed to specify full domains in your zone files IF you have a period stuck on to the end of it. Always put that period on there if you DON'T want BIND to automatically append the zone name to the end of the domain.


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.

Reply With Quote
  #14  
Old August 12th, 2004, 11:09 AM
nashmash nashmash is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 11 nashmash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #15  
Old August 12th, 2004, 11:15 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,193 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 14 h 35 m 27 sec
Reputation Power: 77
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Multiple Domain and MX with BIND


Thread Tools  Search this Thread