How can I create a domain name for local purposes?
for example I have a local web application enviroment in
http://localhost:8000 but I would like to have it in
I am using Ubuntu 10.04
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
You should be able to use a text editor of your choosing to edit your
/etc/hosts file. Add two entries that look like this:
127.0.0.1 dev ::1 dev
These hosts entries map the "dev" hostname to your machine's loopback interface (address 127.0.0.1 under IPv4, and 0:0:0:0:0:0:0:1 for IPv6). After saving, "http://dev" should behave identically to "http://localhost".
(NB: You will need superuser permissions to edit the
I'm running DNSMasq for this kind of thing. It has DHCP server too.