The official website for The Settlers of Catan

Question about Domaine Starting Set-up - What happens if a castle cannot be placed because of the distance rule?

Answer

If it is impossible to observe the distance of 6 territories demanded by the rule, the distance is reduced to 5 territories for this particular castle. The rule demanding a distance of 6 territories still applies - if possible - to the other players' castles.
This rule applies to the players’ castles as well as to the neutral player’s castles used in the 2-player game.