Results 1 to 8 of 8

Thread: DNS Problem on CentOS

  1. #1
    nabbed is offline Junior Member
    Join Date
    May 2007
    Posts
    5
    Rep Power
    8

    Default DNS Problem on CentOS

    What are the chances of getting a dns for dummies howto.
    I will gladly put my hand up as the dummy if it means someone posts a very explicit howto for dns on centos 5, using example.com as the domain, on a machine with an internal ip address behind a firewall. If bind was running on the same machine as the mail server that would be good but if not then no problem to have it running on a separate machine.

    I will proof read, test, provide feedback, anything. I just can't make it work yet and the forums and wiki are good but I still can't get accross the line using them.

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,483
    Rep Power
    56

    Default

    Quote Originally Posted by nabbed View Post
    What are the chances of getting a dns for dummies howto.
    Search for 'DNS In A Nutshell' in the forums I think it's the second post in that thread tells you what you need to know. There's also Split DNS in the wiki but I think the forum thread is more clear. It's really not that difficult to set-up a DNS server on CentOS.

    [EDIT]What exactly is your problems? I'll also split this into a separate thread as it's not really a CentOS problem.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    nabbed is offline Junior Member
    Join Date
    May 2007
    Posts
    5
    Rep Power
    8

    Default

    I have followed DNS in a nutshell and now get the following results testing dns configuration.

    Code:
    [root@mail ~]# dig any qmunity.net
    
    ; <<>> DiG 9.3.3rc2 <<>> any qmunity.net
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53431
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;qmunity.net.                   IN      ANY
    
    ;; ANSWER SECTION:
    qmunity.net.            38400   IN      SOA     mail.qmunity.net. root.mail.qmunity.net. 2005110200 10800 3600 604800 38400
    qmunity.net.            38400   IN      NS      mail.qmunity.net.
    qmunity.net.            38400   IN      MX      10 mail.qmunity.net.
    qmunity.net.            38400   IN      A       192.168.50.20
    
    ;; ADDITIONAL SECTION:
    mail.qmunity.net.       38400   IN      A       192.168.50.20
    
    ;; Query time: 1 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sun Jun 17 18:07:32 2007
    ;; MSG SIZE  rcvd: 137
    
    [root@mail ~]# dig any mail.qmunity.net
    
    ; <<>> DiG 9.3.3rc2 <<>> any mail.qmunity.net
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31659
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;mail.qmunity.net.              IN      ANY
    
    ;; ANSWER SECTION:
    mail.qmunity.net.       38400   IN      A       192.168.50.20
    
    ;; AUTHORITY SECTION:
    qmunity.net.            38400   IN      NS      mail.qmunity.net.
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sun Jun 17 18:07:33 2007
    ;; MSG SIZE  rcvd: 64
    When Installing zcs I get the following
    Code:
    DNS ERROR resolving MX for mail.qmunity.net
    It is suggested that the domain name have an MX record configured in DNS
    Change domain name? [Yes]
    Any ideas what I am doing wrong.

  4. #4
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    try changing it to just qmunity.net - it might be the classic: DNS error resolving MX...
    show us your hosts file
    you could also continue on and add a domain/fix this later (but yes it makes it easier if you solve this first)
    Last edited by mmorse; 06-17-2007 at 08:08 AM.

  5. #5
    nabbed is offline Junior Member
    Join Date
    May 2007
    Posts
    5
    Rep Power
    8

    Default

    Code:
    [root@mail ~]# cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               localhost.localdomain localhost
    ::1             localhost6.localdomain6 localhost6
    192.168.50.20           mail.qmunity.net mail
    Code:
    [root@mail ~]# hostname
    mail.qmunity.net
    Code:
    [root@mail ~]# cat /var/named/chroot/etc/named.conf
    zone "qmunity.net" {
            type master;
            file "/var/named/qmunity.net.hosts";
    };
    Code:
    [root@mail ~]# cat /var/named/chroot/var/named/qmunity.net.hosts
    $ttl 38400
    @       IN      SOA     mail.qmunity.net. root.mail.qmunity.net. (
                            2005110200
                            10800
                            3600
                            604800
                            38400 )
    @             IN        NS      mail.qmunity.net.
    @             IN        MX     10 mail.qmunity.net.
    @             IN        A       192.168.50.20
    mail IN        A       192.168.50.20
    www IN        A       192.168.50.20
    Code:
    [root@mail ~]# ping mail.qmunity.net
    PING mail.qmunity.net (192.168.50.20) 56(84) bytes of data.
    64 bytes from mail.qmunity.net (192.168.50.20): icmp_seq=1 ttl=64 time=0.374 ms
    64 bytes from mail.qmunity.net (192.168.50.20): icmp_seq=2 ttl=64 time=0.063 ms
    
    --- mail.qmunity.net ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1000ms
    rtt min/avg/max/mdev = 0.063/0.218/0.374/0.156 ms
    [root@mail ~]# ping qmunity.net
    PING qmunity.net (192.168.50.20) 56(84) bytes of data.
    64 bytes from mail.qmunity.net (192.168.50.20): icmp_seq=1 ttl=64 time=2.02 ms
    64 bytes from mail.qmunity.net (192.168.50.20): icmp_seq=2 ttl=64 time=0.000 ms
    
    --- qmunity.net ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 999ms
    rtt min/avg/max/mdev = 0.000/1.010/2.020/1.010 ms
    Last edited by nabbed; 06-17-2007 at 01:34 PM.

  6. #6
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Hi Nabbed-
    We're going to post a pretty comprehensive tutorial on BIND and Zimbra next week.

    Looks like you have chroot installed.

    Try changing
    [/code]
    Code:
    [root@mail ~]# cat /var/named/chroot/etc/named.conf
    zone "qmunity.net" {
            type master;
            file "/var/named/qmunity.net.hosts";
    };
    to
    [/code]
    Code:
    [root@mail ~]# cat /var/named/chroot/etc/named.conf
    zone "qmunity.net" {
            type master;
            file "/var/named/chroot/var/named/qmunity.net.hosts";
    };
    Also, ping is not a reliable way to test name resolution. When using ping, hosts file trumps DNS, and it will always go with hosts.

    dig is better

    -john

  7. #7
    nabbed is offline Junior Member
    Join Date
    May 2007
    Posts
    5
    Rep Power
    8

    Default

    I changed /var/named/chroot/etc/named.conf as follows
    Code:
    [root@mail ~]# cat /var/named/chroot/etc/named.conf
    zone "qmunity.net" {
            type master;
            file "/var/named/chroot/var/named/qmunity.net.hosts";
    };
    and got the following results
    Code:
    [root@mail ~]# service named restart
    Stopping named:                                            [  OK  ]
    Starting named:
    Error in named configuration:
    zone qmunity.net/IN: loading master file /var/named/chroot/var/named/qmunity.net.hosts: file not found
    _default/qmunity.net/IN: file not found
                                                               [FAILED]
    So I changed it back.
    I only put the ping in because of the mention of it in DNS in a nutshell.
    I agree that dig is better because of the hosts file trumping dns which is what I included first.

    I wanted to get back to basics so, what things should I check if I am running
    running a local dns
    on centos 5
    using zcs 4.5.5
    with chroot
    with hostname = mail.qmunity.net
    and ip address = 192.168.50.20
    ?

    What automated checks does the install script use and maybe I can check my config from that angle?
    I was very careful not to do anything extra to the install. It's all as base as it can be. Is there some useful dns tool that I can install to test with. I can't imagine it really because dig should be good enough? Is there some other tool I can use to test what the script is testing?

  8. #8
    nabbed is offline Junior Member
    Join Date
    May 2007
    Posts
    5
    Rep Power
    8

    Default

    Whoops, I just re-read the DNS error resolving MX... post.
    I have now done what it says and input qmunity.net for the domain which allowed the install to complete.
    Sorry and thanks for the help.


LinkBacks (?)

  1. 11-26-2007, 12:32 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. DNS in a nutshell part two (For dummies)
    By daimer77 in forum Installation
    Replies: 4
    Last Post: 12-18-2006, 06:28 PM
  2. centos 4.4 DNS setting completely method.
    By nxzwt in forum Administrators
    Replies: 2
    Last Post: 11-05-2006, 06:19 AM
  3. DNS Strategies and Best Practices, and a SLES10 Request
    By LMStone in forum Administrators
    Replies: 4
    Last Post: 10-14-2006, 07:51 AM
  4. Replies: 12
    Last Post: 04-13-2006, 01:22 PM
  5. Zimbra startup hangs after install CentOS 4.2
    By eger in forum Installation
    Replies: 4
    Last Post: 02-10-2006, 11:08 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
  •