We strip at the calling point rather than in the server, because DNS servers do see the domain as ending with a '.' representing the root.
We strip at the calling point rather than in the server, because DNS servers do see the domain as ending with a '.' representing the root.