Link to home
Start Free TrialLog in
Avatar of ixur
ixur

asked on

Bind Setup

How do I add another MX record to BIND servers?  Does anyone have any good resources to setup this records to point from the external DNS servers to Email server for smtp?

Hom many MX records can setup on external DNS servers (using Bind)?  There is a primary and secondary.

Thanks in advance,
Ixur
Avatar of Steve
Steve
Flag of Australia image

ummm I dont quire understand your question

'normally' your DNS Server loads your zone files for the defined domain names, and you add your MX records to those zone files..

you can add as many MX records as you like, so long as you preference them eg..

MX 10 primary.mail.exchange.host
MX 20 secondary.mail.exchange.host
MX 30 etc etc

Is this what you mean ?

Steve
Avatar of ixur
ixur

ASKER

There are 2 domain names setup in the server already.  I have a new domain name that I am pointing to the server from the hosting company for the purpose of adding a new domain name for SMTP addresses.  From what your showing I can add as many of these MX records as needed?  Also, how do I go about setting this new domain name up in Bind?   There are 2 DNS servers in the DMZ, I'm guessing one is primary and one is secondary?
yes you can add as many MX (mail exchanger) records as you like.. (make sure they are configured to queue mail though for your domain first.. you cant just add any old server to be an MX)..

best thing to do is to do an nslookup on your working domain names to work out which is your primary and which is your secondary.. then you need to edit the named.conf files on both servers and add the new domain name.. then create the zone file for the new domain on your primary name server, reload named on both servers and it should replicate to the secondary.. and you're good to then start setting up your email stuff..

Steve
Avatar of ixur

ASKER

ONe domain name is already setup on these DNS servers and is working w/ Exchange;

So here is the new zone, the syntax in the named.conf file looks like this:
   zone "testsecondary" {
              type slave;
              file "testsecondary.zone";
                            masters  {64.22.198.22; };
};
zone "22.198.192.in-addr.arpa"{
             type master;
             file "22.198.192.in-addr-arpa.zone";
};

Then have added the MX record to  domain.tld.zone file:

  IN  MX  30 mail.mailserver.com

There is something wrong with the zone file/syntax.

Thanks for your help!



ASKER CERTIFIED SOLUTION
Avatar of Steve
Steve
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ixur

ASKER

Excellent thanks.

And for the records?  Should this be the only record I need to configure on it:

IN  MX  30 mail.mailserver.com
well thats 'part' of the zone file.. the setup of your zone file depends on your situation though..

have a look at this link for zone file configurations..

http://en.wikipedia.org/wiki/Zone_file

Steve