
Dogs can urinate to mark territory as well as just to relieve themselves. At 6 months the hormones can kicked in and some can act like stroppy teens and training can regress for a while.
I'd lock them out of the bedrooms. Keep taking them out for frequent loo breaks. Get special cleaning products to completely remove all smell of urine. Dogs can smell it even if we can't and if it smells like wee, they'll wee on it.
Patience, prober cleaning and preventing access to areas of the house they're currently wee in.
Also worth a UTI check. UTI can cause inconvenience