Docker container is unable to access private DNS addresses that the host can access

I have a docker desktop setup on a Mac M1. Private DNS addresses that are accessible through the VPN in my host aren’t accessible inside the container. I’m pretty sure it has to do something with my docker setup since my coworkers can accomplish the same.

Error:

> docker run -it --rm --network host --entrypoint sh curlimages/curl:latest
~ $ curl https://private-api.software.company.com/
curl: (7) Failed to connect to private-api.software.company.com port 443 after 9337 ms: Could not connect to server

Both these files seem to be right when I compare it with what others have:

> cat ~/.docker/config.json
{
	"credsStore": "desktop",
	"currentContext": "desktop-linux",
	"plugins": {
		"-x-cli-hints": {
			"enabled": "true"
		},
		"debug": {
			"hooks": "exec"
		},
		"scout": {
			"hooks": "pull,buildx build"
		}
	}
}%
> cat ~/.docker/daemon.json
{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "experimental": false
}

Would appreciate any pointers about what could possibly be wrong here!