Results 1 to 4 of 4

Thread: [SOLVED] Split-dns under debian... I know, yet another dns prob ;)

  1. #1
    Join Date
    Sep 2008
    Location
    Belgium
    Posts
    91
    Rep Power
    7

    Default [SOLVED] Split-dns under debian... I know, yet another dns prob ;)

    Hi guys,

    I'm sorry to be back with yet another DNS prob but I read all the posts you had and just can't get mine to work.

    Could you help?

    My Zimbra server is in a DMZ with a non public ip (10.0.0.1). The installation was fine 'till the usual DNS check so I installed the DNS but now the DNS is never queried, it just goes straight through it and queries other DNSs that give it a public ip (my gateway).

    Here are my files, I hope you can spot what must be a stupid omission but I've been at it for too long.

    21.18.3.99 is an external DNS (my provider)

    /etc/bind/named.conf

    Code:
    include "/etc/bind/named.conf.options";
    
    logging {
            category lame-servers { null; };
            category cname { null; };
    };
    
    zone "." {
            type hint;
            file "/etc/bind/db.root";
    };
    
    zone "localhost" {
            type master;
            file "/etc/bind/db.local";
    };
    
    zone "127.in-addr.arpa" {
            type master;
            file "/etc/bind/db.127";
    };
    
    zone "0.in-addr.arpa" {
            type master;
            file "/etc/bind/db.0";
    };
    
    zone "255.in-addr.arpa" {
            type master;
            file "/etc/bind/db.255";
    };
    
    zone "10.in-addr.arpa" {
                            type master;
                            file "/etc/bind/db.10";
    };
    
    zone "mydomain.com.in-addr.arpa" {
                            type master;
                            file "/etc/bind/db.mydomain.com";
    };
    
    include "/etc/bind/named.conf.local";

    /etc/bind/named.conf.options

    Code:
    options {
            directory "/var/cache/bind";
            fetch-glue no;
            forwarders {
                    21.18.3.99;
            };
    };
    /etc/bind/db.mydomain.com
    Code:
    $TTL  604800
    @  IN SOA   mail.mydomain.com. hostmaster.mail.mydomain.com. (
          2008092005     ; Serial
              604800     ; Refresh
               86400     ; Retry
             2419200     ; Expire
              604800 )   ; Negative Cache TTL
    ;
    
    @              IN    NS       mail.mydomain.com.     ; Inet Address of name server
                   IN    MX 10    mail.mydomain.com.     ; Primary Mail Exchanger
    @              IN    A        10.0.0.1
    mail           IN    A        10.0.0.1
    /etc/bind/db.10
    Code:
    $TTL  604800
    @  IN SOA   mail.mydomain.com. (
                   2     ; Serial
              604800     ; Refresh
               86400     ; Retry
             2419200     ; Expire
              604800 )   ; Negative Cache TTL
    ;
    @           IN    NS    mail.mydomain.com.
    1.0.0       IN    PTR   mail.mydomain.com.
    Any help would greatly be apreciated! I am totaly confused as to why it doesn't query my DNS directly

    Code:
    # host mail.mydomain.com
    mail.mydomain.com      A       91.12.30.24
    Thanks!
    -eco

  2. #2
    Join Date
    Sep 2008
    Location
    Belgium
    Posts
    91
    Rep Power
    7

    Default

    Well, I figured it out so here it is for all you debian users having problems with DNS.

    I installed it on the zimbra server.

    Code:
    # apt-get install bind9
    I have left the default DNS configuration as is excet for the following few changes. I am no DNS guru or I wouldn't be posting this thread.

    the '[...]' mean that I am adding to the original config file.

    /etc/bind/named.conf
    Code:
    [...]
    
    zone "0.0.10.in-addr.arpa" {
       type master;
       file "/etc/bind/db.10";
    };
    
    zone "mydomain.com" {
       type master;
       file "/etc/bind/db.mydomain.com";
    };
    /etc/bind/named.conf.options
    Code:
    options {
       directory "/var/cache/bind";
       allow-transfer {
          127.0.0.1;
          10.0.0.1;
       };
    
    [...]
    /etc/bind/db.mydomain.com
    Code:
    ;
    ; BIND reverse data file for mydomain.com
    ;
    $TTL  604800
    @  IN SOA   mail.mydomain.com. hostmaster.mail.mydomain.com. (
          2008092008     ; Serial
              604800     ; Refresh
               86400     ; Retry
             2419200     ; Expire
              604800 )   ; Negative Cache TTL
    ;
    
                   IN    NS       mail.mydomain.com.
                   IN    MX 10    mail.mydomain.com.
    mail           IN    A        10.0.0.1
    smtp           IN    CNAME    mail.mydomain.com.
    /etc/bind/db.10
    Code:
    ;
    ; BIND reverse data file for 10.0.0.255
    ;
    $TTL  604800
    @  IN SOA   mail.mydomain.com. (
                   2     ; Serial
              604800     ; Refresh
               86400     ; Retry
             2419200     ; Expire
              604800 )   ; Negative Cache TTL
    ;
                IN    NS    mail.mydomain.com.
    1           IN    PTR   mail.mydomain.com.
    /etc/resolv.conf
    Code:
    nameserver 127.0.0.1
    nameserver 10.0.0.1
    search mydomain.com
    /etc/hosts
    Code:
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               localhost.localdomain localhost
    10.0.0.1        mail.mydomain.com mail
    /etc/hostname
    Code:
    mail.mydomain.com
    I hope this can help someone... zimbra is now up and running... Oh joy!
    -eco

  3. #3
    Join Date
    Jul 2010
    Posts
    19
    Rep Power
    5

    Default

    is 10.0.0.1 your router ip or your server ip... it should be the router ip acc. to me ???

  4. #4
    Join Date
    Sep 2008
    Location
    Belgium
    Posts
    91
    Rep Power
    7

    Default

    10.0.0.1 was the zimbra server IP and had to be resolved by the internal DNS installed on the zimbra server

    The following is a copy of a setup I did with the DNS off the zimbra server and onto the router.

    FYI: This is also a setup in a different IP range, etc.

    The DNS is on the KVM host and not on the zimbra VM.

    Code:
    # cat zone.example.com
    ; BIND data file for local loopback interface
    ;
    $TTL    604800
    @       IN      SOA     ns.example.com. root.example.com. (
                          2010041804        ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
    ;
            IN      NS      ns.example.com.
    
            IN      MX 10   mail.example.com.
    
    ns      IN      A       192.168.122.1
    mail    IN      A       192.168.122.11
    Code:
    # cat db.192.168.122}}
    ; BIND reverse data file for local loopback interface
    ;
    $TTL    604800
    @       IN      SOA     precognet.com. root.precognet.com. (
                         2010041701         ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
    ;
    
            IN      NS      ns.precognet.com
    
    11      IN      PTR     mail.example.com
    
    I added the following to the '''named.conf'''.
    zone "example.com" {
            type master;
            file "/etc/bind/zone.example.com";
    };
    zone "122.168.192.in-addr.arpa" {
            type master;
            file "/etc/bind/db.192.168.122";
            };
    ...
    I hope this will shed a bit of light. PM me if you still have some trouble.

Similar Threads

  1. Replies: 0
    Last Post: 08-06-2008, 10:02 PM
  2. split dns help
    By tanoatzim in forum Installation
    Replies: 12
    Last Post: 05-09-2008, 08:42 AM
  3. Replies: 15
    Last Post: 04-14-2008, 01:29 PM
  4. split dns isn't working for me....
    By lucidblue in forum Installation
    Replies: 5
    Last Post: 06-02-2007, 10:24 PM
  5. Split DNS setup help? Ubuntu and zimbra 4.5RC2.
    By nfear24 in forum Installation
    Replies: 2
    Last Post: 01-11-2007, 07:39 AM

Posting Permissions

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