[header] How to keep a dog in an apartment that does not allow dogs [title] Eliminate any motivation for barking. [step] If you want to keep your landlord from discovering your dog, you need to keep it quiet. Start by removing any motivation for barking. 
Try to observe when your dog barks and work on eliminating anything that encourages the behavior. [substeps] For example, if your dog barks at pedestrians, keep your blinds closed.