This now points to where the duplicate name ends, not where it starts. Also fixes test 2410 to use a fixed hostname so that the error position remains the same. Reported-by: Viktor Szakats Fixes #21567 Closes #21568