You are using Cloudhub 2.0. You need to change the internal DNS settings of a private space via API.
1. Here is the official API documentation link.
2. First, please get a connected app bearer token or a user token without MFA enabled:
Creating connected app and getting the bearer token example
How to generate your Authorization Bearer token for Anypoint Platform
3. Find your organization ID for the private space: How to know my Organization ID (Org ID) on the Anypoint Platform
4. Get your private space ID: How to Get a Cloudhub 2.0 Private Space's ID via API?
5. Now, please run the following command:
curl -L -X PATCH https://anypoint.mulesoft.com/runtimefabric/api/organizations/<org ID from step 3>/privatespaces/<private space ID from step 4> -H 'Authorization: Bearer <token from step 2>' -H 'Content-Type: application/json' \
--data-raw '{
"network": {
"internalDns": {
"dnsServers": [1.1.1.1],
"specialDomains": [mycompany.com]
}
}
}'
001115490

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.