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

learn more… | top users | synonyms

0
votes
3answers
55 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
83 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
92 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
34 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
43 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
1answer
37 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 ...
2
votes
2answers
69 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 ...
1
vote
1answer
25 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 ...
0
votes
1answer
122 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
214 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 ...
1
vote
1answer
124 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
89 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 ...
0
votes
1answer
43 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 ...
0
votes
0answers
39 views

Automaticaly add virtual hosts in ubuntu

I want to create a simple web interface with username, password and domain. Once the users gives the information, a script will be executed creating the host with the name that the user has given and ...
1
vote
0answers
55 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 ...
0
votes
4answers
553 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 ...
1
vote
1answer
74 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 ...
2
votes
4answers
6k 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
2answers
175 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: ...
-1
votes
1answer
617 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
1k 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
2k 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 ...
0
votes
1answer
326 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.
4
votes
1answer
876 views

Is it possible for /etc/hosts to include a file from my home directory?

I would like to setup Ubuntu One to sync a hosts file in my home directory between my machines. Ideally I would setup all my local web development URLs there and it would just sync between devices. ...
4
votes
1answer
112 views

Why is this single-word address being resolved? [closed]

I'm running Ubuntu 12.04. On my work network, there's a single-word address (let's call it foobar) that is responding to pings and HTTP requests, only from my machine. The address is not a TLD, just a ...
-1
votes
1answer
291 views

Popup Malware “openadserving.com”

can someone help me please?! When I'm using Chrome (or Fire Fox) I'm getting fullscreen popup advertising even on sites that I am certain do not have it. I see the web site it is trying to load is ...
6
votes
1answer
906 views

network monitor widget

Is there a widget that shows all current hosts (IP adresses) in a list? I am not talking about a network bandwidth meter widget.
0
votes
1answer
136 views

Used SSH to establish internal connection to another virtual machine; now I can't change it back

I logged onto my server from a remote computer via SSH using its hostname server.domain.com. The Samba server's IP is 192.168.5.33. I then used the ssh command to connect with the local FTP server ...
0
votes
1answer
358 views

What happen when 'unable to resolve host' still exist on terminal?

After editing etc/hosts and hostname, 'unable to resolve host' still exist on my terminal, I still don't know what is the cause. Although my computer and my terminal runs so well. I'm only using ...
1
vote
1answer
62 views

Hosted website unavailable after uninstalling local copy

I attempted to install my hosted Wordpress site on my 12.04 desktop following the Ubuntu Lamp guide, then after being unable to get it running properly attempted to uninstall it using suggestions in ...
1
vote
1answer
6k 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 ...
1
vote
0answers
163 views

How do I block an IP using hosts.deny with a non-default program?

I'm new to all of this. I'm running Ubuntu 12.10 x64. I recently wrote a program in C++ that accepts TCP connections on port 57370, and it is running as a daemon (I used this guide). It's not very ...
3
votes
1answer
5k 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
124 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
192 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
148 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 ...
1
vote
0answers
139 views

Problem Raised after changing the system hostname

I have changed the hostname of my computer from dar to hus by editing the /etc/hosts file and /etc/hostname file. Now the problem is that some software which were installed under 'dar' are not ...
0
votes
0answers
172 views

Cannot connect to Remote Host

I have a Mini2440 kit which has IP address 192.168.1.230. I connect my laptop by cross cable to kit, configure eth0 address 192.168.1.23 255.255.255.0 but I cannot ping to 192.168.1.230. In ...
20
votes
3answers
38k 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
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
320 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
320 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
684 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
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 ...
-1
votes
0answers
174 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
457 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
5k 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
4k 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 # ...