LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 03-03-2012, 01:37 AM   #1
Bullz3y3
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Rep: Reputation: Disabled
Smile 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?
 
Old 03-03-2012, 02:39 AM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
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)

Last edited by lithos; 03-03-2012 at 02:42 AM.
 
  


Reply

Tags
bind, zimbra


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
resolve cname of a cname with a bind dns server mariogarcia Linux - Networking 3 05-09-2011 08:32 AM
cname save issues system-config-bind showe123 Linux - Server 6 03-16-2011 08:14 PM
bind and cname skoinga Linux - Server 6 12-10-2010 10:21 AM
BIND 9 CNAME propagation issue rahmad Linux - Server 5 08-15-2008 03:35 AM
Bind CNAME Problem CleonII Linux - Software 1 11-01-2005 10:27 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration