Looking at
https://dumps.wikimedia.org/enwiki/20170501/ you can find:
2017-05-03 07:26:20 done List of all page titles
https://dumps.wikimedia.org/enwiki/20170501/enwiki-20170501-all-titles.gz
(221.7 MB)
2017-05-03 07:22:02 done List of page titles in main namespace
https://dumps.wikimedia.org/enwiki/20170501/enwiki-
20170501-all-titles-in-ns0.gz (70.8 MB)
If you want to do analysis of namespaces and redirects on your own, you can
also use:
https://dumps.wikimedia.org/enwiki/20170501/enwiki-20170501-page.sql.gz
It is larger, but you can filter by columns page_is_redirect
and page_namespace on your own terms.