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?

UPDATE:

Clarification:
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.

link|improve this question
1  
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
feedback

2 Answers

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.

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

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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