You can use the following search: https://github.com/search?q=path%3A**%2FCNAME+example.com&type=code&ref=advsearch
This search finds all "CNAME" files that contain the specified domain. However, if the repository is private, it will not appear in the results.