HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Virtual domains & BIND configutation (http://www.howtoforge.com/forums/showthread.php?t=40783)

thavaht 7th November 2009 17:35

Virtual domains & BIND configutation
 
Hi all,

Need a help configuring BIND.
I’ve setup a new server (let’s say, named: doc. my_site.ac.mz) following a “virtual users and domain howto” and it works fine.

In my organization, a educational organization, there is a mail server running and configured to accept mails for the domain (my_site.ac.mz).

What is intended is to have two subdomains one for students and other for other people (e.g. doc.my_site.ac.mz and stu.my_site.ac.mz) with virtual users such as user1@doc.my_site.ac.mz, user2@doc.my_site.ac.mz, user1@stu.my_site.ac.mz, etc., and to have the new server accepting mail for these subdomains.

My questions is how to proper configure BIND so that email to user2@doc.my_site.ac.mz,..., user1@stu.my_site.ac.mz will be delivered to the new server?

So far the zone I’ve set up looks like follows:

Code:

$TTL 14400
@      86400    IN      SOA    tels.my_site.ac.mz. hostmaster.my_site.ac.mz. (
                2009101501      ; serial, todays date+todays
                86400          ; refresh, seconds
                7200            ; retry, seconds
                3600000        ; expire, seconds
                86400 )        ; minimum, seconds
my_site.ac.mz. 86400 IN NS tels.my_site.ac.mz.
my_site.ac.mz. 86400 IN NS ns2.my_site.ac.mz.
tels                    IN A 196.28.228.224
ns2                            IN A 196.28.228.223
my_site.ac.mz. IN A 196.28.228.223
localhost.my_site.ac.mz. IN A 127.0.0.1
my_site.ac.mz. IN MX 10 mail.my_site.ac.mz.
mail        IN A 196.28.228.223
www        IN CNAME mail.my_site.ac.mz.
ftp        IN CNAME mail.my_site.ac.mz.

So I think adding the following lines :
Code:

doc.my_site.ac.mz. 86400 IN NS tels.my_site.ac.mz.
stu.my_site.ac.mz. 86400 IN NS tels.my_site.ac.mz.

doc.my_site.ac.mz.        IN A 196.28.230.99
stu.my_site.ac.mz.        IN A 196.28.230.99

doc.my_site.ac.mz.        IN MX 10 doc.my_site.ac.mz.
stu.my_site.ac.mz.        IN MX 10 doc.my_site.ac.mz.

Is that a valid configuration?
TIA,
thavaht

falko 8th November 2009 14:41

You just need

Code:

doc.my_site.ac.mz.        IN A 196.28.230.99
stu.my_site.ac.mz.        IN A 196.28.230.99

doc.my_site.ac.mz.        IN MX 10 doc.my_site.ac.mz.
stu.my_site.ac.mz.        IN MX 10 doc.my_site.ac.mz.

But if emails for stu.my_site.ac.mz should be deliered to a different server, the MX record for stu.my_site.ac.mz must point to that other server.

thavaht 8th November 2009 15:13

Thanks for replying.
Another question I’m facing now is about the reverse zones:

Since I’m using IP’s on 196.28.228.XXX and 196.28.230.XXX, is that legal to create two reverse zones, 228.28.196.in-addr.arpa and 230.28.196.in-addr.arpa?

falko 9th November 2009 14:08

Yes, but usually your ISP that gave you the IPs create the reverse records for you. I'd ask them if they can do it for you.


All times are GMT +2. The time now is 18:50.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.