Skip to content

Commit ba63092

Browse files
author
Marius Burkard
committed
Merge branch '6224-missing-loc-functions' into 'develop'
Add api functions for DNS type LOC, #6224 Closes #6224 See merge request ispconfig/ispconfig3!1519
2 parents ef73cc6 + d66af1e commit ba63092

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

interface/lib/classes/remote.d/dns.inc.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,29 @@ public function dns_hinfo_delete($session_id, $primary_id, $update_serial=false)
513513
return $this->dns_rr_delete($session_id, $primary_id, $update_serial, 'HINFO');
514514
}
515515

516+
517+
// ----------------------------------------------------------------------------------------------------------------
518+
519+
//* Get record details
520+
public function dns_loc_get($session_id, $primary_id) {
521+
return $this->dns_rr_get($session_id, $primary_id, 'LOC');
522+
}
523+
524+
//* Add a record
525+
public function dns_loc_add($session_id, $client_id, $params, $update_serial=false) {
526+
return $this->dns_rr_add($session_id, $client_id, $params, $update_serial, 'LOC');
527+
}
528+
529+
//* Update a record
530+
public function dns_loc_update($session_id, $client_id, $primary_id, $params, $update_serial=false) {
531+
return $this->dns_rr_update($session_id, $client_id, $primary_id, $params, $update_serial, 'LOC');
532+
}
533+
534+
//* Delete a record
535+
public function dns_loc_delete($session_id, $primary_id, $update_serial=false) {
536+
return $this->dns_rr_delete($session_id, $primary_id, $update_serial, 'LOC');
537+
}
538+
516539
// ----------------------------------------------------------------------------------------------------------------
517540

518541
//* Get record details

0 commit comments

Comments
 (0)