diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-06-20 19:32:51 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-06-21 13:20:48 +0200 |
commit | 6ebd1e33e6ab3dd56e1aa34f4f0e17a752fb1233 (patch) | |
tree | 9d3f8e9161fc461b4a5db4f59509e34bfcd09a1e /src/resolve/dns-type.c | |
parent | 0a0fc27b80796c603cb64728b38c55f8f2084f36 (diff) |
resolved: explicitly refuse zone transfers using the bus API
Diffstat (limited to 'src/resolve/dns-type.c')
-rw-r--r-- | src/resolve/dns-type.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/resolve/dns-type.c b/src/resolve/dns-type.c index 78d9d5733f..aaf5ed62c1 100644 --- a/src/resolve/dns-type.c +++ b/src/resolve/dns-type.c @@ -96,6 +96,15 @@ bool dns_type_is_valid_query(uint16_t type) { DNS_TYPE_RRSIG); } +bool dns_type_is_zone_transer(uint16_t type) { + + /* Zone transfers, either normal or incremental */ + + return IN_SET(type, + DNS_TYPE_AXFR, + DNS_TYPE_IXFR); +} + bool dns_type_is_valid_rr(uint16_t type) { /* The types valid as RR in packets (but not necessarily |