It is dominating behavior. Have everyone dealing with him make him submit. If there is someone he wont submit to. The dog either has a screw loose or someone is not doing it right. But dogs that think they are the alpha should not be kept inside. Eventually they will bite someone.