Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: [SOLVED] host file problem

  1. #11
    Join Date
    Jan 2011
    Posts
    12
    Rep Power
    4

    Default

    Quote Originally Posted by phoenix View Post
    No, I meant use the command exactly as you see it - do not change anything in the command.
    This is what I get:

    root@faeaa:~# host `hostname`
    Host faeaa not found: 3(NXDOMAIN)

    Quote Originally Posted by phoenix View Post
    What's the answer to my question about the firewall?
    Nothing I'm aware of. I've checked what packages I have installed using the command
    Code:
    dpkg --get-selections
    and didn't find any. This is a "naked" Ubuntu I'm using.

    Quote Originally Posted by phoenix View Post
    Then I'm slightly confused by your DNS output, it's getting a server response at this IP address (look at the IP in the output of your dig command above):
    ...
    The DNS servers in your resolv.conf don't appear to have your DNS records:
    ...
    The DNS server IP in your resolv.conf should be your install of BIND on the Zimbra server.
    OK, now I'm getting confused about the Split DNS page you mentioned. The page mentions to edit /etc/bind/named.conf. I didn't do that, perhaps that would cause those problems?

    // Default named.conf generated by install of bind-9.2.4-2
    options {
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    forwarders {
    ; };
    };
    include "/etc/rndc.key";
    // We are the master server for server.example.com
    zone "server.example.com" {
    type master;
    file "db.server.example.com";
    };
    My file looks like that:

    // This is the primary configuration file for the BIND DNS server named.
    //
    // Please read /usr/share/doc/bind9/README.Debian.gz for information on the
    // structure of BIND configuration files in Debian, *BEFORE* you customize
    // this configuration file.
    //
    // If you are just adding zones, please do that in /etc/bind/named.conf.local

    include "/etc/bind/named.conf.options";
    include "/etc/bind/named.conf.local";
    include "/etc/bind/named.conf.default-zones";
    Should I put some part of the mentioned named.conf, and which part? And to which file: named.conf, named.conf.options, named.conf.local or named.cong-default-zones? The last three contain:

    named.conf.options
    options {
    directory "/var/cache/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 US-CERT Vulnerability Note VU#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.

    // forwarders {
    // 0.0.0.0;
    // };

    auth-nxdomain no; # conform to RFC1035
    listen-on-v6 { any; };
    };
    named.conf.local
    //
    zone "faeaa.com" {
    type master;
    file "/var/lib/bind/faeaa.com.hosts";
    };
    named.conf.default-zones
    // prime the server with knowledge of the root servers
    zone "." {
    type hint;
    file "/etc/bind/db.root";
    };

    // be authoritative for the localhost forward and reverse zones, and for
    // broadcast zones as per RFC 1912

    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";
    };
    Then, the page also mentions
    Create a /var/named/db.server.example.com
    and
    Change /etc/resolv.conf
    However, I'm getting confused here because the page mentions doing this if one wants to install Zimbra behind firewall, which, as it looks, I don't have. Additionally, DNS were configured in Webmin. The full records are as follow:

    faeaa.com. NS Default ns1.faeaa.com.
    faeaa.com. A Default 46.4.156.210
    ns1.faeaa.com. A Default 46.4.156.210
    ns2.faeaa.com. A Default 46.4.156.211
    FAEAA (Financial and Economic Analysis Association). CNAME Default faeaa.com.
    zimbra.faeaa.com. A Default 46.4.156.210
    faeaa.com. MX 38400 10 mxl.faeaa.com.
    mxl.faeaa.com. A Default 46.4.156.210
    Many thanks for help.

    Best

  2. #12
    Join Date
    Jan 2011
    Posts
    1
    Rep Power
    4

    Default

    Hey, I honestly didn't read the whole post beginning to end but why do you need to run Bind on the Zimbra box? Seems like the simple solution would be to not run the DNS Server and Mail Server together.

    Regards,

    Brian
    (diggleby.com)

  3. #13
    Join Date
    Jan 2011
    Posts
    12
    Rep Power
    4

    Default

    Update: I've reinstalled the whole system to install Zimbra on a clean system. I've only installed Webmin to manage DNS through BIND.

    DNS records are as previously:

    faeaa.com. NS Default ns1.faeaa.com.
    faeaa.com. A Default 46.4.156.210
    ns1.faeaa.com. A Default 46.4.156.210
    ns2.faeaa.com. A Default 46.4.156.211 FAEAA (Financial and Economic Analysis Association). CNAME Default faeaa.com.
    zimbra.faeaa.com. A Default 46.4.156.210
    mxl.faeaa.com. A Default 46.4.156.210
    faeaa.com. MX 38400 10 mxl.faeaa.com.
    And I've added only the last line to /etc/hosts file:

    127.0.0.1 localhost.localdomain localhost
    # Auto-generated hostname. Please do not remove this comment.
    46.4.156.210 faeaa
    46.4.156.210 zimbra.faeaa.com zimbra
    Unfortunately, the very same error appear when trying to install Zimbra.

    I'm trying to check the records using the recommended site (Quick Check - Pingability.com), and there seems to be an error with mxl. Could that possibly be one of the causes? Or perhaps those records are not relevant at this stage of installation?

  4. #14
    Join Date
    Jan 2011
    Posts
    12
    Rep Power
    4

    Default

    It worked!

    Instead of having the following /etc/hosts:

    127.0.0.1 localhost.localdomain localhost
    # Auto-generated hostname. Please do not remove this comment.
    46.4.156.210 zimbra.faeaa.com zimbra
    I made (purely by mistake by the way!--i.e. when copying and pasting my IP address) this:

    127.0.0.1 localhost.localdomain localhost
    # Auto-generated hostname. Please do not remove this comment.
    46.4.156.211 zimbra.faeaa.com zimbra
    I used my other IP address. Now I'm going to play with the installation further, will see how it goes.

    Many thanks for your help.

Similar Threads

  1. zmclamdctl is not running after upgrade
    By Darren in forum Installation
    Replies: 24
    Last Post: 10-10-2008, 10:10 AM
  2. SOAP problem - couldn't connect to host
    By mmb12345 in forum Developers
    Replies: 2
    Last Post: 12-31-2007, 03:20 PM
  3. [SOLVED] Upgraded to 5.0 OSS - Sendmail Problem
    By Chewie71 in forum Installation
    Replies: 11
    Last Post: 12-28-2007, 07:07 PM
  4. Installation Problem - Possibly LDAP
    By geroshea in forum Installation
    Replies: 5
    Last Post: 03-16-2007, 05:47 AM
  5. hosts file problem - fqdn
    By martin78 in forum Installation
    Replies: 1
    Last Post: 02-16-2007, 02:03 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
  •