Search results for query: cmd_api_dns_control

  1. O

    Delete TXT DNS record via API

    ...server="xxxx" domain="xxx" subdomain=$1 curl --insecure -s --max-time 15 --user $user:$password...
  2. xyntanl

    Multi server DNS credential usage

    ...instead of using the admin user login for example. This seems to work with the following actions allowed: CMD_API_DNS_ADMIN CMD_API_DNS_CONTROL CMD_API_DNS_MX CMD_API_DNS_RESELLER CMD_API_LOGIN_TEST CMD_DNS_ADMIN CMD_DNS_CONTROL CMD_DNS_MX CMD_DNS_RESELLER CMD_LOGIN Can we limit that...
  3. V

    edit DNS record

    @kristian thanks, I probably only need this line, but thanks! RESULT="$(curl -sS -u "${DA_USERNAME}:${DA_PASSWORD}" "${DA_URL}/CMD_API_DNS_CONTROL?action=edit&domain=${DOMAINNAME}&arecs0=name%3D${DNS_HOST}.%26value%3D${CONFIGURED_IP}&type=A&name=${DNS_HOST}.&value=${CURRENT_IP}&json=yes")"...
  4. kristian

    edit DNS record

    ...password for the account owning DOMAINNAME. Note that the # password here should ideally be a Login Key that only has access to # CMD_API_DNS_CONTROL and nothing else. DA_USERNAME="username" DA_PASSWORD="secret" # Configuration end...
  5. factor

    Unable to use login key with WHMCS

    ...CMD_API_PACKAGES_USER CMD_API_ADDITIONAL_DOMAINS CMD_API_SHOW_ALL_USERS CMD_API_SHOW_USERS CMD_API_SHOW_RESELLERS CMD_API_DNS_CONTROL CMD_API_DNS_MX CMD_API_FTP CMD_API_SHOW_USER_CONFIG CMD_API_SYSTEM_INFO CMD_API_SHOW_RESELLER_IPS CMD_API_ACCOUNT_USER CMD_SELECT_USERS...
  6. MaXi32

    Using API with cURL

    When using CMD_API_DNS_CONTROL you must choose correct authentication because only specific user can use this whereas if you use CMD_API_DNS_ADMIN, it can be used by admin to control all domains (best to use this if authentication is admin). So, I think the main problem there was the...
  7. M

    Using API with cURL

    ...--data 'domain=domain.nl&action=add&type=A&name=apitest.domain.nl&value=127.0.0.1' https://mydirectadminurl.tld:2222/CMD_API_DNS_CONTROL curl -s --max-time 15 --user 'user:xxxxxxxxxxxxxxxxxxxxx'...
  8. T

    Setting up feature-sets

    ...can I find any documentation about this? The current custom feature set: cat /usr/local/directadmin/data/templates/custom/feature_sets/domain_only/commands.allow CMD_DNS_CONTROL CMD_API_DNS_CONTROL CMD_DOMAIN CMD_API_DOMAIN CMD_SHOW_DOMAINS CMD_API_SHOW_DOMAINS CMD_SUBDOMAINS CMD_API_SUBDOMAINS
  9. MaXi32

    Solved Get the DKIM key value for specific domain via API (CMD_API_DNS_CONTROL)

    ...+ jq: #!/bin/bash api_username="username" api_password="12321" da_port="2222" hostname="test.hostname.com" ssl="https" command="CMD_API_DNS_CONTROL" domain="test.com" data="domain=${domain}&json=yes" method="POST" input=$(curl --silent --request "${method}" --user...
  10. MaXi32

    Solved Get the DKIM key value for specific domain via API (CMD_API_DNS_CONTROL)

    ...way to get DKIM value for a specific domain via API through curl in bash? Doesn't seems to have much documentation about this CMD_API_DNS_CONTROL: https://www.directadmin.com/features.php?id=626 Currently I use this method it works but I think this is too complex. I'm not sure if there is a...
  11. factor

    undocumented changes in CMD_API_DNS_CONTROL ?

    ...to the link and ctrl+f and search for cmd_api_dns I get 8 things. Not sure if that's where you looked. I bet a lot has changed over the last several years. Here are all the old posts as well. https://forum.directadmin.com/search/186228/?q=cmd_api_dns_control&o=date Welcome to the forum BTW..
  12. B

    undocumented changes in CMD_API_DNS_CONTROL ?

    Tl;dr: What has changed in the last couple months when it comes to using CMD_API_DNS_CONTROL to delete records? The delete code suddenly needs some modifications to work again, no error about what went wrong. The longer version: A couple of years ago I wrote a PHP script that, when called...
  13. B

    PHP - CMD_API_DNS_CONTROL edit records

    Hello, I am trying to remove all existing MX records from a domain and add my own MX-record(s). I am using the following library to communicate with the API: https://github.com/omines/directadmin Because this library doesn't include DNS management, I am using the "invokeApiPost" command under...
  14. spacecabbie

    dyndns script

    ...$sock->connect($server_host, $server_port); } $sock->set_login($server_login,$server_pass); $sock->query('/CMD_API_DNS_CONTROL', array( 'domain' => $domain, )); $result = $sock->fetch_parsed_body(); var_dump ($result)...
  15. itcms

    Whmcs reseller commands

    ...CMD_API_CHANGE_INFO CMD_API_COMMENTS CMD_API_CRON_JOBS CMD_API_DATABASES CMD_API_DB_USER CMD_API_DB_USER_PRIVS CMD_API_DNS_CONTROL CMD_API_DNS_MX CMD_API_DOMAIN CMD_API_DOMAIN_OWNERS CMD_API_DOMAIN_POINTER CMD_API_DU_BREAKDOWN CMD_API_EDIT_USER_MESSAGE CMD_API_EMAIL_AUTH...
  16. E

    API for DNS management

    ...MX=mail=10 CNAME= PTR= TXT=domainname.no.="v=spf1 a mx ip4:1.2.3.4 ~all" AAAA= SRV= SPF= TLSA= CAA= DS= I've tried using both: /CMD_API_DNS_CONTROL?domain=domainname.no&info=yes&urlencoded=yes and: /CMD_API_DNS_ADMIN?domain=domainname.no&info=yes&urlencoded=yes Can anyone explain the logic...
  17. K

    Dynamic DNS Option

    ...$sock->set_method('POST'); // Set TTL to 60 seconds $sock->query("/CMD_API_DNS_CONTROL?domain=".$DOMAIN."&action=ttl&ttl_select=custom&ttl=60"); if (!strstr($sock->fetch_body(),"error=0")) $ERROR=1; // Remove old A record...
  18. M

    CMD_API_DNS_CONTROL / CMD_API_DNS_MX delete MX records

    ...Array ( [domain] => abecadlozmien.pl [action] => select [select0] => name=mydomain.com.&value=40%20mxrecordtest ) to CMD_API_DNS_CONTROL the record is not deleted, another record is deleted (from what I noticed it is a record one above) The same problem i have with...
  19. P

    Adding DNS-records via API through bash/curl

    ...parameters, this now works: # Updating requires delete & add. # delete curl -s --max-time 15 --user $user:$password "${server}/CMD_API_DNS_CONTROL?domain=${domain}&action=select&arecs0=name%3D${subdomain} # add curl -s --max-time 15 --user $user:$password...
  20. zEitEr

    Adding DNS-records via API through bash/curl

    ...Why do you send data "package=unlimited" ? It's not needed here, try:# Add curl --request GET --user $user:$password $server/CMD_API_DNS_CONTROL?domain=$domain&action=add&type=A&name=$subdomain&value=8.8.8.8 echo $? For deleting you should URL-encode name=www&value=1.2.3.4 so it will be...
Back
Top