ERROR: SonarQube server [***] can not be reached AND Caused by: java.net.UnknownHostException: qa.xx

I keep getting the error of ERROR: SonarQube server [***] can not be reached, I would like to find where I can find the value of sonar_host_url if you are running sonarqube on your github action and not locally.
I am also getting the error

Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server

and Caused by: java.net.UnknownHostException: qa.xxx.com: Name does not resolve

please let me know how I can get rid of all these errors, my workflow.yml is as follows:

on:
  # Trigger analysis when pushing in master or pull requests, and when creating
  # a pull request.
  push:
    branches:
      - '*'
      - '*/*'
      - '**'
      - 'master'
      - 'release/*'
      - 'develop'
      - 'staging-autodeploy-brach'
  pull_request:
    types: [opened, synchronize, reopened]

name: Main Workflow
jobs:
  sonarcloud:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          # Disabling shallow clone is recommended for improving relevancy of reporting
          fetch-depth: 0
      - name: SonarCloud Scan
        uses: sonarsource/sonarcloud-github-action@master
        env:
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
          SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

Hey there.

Are you intending to target https://sonarcloud.io – or a self-hosted SonarQube server?