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

learn more… | top users | synonyms

0
votes
1answer
14 views

How to enable USB in VirtualBox [duplicate]

I am using Windows 8.1 as host and in VirtualBox running Ubuntu 14.04 LTS, how can I make it to see the USB sticks in VirtualBox? I found lots of tutorials but all are for Ubuntu as host and Windows ...
1
vote
1answer
46 views

14.04 /etc/hosts ignored [duplicate]

I have added a line like the following to my /etc/hosts file: 159.253.x.xxx www.***.nl When I ping to www.***.nl it gives me the correct ip address back but when I use my browser I do not get to ...
0
votes
1answer
33 views

Vmware guest O windows 8red color become blue

I am running VMware worktstaion 10, on Ubuntu 12.04.5, having windows 8 as guest OS. Very think seem fine expect loss red color, it became blue. Vmtools were re-install, VM->Setting->DISPLAY, ...
0
votes
0answers
31 views

Can't login to Ubuntu 14.04 via PC

Ubuntu 14.04 server running as a VM with VMSphere. Let's call the machine "ubuntucomp.net". Using Putty 0.63 and Xwindows and ssh to log into Ubuntu via my PC. But it doesn't work. I normally log ...
0
votes
2answers
45 views

After change of host and hostname, terminal won't show it

I have changed my host and hostname by editing the files /etc/hosts and /etc/hostname. But this won't affect what appears as my terminal prompt. It still shows my old_host@new_hostname. How to get ...
3
votes
5answers
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?)
0
votes
1answer
35 views

/etc/hosts Problem

cat /etc/hosts returns two results: 127.0.0.1 Localhost 127.0.1.1 [mycomputersname].[city].[state].[domain].net (brackets for anonymity) When I run hostname, it returns [mycomputersname] ...
0
votes
2answers
44 views

Host file redirect for download another file

I edited my host file like this. example.com/abc/a.zip example.com/abc/b.ziP So what I need to do is when I enter example.com/abc/a.zip url in browser it should be redirected to ...
0
votes
1answer
90 views

Will Editing HOSTS file in Ubuntu Improve my Network Security?

I have recently learnt about 2 different ways of editing the hosts file in Ubuntu for the purpose of blocking webpages and domains tracking my computer (protecting myself from tracking cookies), and I ...
0
votes
1answer
130 views

How to change hostname [duplicate]

I have updated my system's hostname in /etc/hostname file as master. I have also mapped my /etc/hosts file like <ip> master Still, when I type $ hostname, I get a different hostname. I ...
0
votes
1answer
101 views

Modify Hosts File [closed]

Has anyone used this method: http://www.putorius.net/2012/01/block-unwanted-advertisements-on.html I tried per instructions. Maybe I'm too new to Linux, it's not working for me. While looking for ...
2
votes
0answers
34 views

Getting Ubuntu server to resolv new IP for a host name

I run a minecraft server on ubuntu 14.04 LTS on vm's using virtual box. In order for players to connect, their 'account' must be checked with Mojang, at sessionserver.mojang.com. The problem is, the ...
0
votes
1answer
324 views

Apache - server not resolving by /etc/hosts if I have not internet connection

I have configured many virtualhosts in my current apache2 server, in my local machine (Ubuntu 13.10). Those are different local sites, with domains which are set in my /etc/hosts: 127.0.0.1 ...
0
votes
0answers
18 views

Use of /etc/hosts file v/s apache's default file [duplicate]

I have a domain name that I am testing locally (say www.xyz.com). In my apache's default file, I have the block : <VirtualHost *:80 *:8080> ServerName www.xyz.com ...
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
2answers
197 views

I messed up my /etc/hosts and /etc/resolv.conf files, now my network doesn't work. How can I reset it?

I tweaked my system by installing ftp server and a dns server. I think in the process I messed up resolv.conf and the hosts file. Now I want to restore it but am not able to do so. I am using ...
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 ...
0
votes
0answers
25 views

Host File Not Working

I am new to Ubuntu and trying to setup a redirect in my host file to redirect a development url to my development server. externalIP example.com In Windows I edited the hosts file and all was ...
0
votes
1answer
55 views

Why isn't apache satisfied with the first entry in /etc/hosts?

I have /etc/apache2 Mutex file:${APACHE_LOCK_DIR} default PidFile ${APACHE_PID_FILE} Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 5 User ${APACHE_RUN_USER} Group ...
0
votes
0answers
19 views

Suddenly localhost or (127.0.0.1) not pointing to /var/www [duplicate]

I think it is after installation of tomcat, My localhost showing empty directory on browser and localhost/AnyProject showing "NOT FOUND". And Localhost:8080 properly showing tomcat index page.
3
votes
1answer
5k views

Rename computer in Ubuntu 13.04

How can I rename my computer? Renaming it in /etc/hosts and /etc/hostname does something weird. Before renaming it, I am able to open these files via sublime using sudo subl /etc/hosts but when I ...
1
vote
1answer
183 views

is there a hostsman like app for Ubuntu

One way to keep malware and advertisements outside the door is by blocking the computers that serve this content.... - tweakers.net tweakers.net(Dutch) was talking about hostsman, according to ...
6
votes
4answers
14k views

Why is the /etc/hosts file not working?

