1
vote
1answer
971 views

IPv6 local address in hosts file

I have set up a local domain on my Apache server. Then I added the following line in my /etc/hosts file ::1 exampledomain.local After I trying to navigate to it, (I tried ...
1
vote
2answers
3k views

Hosts file switcher on linux

It appears there are a ton of utilities to manage the hosts file on OSX. I haven't been able to find even one like http://www.macupdate.com/app/mac/29949/gas-mask for linux. I keep my hosts file ...
1
vote
1answer
385 views

Automatically update ip-address in hosts file?

My development environment is Ubuntu guest OS inside VMWare Player with Windows 7 as the host OS. I edit the hosts file in windows to point http://dev.mydomain.com to the ip-address of my VM so that ...
9
votes
4answers
6k views

Bash: lookup an IP for a host name, including /etc/hosts in search

Ubuntu 10.10+ In my script I need to lookup an IP for a given host name. If that name is listed in /etc/hosts, then command should print IP from /etc/hosts, not from DNS server. What commands I ...
2
votes
1answer
722 views

can't override name resolution for firefox on Ubuntu

I need to override the name resolution for a given domain name for testing purposes in my browser (Firefox) on Ubuntu, so that when I write "www.agivendomain.org", it will point to a given IP that I ...
0
votes
2answers
418 views

To improve my productivity: how to lock the /etc/hosts file on Linux with a passcode?

I would like to lock the /etc/hosts file somehow in a way that only someone else can unlock it, possibly using a lock code. I would then give the passcode to someone else. I'm running Ubuntu 10.10.
3
votes
2answers
1k views

why /etc/hosts don't effect to my firefox on Ubuntu 10.04?

I tried to block some hosts to load from them ads and scripts. for example in /etc/hosts: 127.0.0.1 web-visor.com 0.0.0.0 c1.web-visor.com Why after editing and saving the file, firefox (after ...
2
votes
2answers
3k views

Ubuntu hostname problem

after updating to Ubuntu 10.10, the hostname settings are no longer correct. The content of the /etc/hosts is modified at each startup to something like: 127.0.0.1 mariusbotis ...