(#18162) Honor fileserver SRV record for file metadata requests

File content requests uses the x-puppet-fileserver SRV record, but file
metadata requests used the x-puppet SRV record.

Adds test for the functionality.