Verified Commit d66af1e3 authored by Helmo's avatar Helmo
Browse files

Add api functions for DNS type LOC, #6224

These were already listed in interface/web/dns/lib/remote.conf.php
parent ef4dff9c
......@@ -513,6 +513,29 @@ class remoting_dns extends remoting {
return $this->dns_rr_delete($session_id, $primary_id, $update_serial, 'HINFO');
}
// ----------------------------------------------------------------------------------------------------------------
//* Get record details
public function dns_loc_get($session_id, $primary_id) {
return $this->dns_rr_get($session_id, $primary_id, 'LOC');
}
//* Add a record
public function dns_loc_add($session_id, $client_id, $params, $update_serial=false) {
return $this->dns_rr_add($session_id, $client_id, $params, $update_serial, 'LOC');
}
//* Update a record
public function dns_loc_update($session_id, $client_id, $primary_id, $params, $update_serial=false) {
return $this->dns_rr_update($session_id, $client_id, $primary_id, $params, $update_serial, 'LOC');
}
//* Delete a record
public function dns_loc_delete($session_id, $primary_id, $update_serial=false) {
return $this->dns_rr_delete($session_id, $primary_id, $update_serial, 'LOC');
}
// ----------------------------------------------------------------------------------------------------------------
//* Get record details
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment