Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|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
add comment

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.

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
add comment

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
add comment

Your Answer

 
discard

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.