LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   BIND single cname to lookup through the forwarder (http://www.linuxquestions.org/questions/linux-server-73/bind-single-cname-to-lookup-through-the-forwarder-932448/)

Bullz3y3 03-03-2012 12:37 AM

BIND single cname to lookup through the forwarder
 
I have been setting up Zimbra in my local network. I setup BIND and setup a master zone eg example.com. I mapped the cnames to the ip of the servers as below.

example.com -> 192.168.1.10
zimbra.example.com -> 192.168.1.10
MX example.co -> zimbra.example.com

I use this as a secondary (for backup purpose). The real server is in cloud. that can be accessed with mail.example.com if I configured to use external DNS servers Eg 8.8.8.8 google DNS. Problem is if I enter mail.example.com in local i dont get server in cloud. I got it why! I can set the public IP of the mail server to mail.exaple.com. The server may change their IP address anytime. So the problem comes.

If there's anything can be done to get the IP of mail.example.com from a public DNS server?

lithos 03-03-2012 01:39 AM

Hi,

can you post the "Zone config" for this secondary DNS server (example.com, zimbra.example.com ...)
and also "mail.example.com" if you have that on the same server?

i.e.:
Code:

named.zones

zone "myserver.net" in {
          notify yes;
          type master;
          file "master/myserver.net";
          allow-transfer { 4.5.6.78; };
          allow-query { any; };
};

ZONE file: myserver.net
$ORIGIN myserver.net.
; Start of Authority (SOA) records.
$TTL 1D
@  IN  SOA  myserver.net.    myemail.myserver.net. (
                                      2002345678      ; Serial
                                      6H    ; Refresh
                                      2H    ; Retry
                                      7D    ; Expire
                                      1D )  ; TTL

; Name Server (NS) records.
                        NS  ns.myserver.net.

; Mail Exchange (MX) records.
myserver.net.            IN      MX  10 mail.myserver.net.

; Address (A) records.
localhost                      A      127.0.0.1
myserver.net.                A      1.2.3.4
ns                              A      1.2.3.4
www                            A      1.2.3.4
myserver.net.                IN TXT  "v=spf1 a mx ptr"
ftp                            CNAME  myserver.net.
mail                            A      1.2.3.4
service                          CNAME  myserver.net.

now I have this server as primary for this zone "myserver.net" and all the other zones are not configured, so it has to be searched for (i.e. google.com etc.).

I think you shouldn't have configured your primary DNS for mail.example.com on this server you have, so it will need to look up for it at the "root" servers (depends if you have configured it)


All times are GMT -5. The time now is 03:08 AM.