templates, createlinks: add support for DNS SRV records. Refs #2715