Feature/autodetectcdns

For open source; issue #1832