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 used for both settlements (Kostajnica-Bosnia and Herzegovina and Hrvatska Kostajnica-Croatia) that surround the Kostajnica castle in the Una valley.