It's much easier to see this with an older camera, though all DSLR lenses do have a distance scale on the lens (or sometimes a window through which it appears -- but always on the lens), not all lenses have depth of field marks.
Here's an example:
View attachment 17855
Click to zoom in on this.
The thing to notice here is that the lens is focused to about 12' away. The f-stop is set to f/22. If you look at the DoF scale on the lens, you can see a pair of "22"s ... one to the far left and the other to the far right. That means at f/22, everything from about 6' through to "infinity" will be in "acceptable" focus. If we were to open the f-stop up to f/4, that would drop considerably... and the DoF would only have acceptable focus from about 10' to about 14' (just left of the 15). You're looking for the pairings of f-stop marks on that scale... everything "between" the marks matching your current f-stop will be in acceptable focus.
Modern lenses seldom have DoF scales anymore. Some prime lenses... but generally never on a zoom. Also since the lenses are electronically focused rather than manually focused, the rotation of the focus ring doesn't offer as much fine tuning as the older lenses -- so whatever DoF scale exists (if there is one at all) is usually VERY narrow -- not nearly as wide as you see in this image.