Search results for query: cmd_api_dns_control

  1. P

    Adding DNS-records via API through bash/curl

    ...subdomain="test" # Retrieve DNS records #curl --request POST --user $user:$password --data 'package=unlimited' $server/CMD_API_DNS_CONTROL?domain=$domain #echo $? # Delete curl --request POST --user $user:$password --data 'package=unlimited' --max-time 15\...
  2. S

    Nameservers wrong or ?

    ...the same way as the A record that's going without any issues. Example A record: somevalue A 127.0.0.1 $dns->query('/CMD_API_DNS_CONTROL', array('domain' => 'domain.tld', 'action' => 'add', 'type' => 'A', 'name' => 'somevalue', 'value' => '127.0.0.1'); Example NS record: domain.tld...
  3. B

    add A record via api

    ...the right command. cd /usr/local/directadmin killall -9 directadmin ./directadmin b800 I deleted via the gui and output was CMD_API_DNS_CONTROL?action=add&domain=mydomain.com&type=A&name=test&value=1.1.1.1&add=Add I deleted and tried doing via command line echo...
  4. R

    [BUG] CMD_API_DNS_ADMIN & CMD_API_DNS_CONTROL return url encoded zone

    The return string is not correct. When i decode everything with the httpsocket.php using the fetch_parsed_body function the Array is not correct. Also the MX records the are given are not correct. It only gives the value and not the name. It now gives: mail 10 It should be: domein.com. mail 10
  5. SeLLeRoNe

    Dynamic DNS Option

    ...the one uncommented is for whatever.dyndnsdomain.tld <?php $DIRECTADMINUSER="dyndns"; $DIRECTADMINPASSWORD="MYLOGINKEY - ONLY CMD_API_DNS_CONTROL"; include("httpsocket.php"); if (isset($_GET["hostname"])) { $IP = $_SERVER['REMOTE_ADDR']; $HOSTNAMEARRAY = explode("."...
  6. D

    List all domains via DirectAdmin API

    Thanks for your reply - As I underestand - CMD_API_DNS_CONTROL works the same. Added link for that also: http://www.directadmin.com/features.php?id=504 (In my case there was only need for admin to access server for statistics - but thank you for pointing out more possibilities :))
  7. U

    List all domains via DirectAdmin API

    Try CMD_API_DNS_CONTROL instead of CMD_API_DNS_ADMIN, might be permissions problem as 'CMD_API_DNS_ADMIN' can be executed only from administrative user account.
  8. U

    Delete a 'A' record with CMD_API_DNS_CONTROL

    ...$sock->connect($conf["SERVERIP"], 2222); $sock->set_login($conf["USERNAME"],$conf["PASSWORD"]); $sock->set_method('POST'); // remove old record $sock->query('/CMD_API_DNS_CONTROL', array( 'action' => 'select', 'selecttype' => $propertyDeleteEncoded, 'domain' => $conf["DOMAINNAME"], ));
  9. ISOS6

    Change TTL API

    Yes, here is my phpcode. It is not writen somewhere. But my code works $sock->query('/CMD_API_DNS_CONTROL', array('domain' => ' DOMAIN ', 'action' => 'ttl', 'ttl_select' => 'custom', 'ttl' => ' NUMBER OF TTL ')); I dont know how is your code, but if...
  10. W

    Remove NS record

    ...and thought it could be impossible but it is very easy indeed $sock->query('/CMD_API_DNS_CONTROL', array( 'domain' => '[domain]', 'action' => 'select', 'delete' => 'delete' 'nsrecs0' => 'name='.'[domain].'.'&value='.'[ns1].'), )); $result =...
  11. W

    Remove NS record

    ...any difference I don't know how to delete this record using API (I use HTTPSocket class). I try to execute: $sock->query('/CMD_API_DNS_CONTROL', array( 'domain' => '[domain]', 'action' => 'select', 'arecs0' => 'name='.'[domain].'.'&value='.'[ns1].'), )); $result...
  12. L

    Cmd_api_additional_domains

    ...].'|'.$sel['daname'], $core[ 'conf' ][ 'direct' ][ 'pass' ] ); $Socket->set_method( 'GET' ); $Socket->query('/CMD_API_DNS_CONTROL', array('domain' => strip_tags(mysql_real_escape_string($_GET['domain'])))); $result = $Socket->fetch_parsed_body(); The same way, I wanna...
  13. A

    API adding nameserver

    ...Going good so far, except for adding nameservers. I’am using the following query with the httpsocket.php class: $sock->query('/CMD_API_DNS_CONTROL', array( "action" => "add"...
  14. X

    API for A records

    ...$server_ssl="N"; $sock->connect($server_ip, 2222); $sock->set_login($server_login,$server_pass); $sock->query('/CMD_API_DNS_CONTROL', array( 'domain' => 'domain', 'action' => 'add', 'type' => 'A', 'name' => 'test', 'value' => '1.2.3.4', )); $result =...
  15. J

    BUG: CMD_API_DNS_CONTROL & NS records

    CMD_API_DNS_CONTROL & NS records Hello, I'm currently creating one big class to handle all kind of Direct admin commands via API. I noticed that once I create a DNS record with "CMD_API_DNS_CONTROL" the NS records are not created correctly: The next header I send to the above page...
  16. DirectAdmin Support

    DA API Feauture request: deleting DNS records

    ...be looking at exactly what your browser dumped to DA. You'll want to get your script to do that exact same thing.. except with CMD_API_DNS_CONTROL instead of CMD_DNS_CONTROL. In any case, back to your question, this is the "delete"...
  17. 1

    DA API Feauture request: deleting DNS records

    ...with some posts from people who are also looking for this option. Currently it is possible to create DNS records using the API: CMD_API_DNS_CONTROL?domain=domain.com&action=add&type=A|NS|MX|CNAME|PTR&name=namevalue&value=recordvalue Also its possible to get a list of all the record types...
  18. R

    Delete DNS records, howto?

    Hi, I have found the command "CMD_API_DNS_CONTROL?domain=domain.com&action=add" to add DNS records to a domain, but there is no action=delete? Can someone tell me how I delete DNS records with the API? :) Thanks in advance, Ryan
  19. ShadowM

    Arbitrary/private DNS Blacklist performance problems

    ...mysql_error()); $add_count = mysql_num_rows($add_query); while($add_data = mysql_fetch_assoc($add_query)) { $sock->query('/CMD_API_DNS_CONTROL', array( 'domain' => 'blacklist.**********', 'action' => 'add', 'type' => 'A', 'name' =>...
  20. DirectAdmin Support

    adding gmail MX automatically?

    ...with that you can use the API (assuming they have dns control) to use this: http://www.directadmin.com/features.php?id=626 where CMD_API_DNS_CONTROL is the user level access for it. You can make any dns changes to their domain with this tool. www.directadmin.com/api.html for more info. Use...
Back
Top