# Linux – How to redirect a URL to a certain IP, as with /etc/hosts

hostsiplinux

Someone on my shared server has messed with some setting such that gethostbyname('www.google.com') (PHP) gives me the IP for his website, rather than Google. I believe this can be done via the /etc/hosts file, but presumably, he doesn't have access to that file (unless my server administrator really screwed up). Anyway, I need to find a way to explain this to the 'techies' that run my server so that they can correct the issue and revoke such access.

Is there another way someone could have messed with these settings? Something akin to a .htaccess file perhaps? How do I explain the issue so it can be resolved? I don't think I have the power to fix this myself.