The name Kostajnica is used for  both settlements in the Una valley (Kostajnica-Bosnia and Herzegovina and Hrvatska Kostajnica-Croatia) which surround the Kostajnica castle.
The name Kostajnica is applied to both settlements in the Una valley (Kostajnica-Bosnia and Herzegovina and Hrvatska Kostajnica-Croatia) that encircle the Kostajnica castle.