Create MX record problems

Discussion in 'General' started by ddelbia, Jan 20, 2006.

  1. ddelbia

    ddelbia Member

    Hallo :)

    Why "www MX 10" when it should be "MX 10 (mail.)"?

    In that way, says me there are problems, it doesn't recognixe MX record.

    This happens when I create a site and I chec create DNS and MX.

    I modified the code of:
    line 976


    $domain = trim($server["server_domain"]);
    $host = $go_api->db->queryOneRecord("SELECT web_host FROM isp_isp_web WHERE doc_id = $doc_id");
    $host = trim($host['web_host']);

    $domain = 'mail.'.trim($server["server_domain"]);
    //$host = $go_api->db->queryOneRecord("SELECT web_host FROM isp_isp_web WHERE doc_id = $doc_id");
    //$host = trim($host['web_host']);
    $host = '';
    Am I in error?

    Another question: is there a variable containing the customer's domain name? Then I could have "MX 10 mail.mycustomerdomain.tld and add a query like:

    $sql = "INSERT INTO dns_a (host,ip_adresse) VALUES ('mail','$ip_adresse')";
    Thank you
  2. till

    till Super Moderator

    When you create an MX record in ISPConfig DNS-Manager, leve the host field empty.
  3. ddelbia

    ddelbia Member

    I don't mean the dns manager, I mean the ISP manager :)
    In the ISP manager I have no form, the MX creation is done automatically.
  4. till

    till Super Moderator

    The ISP-Manager is only a shortcut for the DNS-Manager. Go to the DNS-Manager and change the record accordingly to my post.
  5. ddelbia

    ddelbia Member

    Anyway, the code that i posted up here, seems to work, then it's ok :)

Share This Page