CMD_API_NAME_SERVER

Version 1.315

Feature
Finished

new Api: CMD_API_NAME_SERVER All commands will be exactly the same as for: CMD_NAME_SERVER As used in: Reseller Level -> Nameservers change the default ns1/ns2 a reseller provides when a user is created: method: GET or POST action=modify ns1=ns1.whatever.com ns2=ns2.whatever.com create 2 normal nameservers with selected IPs: method: POST create=anything (just has to exist) select0=1.2.3.4 select1=1.2.3.5 domain=domain.com ns1=ns1 ns2=ns2 create 2 virtual nameservers with selected IPs (it will use the IPs that the main server ns1/ns2 in the admin settings use): method: POST create=anything (just has to exist) virtual=yes domain=domain.com ns1=ns1 ns2=ns2 delete 2 nameservers: method: POST delete=anything (just has to exist) select0=1.2.3.4 select1=1.2.3.5 View the nameservers page: method: GET or POST don't pass anything (POST has no use in this case) output: domains=domain1.com|domain2.com|domain3.com (shows all domains for all reseller's users and the reseller's domains) NS1=ns1.reseller.com (the value specified by the reseller for new users) NS2=ns2.reseller.com 1.2.3.4=gateway=&netmask=255.255.255.0&ns=&reseller=admin&status=shared&value=4 1.2.3.5=gateway=&netmask=255.255.255.0&ns=&reseller=bob&status=owned&value=ftptest in summary, the output will have domains, NS1, NS2 as standard, then will have a list of IPs. It would likely be easiest to grab all of the output, read and remove domains,NS1,NS2, then it will leave you with the full list of IPs and their related information.

Interested to try DirectAdmin? Get a 30-day Free Trial!