You can put a domain or a specific URL into Ahrefs Site Explorer and choose the Broken Links report from the left menu.
In this report, you’ll see a list of all the anchor texts of a given website’s broken links. Also, you can see different red-colored tags near each link that specify why the link is broken — for instance, the “404 not found” or “cannot resolve host” tags.
You can apply a “Link type” filter to all the links in a list — for instance, you can choose only “dofollow” links or only those “redirected”.
You can export the whole list or just some parts of it as a .CSV file for further processing — just hit the “Export” button in the top right corner of a page to do that.