An /etc/ file that lists the hosts on a network (/etc/hosts ).

learn more… | top users | synonyms

5
votes
1answer
316 views

How would I broadcast a subdomain/virtual name on a local server with people connected to the same network

I have a server connected to the router which has ubuntu 12.04. It is has apache/mysql/php all installed ready to go. the folder structure is like this: /var/www -- this isnt the root -/libs -/logs ...
3
votes
1answer
5k views

/etc/hosts file not being used before DNS server query

I have upgraded to Ubuntu 12.10 and I have made entries in /etc/hosts, but instead of looking into the hosts file, queries to my configured DNS server are being made first. How can I make Ubuntu ...
1
vote
1answer
318 views

can't /etc/hosts be set up automatically?

what I need is: automatically add mac-addresses to some file and manually add the hostnames assigned to them, and a script will then scan my home LAN for those mac-addresses and populate the ...
6
votes
4answers
1k views

Is there a GUI for /etc/hosts that I can use?

I want to be able to easily and frequently edit my hosts file from a quick GUI. Any one know of one that exists? Thanks!
1
vote
1answer
105 views

Change Hosts 1.1.0 not working

I installed this addon Change Hosts 1.1.0 in firefox, and saved my preferences for hosts file in it. But when i select any host configuration from the addon it throws an error citing unable to save ...
0
votes
0answers
173 views

Thunderbird/Evolution cannot connect Gmail while Postler can!

I tried many possible ways and the instructions given by Google and Mozilla. But my Thunderbird cannot access to my Gmail. I need ipv6 access in order to reach Google. And I have my /etc/hosts full ...
0
votes
1answer
454 views

/etc/hosts keeps getting reset. How am I supposed to edit it?

Whenever I edit my /etc/hosts file it's not long before I find it is exactly what it was before I edited it. Is there some master file I should be editing, or a gui interface I'm supposed to be using ...
1
vote
1answer
3k views

'/etc/hosts' , http links are redirecting, but https links are not redirecting

I edited /etc/hosts file and entered below information : 127.0.0.1 test.com //working 127.0.0.1 https://test.com //not working . from the above info, http://test.com is redirecting to ...
0
votes
0answers
43 views

Resolve specific IP addresses to localhost in 12.04 [duplicate]

Possible Duplicate: How do I add a DNS server via resolv.conf? I used to simply add static DNS entries in my /etc/hosts file. This is not working with 12.04. How does one add static DNS ...
0
votes
1answer
383 views

localhost subdomain wildcard

I'm trying to have *.localhost pointing at 127.0.0.1. I read this post which is quite recent and looks promising but dnsmasq can't bind port 53: * Starting DNS forwarder and DHCP server dnsmasq ...
0
votes
1answer
309 views

Hosting my domain name in 12.04 web server

In sites-available I created a new file from the default file and changed paths. In sites-enabled I created a sym link. In hosts I added the new domain after 127.0.0.1 localhost restarted apache but ...
8
votes
2answers
5k views

How do I properly set up and secure a production LAMP Server?

It's very hard to find comprehensive information on this subject. Either I found short tutorials on how you perform the installation, as simple as "apt-get install apache2", or outdated tutorials. So ...
0
votes
1answer
598 views

Ubuntu hostname on lan config

My host computer is Windows 7 64. I have VirtualBox with an Ubuntu 10.04 Server x64 running as guest. My Ubuntu Guest has an ip of 192.168.1.104. I have openssh installed on the guest. I can ssh ...
0
votes
1answer
246 views

Access Wiki installation on Host from Virtual Server

Recently I set up a Dokuwiki installation on Ubuntu Server in VirtualBox. My host OS is Ubuntu 11.10. Till date I was using NAT configuration for my VirtualBox. Since today I decided to use Host-only ...
4
votes
1answer
2k views

How can I keep my custom entry in /etc/hosts?

Since I upgraded my laptop to Ubuntu 11.10 32-bit, the entry I add to /etc/hosts for my home server keeps disappearing on boot. I have to edit the hosts file every time I start up and want to access ...
2
votes
2answers
5k views

Network configuration: resolv.conf and hosts

I read This manual and I'm a little confused. This is what I don't undetstand: When your system tries to resolve a hostname to an IP address or determine the ostname for an IP address, it refers to ...
2
votes
4answers
901 views

“Lock” one specific file so that I nor root no longer have access to it any more

To combat procrastination, I edit my /etc/hosts file by adding time-wasting websites and pointing them to localhost. However, the flesh is weak and I often find myself reverting my changes. I was ...
6
votes
1answer
3k views

Default permission of hosts file

I changed the permissions of my host file /etc/hosts by doing a chmod og+w. What's the default permission so that I can switch it back?
3
votes
4answers
5k views

How to SCP a file from Mac -> Ubuntu VirtualBox?

I have a Mac (OS X) and a VirtualBox running Ubuntu. I want to SCP a 500mb file from the Mac to the VirtualBox. How do I do this? (Probably something to do with /etc/hosts?)
2
votes
1answer
705 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
3k 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 ...
8
votes
3answers
26k 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
291 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. ...
5
votes
1answer
1k 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 ...