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

learn more… | top users | synonyms

0
votes
4answers
1k 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
2answers
224 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
2answers
697 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 ...
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 ...
1
vote
1answer
57 views

Format of ipv6 address in hosts.allow for sshd

I'm trying to allow access to a user via ssh who has an IPv6 address. I want to assign the address in the hosts.allow file I have other users with IPv4 addresses working fine but it seems I have a ...
1
vote
1answer
30 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
68 views

How to unblock website in Ubuntu

I have blocked youtube.com website using gedit /etc/hosts file. Then I have removed the entries in hosts file. Even though the websites are blocked permanently. How to unblock the youtube again.
0
votes
1answer
32 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 ...
0
votes
1answer
141 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 ...
0
votes
1answer
118 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
114 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
1answer
688 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
137 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 ...
0
votes
1answer
165 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
1answer
393 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 ...
0
votes
1answer
203 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
520 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 ...
0
votes
1answer
344 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 ...
-1
votes
1answer
50 views

How to add entry to /etc/hosts with a built-in command line

It turns out that editing /etc/hosts is enough to add an entry of DNS. Is there a built-in cmd , where we can: add host cmd: $ sudo mycmd 10.103.23.34 myme.com Result : 10.103.23.34 ...
2
votes
0answers
64 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 ...
1
vote
0answers
163 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
35 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 ...
1
vote
0answers
27 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 ...
1
vote
0answers
623 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. # ...
1
vote
0answers
163 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
0answers
9 views

how to deny hosts to apache2..?

regarding a specific answer for how to deny access for the outer world to my apache2 webserver. ssh should be allowed and my official network should be able to access the web sites but no access from ...
0
votes
0answers
12 views

How to deny outer world from accessing the webserver?

I have a Wordpress Server hosted on Apache2 in my official network. I don't want this site to be accessible to the outer world. This should only be accessible in my office network. What can be done on ...
0
votes
0answers
15 views

I want to include common host entries in different environment specific host file

I have 4 sets files hosts file live host file hosts-live pre production host file hosts-prepord staging host file hosts-staging pre production client test host file hosts-prepord_client I have an ...
0
votes
0answers
24 views

Why do my development websites in /var/www not load?

I configured an apache2 server on a virtualbox with ubuntu. This always worked but since yesterday my websites suddenly won't load annymore. I think it has something to do with our new network router ...
0
votes
0answers
25 views

redirect site behind load balancer

I have tried changing the /etc/hosts file to redirect the site to a specific server behind the load balancer. x.x.x.x sitename.com The sitename.com page is served by that specific server x.x.x.x ...
0
votes
0answers
92 views

getent hosts ipv6 vs ipv4

I have an Ubuntu System with IPv6 disabled. Somehow getent hosts returns a list of IPv4 adresses, but if I query for a specific host I get an IPv6 address: root@pc170:~ % cat ...
0
votes
0answers
62 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 ...
0
votes
0answers
25 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 ...
0
votes
0answers
119 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
0answers
165 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 ...