Hi all,

Reverse DNS lookups for the current hostname is broken on ubuntu-latest
GitHub Actions Runner VMs.
The reverse lookup returns different IP addresses which aren't addresses of
the current host.
This can cause various networking issues.

The workaround is to add an entry for the host name to /etc/hosts.

For example, by adding this action in the workflow's build job:

- name: Add the current IP address, long hostname and short hostname record
to /etc/hosts file
  run: |
     echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut
-d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts

More information:
Apache Pulsar issue:
https://github.com/apache/pulsar/issues/10232
Apache Pulsar fix (currently in-progress):
https://github.com/apache/pulsar/pull/10233

I did a quick search on GitHub Community site and found these problem
reports:

   -
   
https://github.community/t/github-action-and-oserror-errno-99-cannot-assign-requested-address/173973
   -
   
https://github.community/t/volatile-local-ip-addresses-during-action-run/174362
   - https://github.community/t/github-actions-timeout/174533

I hope this helps.

BR,

Lari

Reply via email to