use hostname from SRV record to look up IP addresses
authorFelix Fietkau <nbd@nbd.name>
Thu, 19 Oct 2023 08:58:04 +0000 (10:58 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 19 Oct 2023 08:58:07 +0000 (10:58 +0200)
commitb42b22152d73c0b5825bd20742d501d47adabed1
tree0ee0cb2c209295ad7138e1fadbce43eb01df9662
parentc63d465698c732665a166729165be8c724327fa3
use hostname from SRV record to look up IP addresses

On many devices, the main record name contains the long form hostname,
whereas the A/AAAA records are assigned to the hostname indicated in the
SRV record.
This fixes getting IP addresses via browse for many devices

Signed-off-by: Felix Fietkau <nbd@nbd.name>
cache.c
cache.h
ubus.c