There are a lot of bricks and pieces on the web how to setup DNS for a local Site in SXA but no end to end description. At least I could not find it. Here's one from A-Z
In case you run several websites in one Sitecore instance and need to distinguish users between those different sites here’s what we did.