Please help

I am experiencing following error when trying to install elastic agent on linux macine:
Error: fail to enroll: fail to execute request to fleet-server: lookup fleet: Temporary failure in name resolution

Error: enroll command failed with exit code: 1

Can you paste the install command and link you're using? I want to ensure the host url is correct