You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(dns): serve reverse PTR for overlay instance addresses
Overlay (DPU-managed) instances got forward A/AAAA records in #2408, but
their addresses still resolved to nothing in reverse -- find_ptr_record
only answered from machine interfaces, and overlay addresses live in
instance_addresses. This adds the reverse half: an overlay instance's
address now answers a PTR with its own FQDN, so a forward record and its
PTR round-trip.
find_ptr_record gains a second UNION arm over instance_addresses that
mirrors the dns_records_instance forward view -- same join to the segment's
forward zone, same host_inband exclusion (those addresses are the host's
own, already answered by the machine arm). It reads the hostname stored at
allocation, so there is no second IP-to-name derivation; the lookup is by
address, like the machine arm.
- Add an instance_addresses arm to find_ptr_record, resolving an overlay
address to <hostname>.<zone>.
- Reuse #2408's stored hostname + the segment's forward zone; exclude
host_inband (the machine arm already answers those).
Tests added!
This supports #2776
Signed-off-by: Chet Nichols III <chetn@nvidia.com>
0 commit comments