eSupport.org.ua
Verified User
Hi!
I was try delete MX record for domain example.com. This is my code:
When I run this code, I receive return:
But record is not deleted from zone.
There is records from DA debug mode:
Also I try delete A record:
This works without any problem. So, MX deleting is not full documented or not works.
I was try delete MX record for domain example.com. This is my code:
PHP:
$sock->query('/CMD_API_DNS_ADMIN',
array(
'domain' => "example.com",
'action' => "select",
'mxrecs0' => "name=example.com&value=mail"
));
$result = $sock->fetch_body();
echo $result;
When I run this code, I receive return:
HTML:
error=0&text=Records Deleted&details=
There is records from DA debug mode:
PHP:
/CMD_API_DNS_ADMIN
0: Accept: */*
1: Authorization: Basic ***
2: Connection: Close
3: Content-length: 74
4: Content-type: application/x-www-form-urlencoded
5: Host: localhost:2222
6: User-Agent: HTTPSocket/2.7.2
Post string: domain=example.com&action=select&mxrecs0=name%3Dexample.com%26value%3Dmail
Command::doCommand(/CMD_API_DNS_ADMIN)
File /var/named/example.com.db.temp appears ok to named-checkzone
Dynamic(api=1, error=0):
text='Records Deleted'
result=''
Command::doCommand(/CMD_API_DNS_ADMIN) : finished
Command::run: finished /CMD_API_DNS_ADMIN
Also I try delete A record:
HTML:
$sock->query('/CMD_API_DNS_ADMIN',
array(
'domain' => "example.com",
'action' => "select",
'arecs0' => "name=localhost&value=127.0.0.1"
));
$result = $sock->fetch_body();
echo $result;
This works without any problem. So, MX deleting is not full documented or not works.