Hello, @pratik! Welcome to the community. This error “cURL error 6: Could not resolve host” looks more related to a hostname resolution of the Infura host rather than an actual issue with the Infura API.
Can you confirm this command works on the machine you’re using to connect to the Infura API?