Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: [SOLVED] Just can't get Split DNS to work

  1. #1
    Mistoffeles is offline Senior Member
    Join Date
    Oct 2007
    Posts
    70
    Rep Power
    7

    Default [SOLVED] Just can't get Split DNS to work

    Been banging my head against the wall on this one. The split DNS is, for some reason, just not working for me and the solution is just evading me completely.

    I have this:

    /etc/resolv.conf

    Code:
    nameserver 204.244.3.129
    nameserver 204.244.3.130
    search mydomain.com
    /etc/hosts

    Code:
    127.0.0.1	localhost.localdomain	localhost
    192.168.5.5	mail.mydomain.com	mydomain.com	mail
    /etc/nsswitch.conf

    Code:
    hosts:	dns
    /etc/sysconfig/network

    Code:
    NETWORKING=yes
    NETWORKING_IPV6=no
    HOSTNAME=mail.mydomain.com
    DNS1=204.244.3.129
    DNS2=204.244.3.130
    /etc/sysconfig/network-scripts/ifcfg-eth0

    Code:
    DEVICE=eth0
    BOOTPROTO=none
    BROADCAST=192.168.5.255
    HWADDR=00:1b:fc:f3:34:4c
    IPADDR=192.168.5.5
    NETMASK=255.255.255.0
    NETWORK=192.168.5.0
    ONBOOT=yes
    GATEWAY=192.168.5.1
    TYPE=Ethernet
    /etc/sysconfig/network-scripts/ifcfg-eth1

    Code:
    DEVICE=eth1
    BOOTPROTO=dhcp
    HWADDR=00:1b:fc:f3:34:4c
    ONBOOT=no
    DHCP_HOSTNAME=localhost.localdomain
    TYPE=Ethernet
    DNS in the wild:

    @ NS ns1.domainpeople.com
    @ NS ns2.domainpeople.com
    @ MX 10 mail.mydomain.com
    www CNAME mydomain.com
    @ A 76.76.76.76
    mail A 76.76.76.76
    webmail A 76.76.76.76
    (this is how the registrar does their DNS management web page)


    /etc/named.conf

    Code:
    options {
           directory "var/named";
           dump-file "var/named/data/cache_dump.db";
           statistics-file "/var/named/data/named_stats.txt";
           forwarders { 204.244.3.129; 204.244.3.130; };
           listen-on { 127.0.0.1; };
           allow-transfer { none; };
           version "There is no spork.";
    };
    include "/etc/rndc.key";
    zone "mydomain.com" {
            type master;
            file "mail.mydomain.com.vn";
    };
    /var/named/mail.mydomain.com.vn

    Code:
    @       IN      SOA     mydomain.com. mail.mydomain.com. (
                                    10118      ; Serial
                                    43200      ; Refresh
                                    3600       ; Retry
                                    3600000    ; Expire
                                    2592000 )  ; Minimum
    ;       Define the nameservers and the mail servers
                    IN      NS      10.177.23.202
                    IN      A       10.177.23.202
                    IN      MX      10 mail.mydomain.com.
    Can anyone spot what it is I am doing wrong? It's starting to feel like a flashback of school, where the teacher comes up behind you and points out the missing period or semicolon in one line of code that you have been trying to debug for three hours.
    - Misty

  2. #2
    thorng is offline Active Member
    Join Date
    Apr 2009
    Posts
    46
    Rep Power
    6

    Default

    1. Zimbra should be using the internal DNS Server 10.177.23.202? in resolv.conf
    2. A record for mail.mydomain.com. is missing from your internal DNS map.

  3. #3
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,586
    Rep Power
    57

    Default

    Your hosts file is also incorrect, it should contain only the following:

    Code:
    127.0.0.1	localhost.localdomain	localhost
    192.168.5.5 	mail.mydomain.com	mail
    When you've made the changes you can check the configuration with the following commands (run on the Zimbra server):

    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig yourdomain.com mx
    dig yourdomain.com any
    host `hostname`  <-- use that exact command with backticks not single quotes
    Post the output of those commands if you still have problems.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    Mistoffeles is offline Senior Member
    Join Date
    Oct 2007
    Posts
    70
    Rep Power
    7

    Default

    ok, I don't quite grok the format of the .vn file, I just copied what was in the article about Split DNS for Zimbra. All my previous experience with DNS has been using the web interface at domainpeople.com.

    I have an A record, IN A 10.177.23.202, so what am I missing thorng?
    - Misty

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,586
    Rep Power
    57

    Default

    Quote Originally Posted by Mistoffeles View Post
    I have an A record, IN A 10.177.23.202, so what am I missing thorng?
    Why do you have an A record pointing to that IP address when, according to what you've posted in the hosts file, your internal IP is 192.168.5.5?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    Mistoffeles is offline Senior Member
    Join Date
    Oct 2007
    Posts
    70
    Rep Power
    7

    Default

    Old address in the local network, as compared to new address in the colocation site.

    ~8/
    - Misty

  7. #7
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,586
    Rep Power
    57

    Default

    The split DNS records should point to the internal IP address of your Zimbra server and should be reflected in the hosts file. Post the output of the commands I've given you earlier.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    Mistoffeles is offline Senior Member
    Join Date
    Oct 2007
    Posts
    70
    Rep Power
    7

    Default

    ok, made a bunch of changes including one that nobody mentioned, but that I was able to see more clearly after a (somewhat) good night's sleep (/etc/sysconfig/network):

    /etc/resolv.conf

    Code:
    nameserver 192.168.5.5
    search mydomain.com
    /etc/hosts

    Code:
    127.0.0.1	localhost.localdomain	localhost
    192.168.5.5	mail.mydomain.com	mail
    /etc/nsswitch.conf

    Code:
    hosts:	files dns
    /etc/sysconfig/network

    Code:
    NETWORKING=yes
    NETWORKING_IPV6=no
    HOSTNAME=mail.mydomain.com
    DNS1=192.168.5.5
    /etc/sysconfig/network-scripts/ifcfg-eth0

    Code:
    DEVICE=eth0
    BOOTPROTO=none
    BROADCAST=192.168.5.255
    HWADDR=00:1b:fc:f3:34:4c
    IPADDR=192.168.5.5
    NETMASK=255.255.255.0
    NETWORK=192.168.5.0
    ONBOOT=yes
    GATEWAY=192.168.5.1
    TYPE=Ethernet
    DNS in the wild:

    @ NS ns1.domainpeople.com
    @ NS ns2.domainpeople.com
    @ MX 10 mail.mydomain.com
    www CNAME mydomain.com
    @ A 76.76.76.76
    mail A 76.76.76.76
    webmail A 76.76.76.76
    (this is how the registrar does their DNS management web page)


    /etc/named.conf

    Code:
    options {
           directory "var/named";
           dump-file "var/named/data/cache_dump.db";
           statistics-file "/var/named/data/named_stats.txt";
           forwarders { 204.244.3.129; 204.244.3.130; };
           listen-on { 127.0.0.1; };
           allow-transfer { none; };
           version "There is no spork.";
    };
    include "/etc/rndc.key";
    zone "mydomain.com" {
            type master;
            file "mail.mydomain.com.vn";
    };
    /var/named/mail.mydomain.com.vn

    Code:
    @       IN      SOA     mydomain.com. mail.mydomain.com. (
                                    200908190943    ; Serial number
                                    1d              ; Refresh
                                    1d              ; Retry
                                    4w              ; Expire
                                    1h      )       ; Minimum cache
    ;       Define the nameservers and the mail servers
                    IN      NS      192.168.5.5
    mail            IN      A       192.168.5.5
                    IN      MX      10 mail.mydomain.com.
    Now all I get is:

    ; <<>> DiG 9.3.4-P1 <<>> mail.mydomain.com mx
    ;; global options: printcmd
    ;; connection timed out; no servers could be reached

    ; <<>> DiG 9.3.4-P1 <<>> mydomain.com mx
    ;; global options: printcmd
    ;; connection timed out; no servers could be reached

    *sigh*
    Last edited by Mistoffeles; 08-19-2009 at 10:11 AM.
    - Misty

  9. #9
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,586
    Rep Power
    57

    Default

    You're missing three of the commands that I asked for, please run them.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  10. #10
    thorng is offline Active Member
    Join Date
    Apr 2009
    Posts
    46
    Rep Power
    6

    Default

    You are not providing the complete picture for your Internal network. Don't you have an Internal DNS already? Is Zimbra the only server in your environment?

    If you are try to bring up the Internal DNS on Zimbra. most of these changes looks okay except you need to move the MX line above mail. The MX is for the domain and not the mail server. Then you just need to start the named service.
    Last edited by thorng; 08-19-2009 at 11:43 AM.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 04-15-2009, 07:00 PM
  2. Replies: 19
    Last Post: 08-16-2008, 11:30 PM
  3. split dns help
    By tanoatzim in forum Installation
    Replies: 12
    Last Post: 05-09-2008, 07:42 AM
  4. Reverse DNS lookups with multiple Domain hosting.
    By carpicker in forum Installation
    Replies: 0
    Last Post: 04-23-2008, 12:14 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
  •