diff options
| author | Felix Fietkau | 2023-10-19 08:49:11 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2023-10-19 08:49:13 +0000 |
| commit | c63d465698c732665a166729165be8c724327fa3 (patch) | |
| tree | df07c44a42f48b3d976287bd7426c5b592359a1b | |
| parent | 4035fe42df588122ec99ac3e16db448b6c3f577d (diff) | |
| download | mdnsd-c63d465698c732665a166729165be8c724327fa3.tar.gz | |
cache: dump hostname target from srv records
This can be used to look up the correct hostname to determine the ip addresses
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -454,6 +454,8 @@ cache_dump_records(struct blob_buf *buf, const char *name, int array) break; case TYPE_SRV: + if (r->rdata) + blobmsg_add_string(buf, "host", (char *)r->rdata + sizeof(struct dns_srv_data)); if (r->port) blobmsg_add_u32(buf, "port", r->port); break; |