A DSLR serves as my dedicated camera for astrophotography, which may be used with typical camera lenses for wide-field shots of celestial objects, or may be mounted onto a telescope for closeup shots of galaxies and nebulas.
Below are some wide-field images taken using only the kit lenses supplied with the camera (i.e., without a telescope). It is interesting to note that there are actually a number of astronomical objects than may be captured even without a telescope.
I also use the camera with my telescope through an imaging technique called prime focus imaging. The DSLR is attached onto a telescope by means of a special type of adapter which I will illustrate below. For prime focus astrophotography, the camera lens is replaced by the telescope itself. First we remove the camera lens and expose the lens mount (consult the user’s manual).
Since each brand has a different type of lens mount (i.e., Canon lenses have different lens mounts to Nikon, and so as with Pentax, Sony, etc.), connecting it to a telescope would require a special type of camera-to-telescope adapter called a T-ring and a T-adapter. A T-ring is simply a metal adapter with one end that fits nicely to your lens mount and with the other end that attaches to any T-adapter. The T-adapter is the one that attaches any T-ring to a telescope. The end result would be a DSLR camera with an excessively long and excessively large lens.
Each camera brand has a specific T-ring design and varies from one brand to another. This is usually supplied by the manufacturer or a third party-supplier. The Canon EOS T-ring shown in this setup is produced by Celestron. Some telescopes however, have threaded focusers that may accept a T-ring directly, thus, eliminating the need for a T-adapter. The T-adapter is usually available in telescope shops, but being a fan of do-it-yourself (DIY) stuff, I just fabricate my own adapters.
Below are some images taken with a DSLR mounted on to a telescope. Note that long-exposure images of deep-sky objects require precise tracking.