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

learn more… | top users | synonyms

1
vote
1answer
10k views

ubuntu server not resolving LAN hostnames

Bit stuck here. I have 2 machines that cannot resolve LAN hostsnames, unless there are specific entries in /etc/hosts But other machines on the LAN can resolves hostnames. My LAN: 1 x Cisco ...
3
votes
1answer
8k views

SSH: How to handle missing: /home/USER/.ssh/known_hosts [closed]

I have a old laptop that I'm using to learn Ubuntu Server 12.10. Prior to reformatting and installing Ubuntu Server, Ubuntu Desktop was used. With Ubuntu Desktop, I was using a no-ip.com hosted ...
5
votes
1answer
138 views

Preventing Users/Groups from accessing certain Domains

I have created a Study account which I use when doing anything school related work. It's purpose is to remove the distractions of my normal account, such as social media and news websites. I know ...
1
vote
0answers
238 views

Can I set up a hostname alias that is only active in a specific network?

I have a small ARM box running ownCloud in my house, and a domain bound to my DSL router with Dynamic DNS. This works well as I can configure the ownCloud client to use the domain name, which works ...
0
votes
1answer
315 views

How to define specific urls like 'localhost'?

The same way 'localhost' in the url points to /var/www/ I would like to put http://courses/somehting/somthing/moresomthings/.... and it would always point to /var/www/courses.php This is to work on ...
24
votes
3answers
52k views

Changing System name [duplicate]

I am given an Old Ubuntu working system and the previous user had everything on his name so started turning it to my name as typing his name everywhere was bugging me. I tried $ usermod -l hussain ...
3
votes
1answer
6k 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
418 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 ...
5
votes
1answer
430 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 ...
-1
votes
2answers
1k views

How to enable YouTube which is banned on a system

I have YouTube banned in my system. How can I enable it? I tried to lookup for it in /etc/hosts.deny file but couldn't locate it. Looking for an Ubuntu specific solution, how to disable/enable it? ...
1
vote
1answer
109 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
1answer
674 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 ...
2
votes
2answers
6k views

Configure hosts file to use aliases

I am running Ubuntu Desktop 12.04 and would like to be able to open a web browser (Firefox), type an alias into the address bar, hit enter, and have the browser take me to the site that the alias ...
2
votes
1answer
5k views

Blocking multiple sites with /etc/hosts

By editing the hosts file and adding: 0.0.0.0 sitetoblock.com I can block that particular website. Using the hosts file, is it possible to block every website except a few sites I specify? Wikipedia ...
14
votes
0answers
16k views

sudo: unable to resolve host (name already added to /etc/hosts) [duplicate]

Whenever I use sudo, I get this: sudo: unable to resolve host dave00-G31M-ES2L Here is my /etc/hosts: dave00@dave00-G31M-ES2L:~$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 dave00-G31M-ES2 # ...
1
vote
2answers
4k 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 ...
3
votes
3answers
4k views

how to block specific domains in hosts file?

I know hot to block single tumblr blog with 127.0.1.1 something.tumblr.com but I want to block entire tumblr. I tried 127.0.1.1 tumblr.com but it's not working. Is there a way to do this?
0
votes
1answer
327 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 ...
7
votes
6answers
16k views

/etc/hosts modification does not work properly. What to do?

I have added these lines to the hosts file: 127.0.0.1 localhost adobe.com 127.0.0.1 adobe.com It works perfectly on windows. But in Ubuntu 11.10 when I try to access it using Firefox the website ...
7
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!
0
votes
1answer
421 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
656 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
4answers
1k views

why is chrome resolving domain names differently than ping which is resolving differently than ssh?

When I go to me.com in chrome it tells me that domain can't be found. When I go to me.com with ssh, it connects to that server. When I try to ping me.com it pings localhost. I want me.com to ...
0
votes
1answer
286 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
7k 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 ...
8
votes
2answers
6k 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 ...
2
votes
4answers
1k 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
6answers
7k 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?)
1
vote
1answer
58 views

How can I get the Default files .. Networks / Hosts / resolve / and whatever else I changed to try and get up my webserver?

Does anyone have the original.. Default Hosts File, Resolve File.. and networks file? Please someone help me get these back to normal so I can put up a web-server. I'm tired, just to set up a ...
4
votes
2answers
13k views

editing apache vhosts and ubuntu hosts file?

I have just installed ubuntu (11.04). I have installed apache/mysql/php etc. I have a few sites sitting in /var/www/site1 /var/www/site2 /var/www/site3 I want to be able to access these at ...
2
votes
4answers
5k 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 ...
2
votes
1answer
802 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 ...
8
votes
1answer
16k 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 ...
8
votes
3answers
34k 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
294 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. ...