The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Exim - DNS list lookup defer for RBL server

Discussion in 'E-mail Discussions' started by garconcn, May 20, 2014.

  1. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    98
    Likes Received:
    1
    Trophy Points:
    8
    We use our own RBL in cPanel. We found that sometimes it catches the IP by the RBL, sometimes it shows DNS lookup error. The RBL server is not busy at all, and we have RBL dns entry in the cpanel server host file. Any idea why the DNS lookup timeout? Thank you.

     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You may want to consider setting up a zone forwarder within /etc/named.conf in the "localhost_resolver" view forwarding all requests for the RBL to the appropriate server.

    Thank you.
     
  3. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    98
    Likes Received:
    1
    Trophy Points:
    8
    Hi Michael,

    Thank you for your advice.

    Do you mean to add this to the cpanel named.conf file in "localhost_resover" view section?

    Code:
    zone "rbl.domain.com" IN {
     type forward;
     forward only;
     forwarders {
     rbl_ip port 53;
     };
    };
    In cpanel, I have the default config.

    Code:
    view "localhost_resolver" {
    /* This view sets up named to be a localhost resolver ( caching only nameserver ).
     * If all you want is a caching-only nameserver, then you need only define this view:
     */
        match-clients         { 127.0.0.0/24; };
        match-destinations    { localhost; };
        recursion yes;
    
        zone "." IN {
            type hint;
            file "/var/named/named.ca";
        };
    
        /* these are zones that contain definitions for all the localhost
         * names and addresses, as recommended in RFC1912 - these names should
         * ONLY be served to localhost clients:
         */
        include "/var/named/named.rfc1912.zones";
    };
    
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    98
    Likes Received:
    1
    Trophy Points:
    8
    Sure, I will let you kow if it's working. So far, I am not able to tell it's working or not.
     
  6. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    98
    Likes Received:
    1
    Trophy Points:
    8
    Just an update to this issue. Adding the zone forwarder within /etc/named.conf in the "localhost_resolver" in cpanel server did not work for me, however adding the same zone forwarder in my resolver server under view "internal" fixed it. Thanks.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I am happy to see the issue was resolved. Thank you for updating us with the outcome.
     
Loading...

Share This Page