PDA

View Full Version : DNS entries


marcob
7th April 2009, 13:25
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

lubos
7th April 2009, 15:22
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 :)

falko
8th April 2009, 13:38
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.
No, but you can do this manually in the DNS Manager.

marcob
9th April 2009, 11:22
No, but you can do this manually in the DNS Manager.

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

falko
10th April 2009, 13:43
Take a look at /home/admispconfig/ispconfig/lib/classes/ispconfig_isp_web.lib.php.

marcob
16th April 2009, 22:50
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!