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.

I have the local webserver on ubuntu inside virtual machine. Currently i access it via IP like

http://10.0.11.111

Is it possible i can DNS name for that ip which works only on local network like

http://companyserver.com
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Yes. See /etc/hosts/, you want something like this:

10.0.11.111    companyserver.local

(don't use .com unless you have to, it's bad practice)

share|improve this answer
    
thanks for ur help –  John Dec 8 '09 at 1:40

Your Answer

 
discard

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