R
RunPod•2mo ago
locusai_admin

🛠 /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! 🚀
1 Reply
Jason
Jason•2mo ago
maybe its not exposed that way? the ports on runpod is different https://canary.discord.com/channels/912829806415085598/1349672733168107541/1349711877562830890

Did you find this page helpful?