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

learn more… | top users | synonyms

0
votes
0answers
25 views

Ubuntu 14.04, /etc/hosts file entries not working and referring to wrong ip

I am on Ubuntu 14.04 LTS, I have added few host machines to the file /etc/hosts as below: 192.168.2.12 machine1 192.168.2.13 machine2 192.168.2.14 machine3 These machines are in the same network ...
9
votes
5answers
510 views

Permanently store addresses when using SSH

I have a few remote servers which I connect to through the terminal. The servers don't have a domain, only an IP address which is hard to remember when I got a few of them. Is there a way to ...
1
vote
1answer
601 views

Can /etc/hosts be set up automatically?

I need to automatically add mac-addresses to some file and manually add the hostnames assigned to them. A script will then scan my home LAN for those mac-addresses and populate the /etc/hosts file, ...
20
votes
8answers
35k 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: ...
1
vote
0answers
28 views

What should be /etc/hosts entry so that it works fine for both localhost & IP address?

Sample etc/hosts: 127.0.0.1 localhost 127.0.0.1 DEVubuntu 192.xxx.xxx.xxx DEVubuntu This is not working for me. I am not able to run Zookeeper and I am sure it's related to the ...
1
vote
0answers
15 views

Resolve domain names to IP's based on physical adapter

System Configuration eth0 NIC to the LAN/WAN/Internet (working, don't want to mess with it) eth1 NIC eth2 NIC Objectives Assign a static IP to eth1 and eth2 and assign IPs (DHCP) on separate ...
0
votes
1answer
347 views

Correct MX record, subdomain and Dynamic DNS settings for Namecheap Self hosted email @domain.com email & correct Hosts and Hostname for server

I want to correctly Set up my own email server at home for my domain.com. It is hosted by namecheap. I need to set up the following On Namecheap (Domain provider): MX Record Subdomain On Server: ...
2
votes
1answer
477 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 ...
0
votes
1answer
24 views

Ubuntu host/client server for backups?

Im not sure if this has been asked, I couldn't find it if it has been. Im wanting to use a ubuntu server to host a backup service of some kind to back up customer files that are located on windows ...
3
votes
1answer
7k 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
vote
2answers
146 views

After modifying /etc/hosts which service is needed to be restarted in ubuntu

After modifying "/etc/hosts" which service is needed to be restarted in ubuntu !
0
votes
0answers
24 views

having difficulty editing /etc/hosts

I'm trying to accomplish two things, the first was to disable the ability for two card catalogs which are supplied by DHCP and AD integrated DNS to get to google.com, I have finally accomplished this ...
1
vote
1answer
70 views

Advanced rules for hosts file

I need to add a rule for all subdomains of a domain. I imagine it should looks like this: 127.0.0.1 *.example.com As you can see, I need to redirect all requests to any subdomain on example.com to ...
0
votes
1answer
25 views

Unknown host and not sudo anymore [duplicate]

I have had ubuntu for a while now, but for some reason I am no longer a sudo. When I open up terminal and type the command sudo false sudo unknown host HOST then when I actually look at my hosts ...
1
vote
0answers
24 views

How to block certain folders in local web server excluding the root folder

I am already using the hosts file to block unwanted websites like 127.0.0.1 google.com . How can I block local users to access http://mylocal.loc/private but still want to access other folders like ...
0
votes
0answers
93 views

Ubuntu 14.04 taking too much time to resolve a Host

I have a ubuntu 14.04 machine, Everything was working perfectly sometime before. but then just one day this problem started. when i try to load a page on chrome it keeps saying "resolving host" and ...
0
votes
1answer
109 views

How to diagnose /etc/hosts file having no effect

Right now, on my Ubuntu 14.04 desktop, for testing purposes I've changed the /etc/hosts file to something very simple: 127.0.0.1 localhost 127.0.0.1 something However, this simple configuration ...
0
votes
0answers
107 views

Should Mailserver /etc/Hosts be static ip or loopback?

Im trying to set up a mail server, and currently I am having issues with hostname and hosts files. I want to get this correct before installing postfix and trouble-shooting issues that may be ...
1
vote
1answer
235 views

localhost is wrong ip address

I'm having a bizarre problem. It started with postgresql-9.3 not installing. I found it couldn't find localhost. I checked /etc/hosts and it has localhost properly as 127.0.0.1 But when I ping ...
4
votes
2answers
18k 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 ...
4
votes
1answer
3k 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 ...
2
votes
1answer
2k views

Why is my /etc/hosts file not queried when nslookup tries to resolve an address?

I have a couple of local domains resolved to 127.0.0.1 in my /etc/hosts file. And it was all alright for a period of time but now when I run: nslookup test.local It results in: Server: ...
8
votes
7answers
23k 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 ...
0
votes
1answer
104 views

How to setup /etc/host in Ubuntu to have ip 192.168.X.X

im using Ubuntu 14.4. my Ubuntu server IP is 10.20.0.25 how to setup my server to have ip 192.168.X.X when other device want to communicate with the server. Below is my configuration. please advice ...
1
vote
2answers
180 views

Slow sudo and ssmtp (hosts file problem)

I'm running an Ubuntu Server 12.04.5 LTS and when I type sudo su it takes 30+ seconds to open the shell. Searching on internet, this problem seems related to the file /etc/hosts and /etc/hostname. ...
7
votes
3answers
6k 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?
3
votes
1answer
3k views

unable to edit /etc/hosts file in ubuntu 14.10

I changed the hostname from default name, set during installation to something short and nice, but didn't change it in /etc/hosts file. /etc/hostname is changed after restart but sudo is not working. ...
0
votes
0answers
478 views

how to install and setup privoxy with adblock plus filter?

I am using Ubuntu 14.10 64 bit and the adblock plus extensions always slows down my Firefox specially Facebook, so I want to use privoxy but it's not as effective as adblock plus. I have tried ...
25
votes
3answers
62k 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 ...
0
votes
0answers
29 views

Update ubuntu with static DNS

I am trying to set up a machine with Ubuntu where I can not use any connection to a DNS server, and I would like to be able to update the system periodically, but, adding the ip that I get ping-ing ...
1
vote
1answer
173 views

Hosts file change syntax

I am attempting to migrate a website to a ubuntu server but would like to test it first On windows I have changed my host file to point to the server, so the browser is opening the "new" site. In my ...
0
votes
1answer
8k views

curl --resolve option not working: “Hostname was NOT found in DNS cache”

I am attempting to use curl's --resolve option to connect to the specified IP address when performing the HTTP request, but curl keeps reverting back to the IP address as retrieved by my local DNS ...
1
vote
0answers
523 views

Configuring /etc/hosts file

I am running 14.04 x64 vmlinuz-3.13.0-43-generic and I face a problem after updating /etc/hosts file. Here is the content of the file: # Your system has configured 'manage_etc_hosts' as True. # ...
0
votes
2answers
331 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 ...
0
votes
1answer
163 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 ...
2
votes
2answers
7k 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 ...
-1
votes
2answers
2k 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? ...
3
votes
6answers
12k 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
106 views

How to access vhosts on ubuntu server from withing local network

recently started building a home network out of ubuntu server and a few other computers . . now on one older one i have installed ubuntu server and can connect to it with the ip and either ssh . . ...
0
votes
1answer
42 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 ...
2
votes
1answer
2k 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
100 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, ...
1
vote
1answer
95 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
185 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
313 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
494 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
59 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 ...
2
votes
1answer
3k 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
2answers
1k 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
15k 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 ...