Aren’t there several states that have the same city name repeated within the state? I think there’d need to be a county delineator here too.
The edge cases always make things so difficult:
Manhattan: New York County
Brooklyn: Kings County
The Bronx: Bronx County
Queens: Queens County
Staten Island: Richmond County
All New York City. Same municipality, 5 counties.
If you have hierarchical naming, which DNS does, then the problem of name clashes is always a problem for whoever sits above those names and they can resolve it however they like.
If your state thought it was a good idea to have two cities named "Star City" that's on them to resolve however they like. Trial by endurance for the city mayor? Draw lots? Everybody in the state votes? Not my monkeys, not my circus.
You're right, but typically, when two towns in a state share a name, only one is an incorporated city at most. The other, or both, are usually unincorporated communities. Normally, unincorporated communities do not receive a city.state.us locality domain.
That gets extremely complicated. My town straddles the border between 2 counties. And you can't trivially have subdomains for counties and cities at the same level, because Wyoming has a Laramie city but it's in Albany County, not the neighboring Laramie County.
Did this just inspire the next "Falsehoods programmers believe about... Federalism"?