An /etc/ file that lists the hosts on a network (/etc/hosts ).
5
votes
1answer
4k views
Why does my name resolution hit the DNS even with a hosts file entry?
I'm running Ubuntu 10.04.2 LTS Desktop. Being a web developer, naturally I created a "me.com" in my /etc/hosts file. Unfortunately, my name resolution is going out to the DNS before first checking my ...
2
votes
1answer
452 views
Domain name isn't assigned from DHCP when booting from Live CD
I downloaded the ubuntu 10.10 ISO image for AMD64. When i start the ISO ubuntu gets an IP address from my DHCP server. NetworkManager updates /etc/resolv.conf according to the DNS config provided by ...
2
votes
4answers
2k views
What would cause 'ping localhost' to fail?
the /etc/hosts file contains a line: 127.0.0.1 localhost
so localhost should be a valid hostname, but any attempt to connect to a port on localhost fails, including ping.
Connection attempts into ...
6
votes
3answers
13k views
How to edit hosts.deny and hosts.allow?
I want to block some hosts in Ubuntu, so how could I edit hosts.deny file to block some hosts like example.com.
And one more thing I have installed dnsmasq in Ubuntu, so can I check the entries of ...
4
votes
2answers
263 views
How can I prevent Desktop Users from accessing any online website?
How can I prevent Desktop Users from accessing any online website? I tried 127.0.0.1 * in /etc/hosts but it didn't do the trick.
Please note that I need to keep http://localhost fully functional.
...
4
votes
1answer
739 views
Where should I place aliases for localhost?
I often need to use aliases for localhost (127.0.0.1) for my development work of websites, such that I can access them locally while routed via apaches virtual host concept.
In the past I have always ...