I don't think a dogs job is to go apeshit when someone rings the doorbell. It might be there job to alert you that someone has rung the doorbell but going apeshit is kinda odd. What happens when the alarm to wake up goes off? How about the microwave? All I am saying is that the dogs shouldn't be going bonkers when the doorbell rings.
That's my dog's job. Or possibly kill them if someone comes in, uninvited.
That said, I'm in a gated community. We've got large signs at the gate. Even so, when some guy came to the door, Vivant Alarms or something like that, I told the van driver they are trespassing, and they left. That night, they got busted at the motel 6 about 2 blocks from my house, they were a burglary ring.
Also, some JWs came by. I asked them if someone invited them in, some cocky bastard said, we don't need an invitation. I told him to suck my dick, wait here. A minute later, when the cops showed up, and I told them that I thought they were burglars, and the cops showed up in force, it turns out they were Jehovah's. A co-worker of mine is a Jehovah, news of that made it back to the GrandWizardGreatSkydragon of the JWs, and they were told to stay out. It worked. Fuck 'em, they can keep their cult bullshit to themselves.