Bitbucket DNS name resolution failure

sheshansh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 7, 2024

While I am running the bitbucket pipeline, randomly pipelines get failed with the error of bitbucket DNS name resolution failure, this is very random and frequent. Please provide a permanent fix for it. Runners are hosted on premises. Below are the screenshots for the errors:

bb-pipeline-failure02.pngbb-pipeline-failure03.pngbb-pipeline-failure01.png

1 answer

1 vote
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2024

Hello @sheshansh and welcome to the Community!

As you are using self-hosted runners, could you please confirm if the runner's host is behind a firewall? If yes, it's important to make sure that the IP addresses listed in the following documentation are allowed in the firewall, so the runners can connect to Bitbucket's infrastructure : 

If after allowing the IP addresses you are still facing the issue, you can also try forcing the DNS resolution through a different nameserver, such as Google DNS (8.8.8.8) by adding the following command in your pipeline step's script : 

echo "nameserver 8.8.8.8" > /etc/resolv.conf

This should be added before the command that is failing with DNS resolution.

Hope that helps! Should you have any questions, feel free to ask!

Thank you, @sheshansh !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events