Thanks for great replies guys ..
although I respect everyone;s opnion, I like to share wordings of Mufti Ebrahim Desai
** Jurists have stated that it is permissible to keep a dog for security purposes, farming and hunting.**
off course one has to take care that the dog is kept outside the house
here is the whole article
Link