I have been having problems with this for a while and have tried everything I know, so I figured it was finally time to ask for some help. Any edit I make to /etc/hosts just doesn't work. Example: ...
0
votes
3answers
266 views

cannot block site through /etc/hosts

I'm trying to block site with configuring /etc/hosts file. sudo sh -c 'echo "0.0.0.0 http://youtube.com" >> /etc/hosts' but I still can access youtube from browser(s). even I changed the ...
0
votes
1answer
739 views

Cant connect to my server through ssh

My problem is as follows. I have a made VM(Ubuntu Server) and I have edited the hosts.allow/deny for limited access. However, now I can't connect from my PC through ssh to the server. What should I ...
0
votes
2answers
608 views

create an alias for `localhost:8080/` as `www.my-domain.com/`

In ubuntu, I want to create an alias for localhost:8080/ as www.my-domain.com/. So that whenever I type www.my-domain.com/ in URL field, it shows up from localhost:8080/. What is the easiest way to ...
1
vote
1answer
72 views

Hosts file changes not showing their effect, other options?

Hosts file changes not showing their effect. I need to add a domain name alias to my localhost address so that when I type "myfictiousdomainname.com" it should request localhost:8084 address on my ...
0
votes
1answer
127 views

How to temporarily override a DNS setting for a certain domain name to point to localhost?

I need ubuntu to use a certain domain name to point to a localhost address temporarily. How could I confgure for that ?
0
votes
4answers
835 views

Automatically change hosts file

I have a Server on my house to proves and when I'm on my laptop in my house I have to write the local IP to see the web server, and i want to know if it is possible write a script to automatically ...
0
votes
1answer
55 views

How to restrict the access to the certain domains during work hours automatically

I know about SelfControl app, but it has to be started everytime and the block hours to be set. I want for example to forbid loading certain sites during work hours, but make it possible during the ...
24
votes
3answers
51k 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 ...
2
votes
2answers
146 views

hosts file and unclear behavior. How to make real alias?

I'm trying to create alias for my local website which is runned by vagrant(virtual box), hence I want redirect any requests from site.ru to 192.168.10.10/site.ru via /etc/hosts file. In the hosts file ...
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 ...
1
vote
1answer
28 views

Would there be a problem if I set 2 hostnames in my server?

Would there be a problem if I set 2 hostnames in my server? vi /etc/hostname dns01.hello.com proxy01.hello.com and in my hosts file 127.0.0.1 localhost 127.0.1.1 dns01.hello.com 127.0.1.1 ...
1
vote
1answer
523 views

Can't resolve local hosts

To start with, my Linux or networking knowledge is fairly basic, so it's probably best to assume that I know nothing. I've been trying (for my own furtherance) to put together some sort of home ...
0
votes
2answers
392 views

How can I use a local DNS server?

I need to test a few websites on my local network. I've already setup a DNS server with bind9 for my internet domains, and that works. I can also add a few domains to the /etc/hosts file, so I can ...
0
votes
1answer
74 views

How to make custom URLs on LAN

i've been trying to find a solution to this for a long time... what i wish to do is create custom URLs on LAN against which users can easily access to some site without using the actual URL e.g. if ...
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 # ...
0
votes
1answer
216 views

Can't connect to Facebook on 13.10

For a few days I haven't been able to connect to Facebook. this is not a browser specific problem because if I ping www.facebook.com i get: PING star.c10r.facebook.com (31.13.84.8) 56(84) bytes of ...
0
votes
2answers
105 views

Brief detail on hosts file

Can somebody explain what does this mean? Explanation to each line will be helpful. I have mentioned some of my queries in comments too. 127.0.0.1 localhost //According to @Dave, it's ...
1
vote
0answers
85 views

Localhost port aliased

I wanted to use /etc/hosts to define "aliases" for multiple services localhosted like: 127.0.0.1 localhost 127.0.0.1:8080 machin 127.0.0.1:8081 truc But it doesn't seem to work, surely because ...
8
votes
1answer
15k 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 ...
0
votes
2answers
265 views

not sure I set my host name right need someone to straighten me out

I just installed Zimbra and I think I screwed up my host name trying to get it to install. I did get Zimbra installed but the certificate is not working. (that's another topic) Here is my host file: ...
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 ...
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 ...
-1
votes
1answer
940 views

How to correctly write hosts file to redirect to ip with subdirectory

Hello i'm not really new to linux, but i stumbled upon a problem when I copied website on localhost/subdirectory. The homepage is runing normaly but the links redirect to root of the server i.e. ...
2
votes
0answers
2k views

VirtualHost In Localhost Is Not Accessible From Localhost When Offline, How To Fix It?

I am setting up my own local development web server, mainly for theme development. I've successfully setup LAMP in Ubuntu 13.04 64bit Desktop, apache works fine. The machine where LAMP is installed ...
1
vote
1answer
57 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 ...
0
votes
1answer
349 views

why Ubuntu 12.10 returns a “network is unreachable” no matter what IP I Ping after I edited the hosts file?

The problem is related to the network config settings in Ubuntu. I edit my hosts file, and now I can't load any sites except those IP(IPv6) included in hosts file. I try to Ping some IP(both IPv4 and ...
2
votes
0answers
3k views

Keep getting “sudo: unable to resolve host” [duplicate]

Everytime I type in sudo it says that after it. I tried following others instructions, but it says bash: /etc/host: permission denied.