Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.



Get Started Now!

CURL error 6: Could not resolve host:

The error message “cURL error 6: Could not resolve host” typically indicates that cURL is unable to resolve the hostname provided in the URL. This error commonly occurs when there is a DNS (Domain Name System) resolution issue.

To troubleshoot and resolve the issue try these

Verify the host name, double-check the host name you are trying to access. Ensure that it is spelled correctly and includes the correct domain extension.

Make sure you have an active internet connection and that you can access other websites or services without any issues. If you’re behind a proxy server, ensure that the necessary proxy settings are configured correctly. Try accessing different URLs using cURL and see if the issue persists. This can help determine if the problem is specific to a particular host or if it’s a broader issue with your network or cURL configuration.

If you’re running cURL on your local machine, check your DNS settings. Ensure that your DNS server is properly configured and can resolve host names correctly. You may want to try using a different DNS server (e.g., Google DNS or OpenDNS) to see if that resolves the issue.

In some cases, your network or firewall settings may be blocking the connection to the host. Check your firewall settings or any security software that might be interfering with the cURL request. Temporarily disabling such software can help identify if it’s causing the problem.

In my case

There is spelling error in .env

QUOTE_MANAGEMENT_BASE_URL=http://mhn-quote-management

But, It should be

QUOTE_MANAGEMENT_BASE_URL=http://mhn-quote-management-ms

Related Posts

Master DevOps with the Best Free Tutorials Online

The demand for DevOps professionals is skyrocketing as organizations rapidly adopt modern development and deployment methodologies. Whether you are a beginner looking to enter the DevOps space…

Error in Laravel:”Invalid Key Supplied”

while trying to log in to your Laravel application, don’t worry. This issue is commonly related to misconfigured or missing keys for Laravel Passport’s OAuth2 authentication system….

Error in Laravel “Davmixcool\MetaManager\MetaServiceProvider Not Found”

When working on Laravel projects, developers often encounter errors during the setup or runtime process. One such error is the “Class ‘Davmixcool\MetaManager\MetaServiceProvider’ not found”, which can occur…

Discover Rewa Effortlessly with Motoshare’s Convenient Bike and Car Rentals

Rewa, the “Land of White Tigers,” offers a unique blend of historical, cultural, and natural attractions that captivate every traveler. To make exploring this charming city more…

Discover Shimoga (Shivamogga) Effortlessly with Motoshare’s Bike and Car Rentals

Nestled in the lush greenery of Karnataka, Shimoga (Shivamogga) is a haven for nature lovers and history enthusiasts. From the roaring Jog Falls to the tranquil forests…

Explore the Spiritual Charm of Mathura with Motoshare’s New Bike and Car Rental Services

Mathura, the birthplace of Lord Krishna, is a city brimming with spirituality, vibrant culture, and historical significance. To make your journey through this sacred city seamless, Motoshare…

2 2 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x