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

Thread: Ubuntu DNS problem

  1. #1
    aaros is offline Junior Member
    Join Date
    Aug 2009
    Posts
    7
    Rep Power
    6

    Default Ubuntu DNS problem

    This thread got so close to answering my question, but then it fell off!!!

    I'm trying to get Zimbra Open Source running on a new installation of Ubuntu 8.04. Everything was going along great, until it began configuration and got an error.

    I reviewed the log and this is what I found:
    Code:
    Sat Aug 22 09:16:46 2009 zimbra-ldap is enabled
    Sat Aug 22 09:16:46 2009 Initializing ldap...
    Sat Aug 22 09:16:46 2009 *** Running as zimbra user: /opt/zimbra/libexec/zmldapinit
    IO::Socket::INET: Bad hostname 'mydomain.com' at /opt/zimbra/libexec/zmldapinit line 160.
    Sat Aug 22 09:17:28 2009 failed. (5632)
    Sat Aug 22 09:17:28 2009
    
    ERROR
    
    Sat Aug 22 09:17:28 2009
    
    Configuration failed

    I think (??) I followed the Ubuntu 8.04 LTS Server Install Guide to the "T", but I must have missed something. I've reviewed the guide and my system several times and can't find what I'm missing. ANY help would be greatly appreciated!

    Here's what I've got:

    HOSTS:
    Code:
    127.0.0.1       localhost.localdomain   localhost
    172.17.2.10     mail.mydomain.com  mail
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts

    RESOLV.CONF:
    Code:
    search mydomain.com
    nameserver 172.17.2.10

    db.mydomain.com:
    Code:
    ;
    ; BIND data file for mydomain.com
    ;
    $TTL    604800
    @       IN      SOA     mail.mydomain.com. admin.mydomain.com. {
                             090821         ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 }       ; Negative Cache TTL
    ;
    @       IN      NS      mail
            IN      MX      10 mail
            IN      A       172.17.2.10
    mail    IN      A       172.17.2.10

    dig mydomain.com any
    Code:
    ; <<>> DiG 9.4.2-P2 <<>> mydomain.com any
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 3027
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;mydomain.com.     IN      ANY
    
    ;; Query time: 0 msec
    ;; SERVER: 172.17.2.10#53(172.17.2.10)
    ;; WHEN: Sat Aug 22 10:00:09 2009
    ;; MSG SIZE  rcvd: 43

    dig mydomain.mx
    Code:
    ; <<>> DiG 9.4.2-P2 <<>> mydomain.mx
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 20908
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;mydomain.mx.      IN      A
    
    ;; AUTHORITY SECTION:
    mx.                     1800    IN      SOA     m.mx-ns.mx. hostmaster.nic.mx. 68 3600 900 604800 1800
    
    ;; Query time: 105 msec
    ;; SERVER: 172.17.2.10#53(172.17.2.10)
    ;; WHEN: Sat Aug 22 10:01:01 2009
    ;; MSG SIZE  rcvd: 101

    host `hostname`
    Code:
    Host mail not found: 3(NXDOMAIN)

    Thanks in advance for any help you might offer!
    Last edited by phoenix; 08-23-2009 at 08:24 AM.

  2. #2
    iway is offline Partner (VAR/HSP)
    Join Date
    May 2008
    Posts
    432
    Rep Power
    7

    Default

    Well, "servfail" tells you that there is an error in your Bind configuration!

  3. #3
    aaros is offline Junior Member
    Join Date
    Aug 2009
    Posts
    7
    Rep Power
    6

    Default

    Thanks for the quick reply! Does anything stand out to you in here?

    named.conf.options
    Code:
    options {
            directory "/var/cache/bind";
    
            query-source address * port 53;
    
            forwarders {
                    XX.XX.X.X; XX.XXX.XXX.XXX;
            };
    
            auth-nxdomain no;    # conform to RFC1035
            // listen-on-v6 { any; };
    };
    My named.conf.local is:
    Code:
            zone "mydomain.com"        {
                    type master;
                    file "/etc/bind/db.mydomain.com";
            };

  4. #4
    iway is offline Partner (VAR/HSP)
    Join Date
    May 2008
    Posts
    432
    Rep Power
    7

    Default

    Not explicitly. Just follow the Bind setup guide posted in the Wiki here somewhere. That works.

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

    Default

    Quote Originally Posted by aaros View Post
    This thread got so close to answering my question, but then it fell off!!!
    Did you make the change to nsswitch.conf mentioned in the first post?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    aaros is offline Junior Member
    Join Date
    Aug 2009
    Posts
    7
    Rep Power
    6

    Default

    I read through that, and I think I've got it:

    Code:
    # /etc/nsswitch.conf
    #
    # Example configuration of GNU Name Service Switch functionality.
    # If you have the `glibc-doc-reference' and `info' packages installed, try:
    # `info libc "Name Service Switch"' for information about this file.
    
    passwd:         compat
    group:          compat
    shadow:         compat
    
    hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
    networks:       files
    
    protocols:      db files
    services:       db files
    ethers:         db files
    rpc:            db files
    
    netgroup:       nis
    Unless I misunderstood the thread...?

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

    Default

    You hosts line should be the following:

    Code:
    hosts:          files dns mdns
    not the entry that you have.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    aaros is offline Junior Member
    Join Date
    Aug 2009
    Posts
    7
    Rep Power
    6

    Default Still no go...

    Thanks for your patience with me on this -- and your help.

    Quote Originally Posted by phoenix View Post
    You hosts line should be the following:

    Code:
    hosts:          files dns mdns
    not the entry that you have.
    I've made the modification and restarted. I'm still getting the "SERVFAIL" error.

    I ran:
    Code:
    aaros@mail:/$ host mydomain.com
    Host mydomain.com.mydomain.com not found: 2(SERVFAIL)
    Is that an indicator of where the problem might be?

    Do you have any other ideas?

    Many thanks!

    Ryan

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

    Default

    This thread really is different to the original place you posted so I've split it off into it's own thread.

    A better command to run would be the following:

    Code:
    host `hostname`  <-- note the backticks not single quotes
    although I'd expect that to give you the same result.

    At the moment I'm somewhat stumped with this, your DNS appears to be OK and it should work. A couple of questions: is this a 64bit installation; is it in a VM of any kind; how much RAM on this server?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  10. #10
    aaros is offline Junior Member
    Join Date
    Aug 2009
    Posts
    7
    Rep Power
    6

    Default

    Right on the money. It did exactly as you suspected:

    Code:
    aaros@mail:/$ host `hostname`
    Host mail not found: 3(NXDOMAIN)
    It's a 32Bit Install, and my server has 2 GB RAM.

    Is there any other diagnotic information I can pull that might help with this?

    Thanks very much.

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. Zimbra Beta 5_3 with Ubuntu problem, stats
    By mugendai in forum Installation
    Replies: 2
    Last Post: 10-04-2007, 03:33 PM
  2. Problem installing Desktop on Ubuntu
    By azeem in forum Installation Help
    Replies: 2
    Last Post: 05-29-2007, 06:04 AM
  3. Problem installing on Ubuntu
    By snuffelt in forum Installation
    Replies: 3
    Last Post: 03-01-2007, 03:09 PM
  4. Split DNS setup help? Ubuntu and zimbra 4.5RC2.
    By nfear24 in forum Installation
    Replies: 2
    Last Post: 01-11-2007, 07:39 AM
  5. DNS in a nutshell part two (For dummies)
    By daimer77 in forum Installation
    Replies: 4
    Last Post: 12-18-2006, 06:28 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
  •