I have a dog he lives outside the house to serve as a guardian in a beaufiful kennel hes is a well bred german shepherd he will bark to alert us if anyone comes in our home but at the same time he is raised to be very friendly and respectful towards guests/ friends whenever told to is this permissible
As-salaamu ‘alaykum, may Allah ennoble you and bring you near to Him. The scholars of Islamic law have different opinions regarding dogs, but according to the school of Imam Malik, there is no problem owning a dog for the reasons you mentioned and there are no issues with the dog entering the house as dogs are not considered impure in any way. I hope that helps, may Allah reward you for seeking His guidance and increase you in it.