forked from troglobit/mdnsd
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Right now A records are only added when the interface already has an IP address. This works, because the whole configuration is reloaded when something changes, but it is rather fragile. It would be preferable if A/AAAA records were added dynamically when the interface IP changes. This is currently not implemented in the library because it needs external information like the conflict callback and hostname. Maybe a better solution can be found.
Lines 209 to 214 in 855ca69
| /* If an IPv4 address is already set, add an A record for it. */ | |
| struct in_addr ipv4addr = mdnsd_get_address(d); | |
| if (ipv4addr.s_addr != 0) { | |
| r = record(iface, 0, NULL, nlocal, QTYPE_A, 120); | |
| mdnsd_set_ip(d, r, ipv4addr); | |
| } |
Metadata
Metadata
Assignees
Labels
No labels