Skip to content

Commit fdc9a3d

Browse files
committed
document limitation of forwarding to authoritative servers
1 parent cfc3981 commit fdc9a3d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/config-forward.rst

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ The :option:`forward <forward: <list>>` list of rules overrides which servers ge
4040
:default: false
4141

4242
The forwarding target is an authoritative server.
43+
For those we only support specifying address, e.g. not port or %interface.
4344

4445
.. option:: dnssec: true|false
4546

lib/rules/api.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,10 @@ typedef struct kr_rule_fwd_flags kr_rule_fwd_flags_t;
229229
/** Insert/overwrite a forwarding rule.
230230
*
231231
* Into the default rule-set ATM.
232-
* \param targets NULL-terminated array. */
232+
* \param targets NULL-terminated array.
233+
*
234+
* For is_auth == true we only support address, e.g. not specifying port or %interface.
235+
*/
233236
KR_EXPORT
234237
int kr_rule_forward(const knot_dname_t *apex, kr_rule_fwd_flags_t flags,
235238
const struct sockaddr * targets[]);

0 commit comments

Comments
 (0)