Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The question is simple: no root access, but need to point particular domain name to the specified IP address.

What are the other ways to do the same thing as with adding the record to /etc/hosts file?


My domain had been expired, but I still want to gain the access to it from corporate network (no root privileges on my linux workstation) by it's domain name for: http, https, imaps, smtps, ftp, and couple of specific ports.

share|improve this question
for what software do you require this? – Antitribu Apr 15 '10 at 13:03
Why not discuss this with your system administrator? – John Gardeniers Apr 16 '10 at 10:07
I'm the one of a few tens thousands of employees in our corporation, and this problem is a personal issue. – Andrejs Cainikovs Apr 16 '10 at 10:27

You could LD_PRELOAD in your own versions of gethostby{addr,name..} which read /etc/hosts and then the users own hosts file in their homedirectory.

share|improve this answer
+1 Have to remember this for the next time April 1st rolls around :-) – Kyle Brandt Apr 15 '10 at 15:00

The server is using a nameserver right ? (cat /etc/resolv.conf) so you could, if you have access, configure it to return a specific IP address for a particular domain.

share|improve this answer
If he had root access to change /etc/resolv.conf, then he could change /etc/hosts too. – apenwarr May 7 '10 at 19:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.