addrdataset now optionally returns the added rdataset

This commit is contained in:
Bob Halley
1999-05-05 22:57:20 +00:00
parent 624f397db5
commit 7f705ac9a2
4 changed files with 35 additions and 11 deletions

View File

@@ -742,7 +742,8 @@ main(int argc, char *argv[]) {
if (dbi != NULL && addmode && !found_as) {
rdataset.ttl++;
result = dns_db_addrdataset(db, node, version,
0, &rdataset);
0, &rdataset,
NULL);
if (result != DNS_R_SUCCESS)
printf("%s\n",
dns_result_totext(result));