Results 1 to 4 of 4

Thread: Setting up BIND9

  1. #1
    Join Date
    Aug 2007
    Location
    Nashville, GA
    Posts
    72
    Rep Power
    8

    Default Setting up BIND9

    I'm trying to setup bind9 on Ubuntu Server 6.06. I want to make sure that I have it configured correctly for Zimbra. The machine name is "mail" on my domain "nunyad.biz". I want to send and receive emails like user@nunyad.biz. Should nunyad.biz and mail.nunyad.biz both have a MX record???

    /etc/bind/named.conf.local

    Code:
    //
    // Do any local configuration here
    
            zone "nunyad.biz" {
                    type master;
                    file "db.nunyad.biz";
                    allow-update { none; };
            };
    
    // Consider adding the 1918 zones here, if they are not used in your
    // organization
    //include "/etc/bind/zones.rfc1918";
    /var/cache/bind/db.nunyad.biz
    Code:
    ;
    ; BIND data file for local loopback interface
    ;
    $TTL    604800
    @       IN      SOA     mail.nunyad.biz. admin.mail.nunyad.biz(
                                  2         ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
    ;
    @       IN      NS      mail.nunyad.biz.
            IN      MX      10 mail.nunyad.biz.
            IN      A       192.168.254.160
    mail    IN      A       192.168.254.160
    www     IN      A       192.168.254.160
    When ever I do a "nslookup" on mail.nunyad.biz and nunyad.biz I get:
    Code:
    Server:         192.168.254.160
    Address:        192.168.254.160#53
    
    Name:   mail.nunyad.biz
    Address: 192.168.254.160
    
    
    Server:         192.168.254.160
    Address:        192.168.254.160#53
    
    Name:   nunyad.biz
    Address: 192.168.254.160

    But when i run "host -t mx domain":


    Code:
    host -t mx nunyad.biz
    nunyad.biz mail is handled by 10 mail.nunyad.biz.
    
    host -t mx mail.nunyad.biz
    mail.nunyad.biz has no MX record
    dig mx nunyad.biz

    Code:
    ; <<>> DiG 9.3.2 <<>> mx nunyad.biz
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62767
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;nunyad.biz.                    IN      MX
    
    ;; ANSWER SECTION:
    nunyad.biz.             604800  IN      MX      10 mail.nunyad.biz.
    
    ;; AUTHORITY SECTION:
    nunyad.biz.             604800  IN      NS      mail.nunyad.biz.
    
    ;; ADDITIONAL SECTION:
    mail.nunyad.biz.        604800  IN      A       192.168.254.160
    
    ;; Query time: 2 msec
    ;; SERVER: 192.168.254.160#53(192.168.254.160)
    ;; WHEN: Sun Sep  9 13:51:06 2007
    ;; MSG SIZE  rcvd: 79
    dig mx mail.nunyad.biz
    Code:
    ; <<>> DiG 9.3.2 <<>> mx mail.nunyad.biz
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50962
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;mail.nunyad.biz.               IN      MX
    
    ;; AUTHORITY SECTION:
    nunyad.biz.             604800  IN      SOA     mail.nunyad.biz. admin.mail.nunyad.biz.nunyad.biz. 2 604800 86400 2419200 604800
    
    ;; Query time: 2 msec
    ;; SERVER: 192.168.254.160#53(192.168.254.160)
    ;; WHEN: Sun Sep  9 13:52:34 2007
    ;; MSG SIZE  rcvd: 91

  2. #2
    Join Date
    Sep 2007
    Location
    Ogre
    Posts
    26
    Rep Power
    8

    Default Zone

    You created incorrect BIND9 zone

    Code:
    $TTL 2D
    @               IN SOA          ns1.nunyad.biz.     admin.nunyad.biz. (
                                    2007091001      ; serial
                                    3h              ; refresh
                                    1h              ; retry
                                    2w              ; expiry
                                    3h )            ; minimum
    
    nunyad.biz. IN MX           10 mail.nunyad.biz.
    nunyad.biz. IN NS           ns1.nunyad.biz.
    nunyad.biz. IN NS           ns2.nunyad.biz.
    ns1             IN A            192.168.254.160
    ns2             IN A            192.168.254.161
    mail            IN A            192.168.254.160
    webmail         IN A            192.168.254.160
    www             IN A            192.168.254.160

  3. #3
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    Default

    There's nothing wrong with the zone file (apart from it really should have 2 nameservers ideally).

    host -t mx nunyad.biz
    nunyad.biz mail is handled by 10 mail.nunyad.biz.

    host -t mx mail.nunyad.biz
    mail.nunyad.biz has no MX record
    This is correct. The hostname shouldn't have an MX record, just the domainname.

  4. #4
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default Complete Ubuntu Install details here

    This Wiki Article goes through the entire install of Zimbra on Ubuntu Server, including the configuration of bind. I wrote it because I found it impossible to get an after-the-fact installation to behave properly with bind or bind9, but I have replicated this installation methodology several times without a hitch.

    Hope it helps,

    Dan

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 09:06 AM
  2. Replies: 13
    Last Post: 05-15-2007, 06:41 AM
  3. Replies: 9
    Last Post: 04-14-2007, 08:31 AM
  4. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 06:38 PM
  5. Network edition - strange behavior
    By goetzi in forum Installation
    Replies: 6
    Last Post: 11-16-2005, 02:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •