Skip to content
Snippets Groups Projects
Commit 2b061b97 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

knsupdate: update man.8 and improve cmd_ttl return

refs #2137

Change-Id: I743b5b8abe9239d412c08d2cdf72c6d620cf9893
parent 3dd3497e
No related branches found
No related tags found
No related merge requests found
......@@ -93,15 +93,15 @@ cannot be set.
.TP
[\fBupdate\fR] \fBadd\fR \fIname\fR \fIttl\fR [\fIclass\fR] \fItype\fR \fIdata\fR
Adds a request to add a new resource record into the zone. Please note that the
\fIname\fR must be fully qualified domain name (zone name is not appended to it).
Adds a request to add a new resource record into the zone. Please note that if the
\fIname\fR is not fully qualified domain name, current \fIorigin\fR name is appended to it.
.TP
[\fBupdate\fR] \fBdel\fR[\fBete\fR] \fIname\fR \fIttl\fR [\fIclass\fR] \fItype\fR \fIdata\fR
[\fBupdate\fR] \fBdel\fR[\fBete\fR] \fIname\fR [\fIttl\fR] [\fIclass\fR] [\fItype\fR] [\fIdata\fR]
Adds a request to remove an existing resource record from the zone. There is
the same requirement for the \fIname\fR parameter as in the \fBupdate add\fR
command.
Adds a request to remove all (or matching \fIclass\fR, \fItype\fR, \fIdata\fR)
resource records from the zone. There is the same requirement for the
\fIname\fR parameter as in the \fBupdate add\fR command. The \fIttl\fR item is ignored.
.TP
\fBshow\fR
......
......@@ -594,9 +594,7 @@ int cmd_ttl(const char* lp, nsupdate_params_t *params)
return KNOT_EPARSEFAIL;
}
nsupdate_set_ttl(params, ttl);
return KNOT_EOK;
return nsupdate_set_ttl(params, ttl);
}
int cmd_debug(const char* lp, nsupdate_params_t *params)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment