Mark Chance
Boingy! Boingy!
Doors and/or walls that are mysteriously immune to all the players' abilities, tools, and ingenuity is cool... once. After that, it just becomes annoying and breaks the flow of the game.
QFT. D&D isn't about me pitting the rules against the players in an effort to neutralize their characters' abilities. It's not that kind of game.
Still, if defeating knock were suddenly an important part of a particular scenario, I don't need a rule-text way to defeat knock. All I need is this little bit of script. Feel free to use it your own game if you'd like.
Player: I cast knock on the door.
DM: The spell has no effect.
Player: Why not?
DM: You don't know.
If necessary, here's the more advanced continuation:
Player: I cast detect magic on the door.
DM: It has an aura.
Player: I concentrate longer. What kind of aura?
DM: Moderate abjuration.
Badda-bing. I just defeated knock.