Skip to content
/ dnsapi Public
forked from wmde/dnsapi

Class for accessing the DNS API of Core Network

License

Notifications You must be signed in to change notification settings

MasinAD/dnsapi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnsapi

Class for accessing the DNS API of Core Network

Usage

$dns = new DNSApi();
$login = 'myusername';
$password   = 'myapiakey';

if($dns->auth( [ 'login' => $login, 'password' => $password ] ) ) {
  $zones = $dns->getDnsZones();
  $new_record = [ 'name' => 'subdomain',
                  'type' => 'A',
                  'data' => '1.2.3.4' ];

  $add = $dns->setDnsRecord( 'example.org', $new_record );
}

About

Class for accessing the DNS API of Core Network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%