Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 11-10-2010, 07:41 AM
Active Member
 
Posts: 31
Default

I don't seem to be capable of getting this working. I have no idea what I'm missing.

Code:
hostname fakedomain.com
Code:
less /etc/resolve.conf

nameserver 192.168.246.165
domain fakedomain.com
search fakedomain.com
Code:
less /etc/hosts

127.0.0.1       localhost.localdomain localhost
192.168.246.165  fakedomain.com fakedomain


Code:
less /etc/bind/named.conf.options

options {
        directory "/etc/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

        // If your ISP provided one or more IP addresses for stable 
        // nameservers, you probably want to use them as forwarders.  
        // Uncomment the following block, and insert the addresses replacing 
        // the all-0's placeholder.


        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
        recursion no;
};

zone "fakedomain.com" {
    type master;
    file "/etc/bind/db.23";
};

Code:
less /etc/bind/db.23


;
;       Addresses and other host information.
;
@       IN      SOA     cdbamail.gov. hostmaster.cdbamail.gov. (
                               10118      ; Serial
                               43200      ; Refresh
                               3600       ; Retry
                               3600000    ; Expire
                               2592000 )  ; Minimum
;       Define the nameservers and the mail servers
               IN      NS      192.168.246.165
               IN      MX      10 mail.fakedomain.com.
mail           IN      A       192.168.246.165
/etc/bind/db.23 (END)
Reply With Quote
  #12 (permalink)  
Old 11-10-2010, 08:21 AM
Active Member
 
Posts: 31
Default

Code:
root@fakedomain:~# host $(hostname)
Host fakedomain.com.fakedomain.com not found: 2(SERVFAIL)
Reply With Quote
  #13 (permalink)  
Old 11-15-2010, 06:15 AM
Active Member
 
Posts: 31
Default

What would cause it to append the domain name to the hostname?

Code:
fakedomain.com.fakedomain.com
Reply With Quote
  #14 (permalink)  
Old 11-15-2010, 06:27 AM
Loyal Member
 
Posts: 85
Default

Do you have incorrect dns record, if you want to use mail.fakedomain.com as your MX record you have to use mail.fakedomain.com as your hostname in zimbra.

@ IN SOA cdbamail.gov. hostmaster.cdbamail.gov. (
10118 ; Serial
43200 ; Refresh
3600 ; Retry
3600000 ; Expire
2592000 ) ; Minimum
; Define the nameservers and the mail servers
IN NS 192.168.246.165
IN MX 10 mail.fakedomain.com.
mail IN A 192.168.246.165
###############################

cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.246.165 mail.fakedomain.com

$ cat /etc/hostname
mail.fakedomain.com

try to restart named:
$ service named restart

try to lookup your hostname
$ hostname
mail.fakedomain.com

try to lookup dns record:

$ dig mail.fakedomain.com

;; QUESTION SECTION:
;mail.fakedomain.com. IN A

;; ANSWER SECTION:
mail.fakedomain.com. 10800 IN A 192.168.246.165


;; Query time: 89 msec


I think my explanation is very clear, please see wiki.zimbra.com to more info and good luck...
__________________
Just logs
blog.pnyet.web.id
Reply With Quote
  #15 (permalink)  
Old 04-08-2011, 10:46 AM
Active Member
 
Posts: 31
Default

Bumping old thread but it's relevant....

Hostname command is working.

Code:
root@mail:/etc/bind/zones# host $(hostname)
mail.fakedomain.com has address 192.168.246.164
yet the dig test is not working.

Code:
root@mail:/etc/bind/zones# dig fakedomain.com mx

; <<>> DiG 9.7.1-P2 <<>> fakedomain.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9589
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;fakedomain.com.			IN	MX

;; AUTHORITY SECTION:
fakedomain.com		38400	IN	SOA	ns.fakedomain.com. admin.fakedomain.com. 2007062001 28800 3600 604800 38400

;; Query time: 4 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Apr  8 13:41:03 2011
;; MSG SIZE  rcvd: 75
Not seeing the ANSWER SECTION.

Below is my zone file.

Code:
$TTL 3D
@ IN SOA ns.fakedomain.com. admin.fakedomain.com. (
   2007062001
   28800
   3600
   604800
   38400
);
cdbamail.gov.  IN  NS         ns.fakedomain.com.
wtf             IN     A          192.168.246.20
ns              IN   A           192.168.246.164
                 IN  MX 10     mail.fakedomain.com
mail           IN  A            192.168.246.164
mail.fakedomain.com  IN  A  192.168.246.164
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.