DNS entries

Discussion in 'Installation/Configuration' started by marcob, Apr 7, 2009.

  1. marcob

    marcob New Member

    Hi,
    First question:
    is possible to fix DNS ns and DNS MX automatic creation to different values than default? For example fixing DNS MX to a fixed hostname.

    Second question:
    is possible to delete single objects from recycle bin without emptying all?

    Also, when deleting a customer, is normal that related dns zone is not deleted?


    Thanks in advance
     
  2. lubos

    lubos New Member

    I cannot help you with Q1, but Q2 and Q3 yes.

    Q2 As far as I know it is not possible to delete single entry from bin, only whole bin can be emptied. If you need to delete only one entry restore all entries except the one you want delete, empty bin, delete (into bin) all entries you want to be in bin but not deleted permanently. Tedious, I know.

    Q3 It is normal that DNS entries are not deleted when deleting customer. DNS entries are in separate table and work quite independently.

    My 2 cents :)
     
  3. falko

    falko Super Moderator ISPConfig Developer

    No, but you can do this manually in the DNS Manager.
     
  4. marcob

    marcob New Member

    Can you point me which script create dns entries so I can try to modify it?
    Thanks in advance
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Take a look at /home/admispconfig/ispconfig/lib/classes/ispconfig_isp_web.lib.php.
     
  6. marcob

    marcob New Member

    Ok, thanks

    I modify the following entries:

    for MX
    $mailserver = trim($server["server_domain"]);
    } else {
    $mailserver = trim($server["server_host"]).'.'.trim($server["server_domain"]);

    to:
    $mailserver = "pippo.foo.bar";
    } else {
    $mailserver = "pippo.foo.bar";


    for DNS:
    $dns_ns1 = $server["server_bind_ns1_default"];
    $dns_ns2 = $server["server_bind_ns2_default"];

    to:
    $dns_ns1 = "pippo1.foo.bar";
    $dns_ns2 = "pippo2.foo.bar";


    It would be great if someone can help me to add code about automatic creation of A records.

    Thanks in advance!
     

Share This Page