On your AEM Author Instance (version 6.5.11 and above), you can use the General Settings section to configure DM Server settings and change Publish Server URL or Dynamic Media URL for your DM assets.
To open Dynamic Media General Settings page, on your AEM Author Instance, Click on Tools - Assets - Dynamic Media General Setting
Make sure you have configured Dynamic Media on your AEM Author Instance, Click on Tools - Cloud Services - Dynamic Media Configuration
Published Server Name is Content Deliver Network (CDN) server used in all system-generated URL calls specific to your Dynamic Media account.
Make sure, your custom domain name is either mapped to Adobe’s CDN Server or in case you are using your own CDN Provider’s domain name, it should be mapped to our Origin Server*
*Please contact Adobe Dynamic Media Support for more information.
Once you have changed the Published Server Name, please save your changes. Do not change Origin Server Name unless instructed to do so by an Adobe Dynamic Media support technician.
Instructions to change Published Server Name for existing Dynamic Media components on your Sites pages :
Install the attached package, to create Publish Server URLs node
Once the package is installed, you will notice 2 files are created on your AEM Author
All the Dynamic Media component URLs will be changes to the new Published Server Name for your AEM Site.
This a view of DM component, using old Published Server Name
This is view of DM Component, Published Server name changes after hitting this URL : http://aem-server:portnumber/libs/dam/gui/content/s7dam/updatepublishserverurl.html?path=/content/mysite&update=true
Note : To get a list of all the Dynamic Media component on your AEM Sites path, you may call this URL : http://aem-server:portnumber/libs/dam/gui/content/s7dam/updatepublishserverurl.html?path=/content/mysite