To complement Paul's post:
The air flow should be outward the box, to exhaust internal hot air to the exterior. The top cover should be closed and not covered by anything. There should be a small clearing space around the box.
On the DNS-320L the only fresh air intake is from the many small holes around the top cover, but my experiments showed that without the top cover in place the fan does nothing, as cold air does not reaches the box bottom, where the electronic circuit main board is located; the box bottom has no fresh air intake. In my opinion a bad thermal design.
correction: There are air intake holes in the bottom, but the internal circuit board is tightly adjusted to the case, so no air can pass between them, so there is almost no air intake from the box lower holes.