locusai_admin
RRunPod
•Created by locusai_admin on 3/13/2025 in #⛅|pods-clusters
🛠/etc/hosts Not Resolving DNS
Hi All,
I’m facing an issue where I’ve added an IP and hostname mapping to /etc/hosts, but the hostname is not resolving as expected. Here’s what I’ve done:
Added the following entry to /etc/hosts:
php-template
Copy
Edit
<IP_ADDRESS> <HOSTNAME>
Ran ping <HOSTNAME> but it fails to resolve.
Checked cat /etc/hosts to confirm the entry exists.
Attempted systemctl restart networking (if applicable).
nslookup <HOSTNAME> and host <HOSTNAME> still do not resolve.
Could you confirm if there are any restrictions on modifying /etc/hosts in the RunPod environment? Is there an alternative way to enforce local hostname resolution?
Thanks for your help! 🚀
5 replies