Questions tagged [hosts]

/etc/hosts is the configuration file with locally known mappings between domain name and ip address.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Unable to connect to website on internal server within LAN [closed]

Complete noob with things like this so bare with me; all help is greatly appreciated. I have a server at home that I intend on hosting multiple websites i'll call website 1 & website 2. ...
0
votes
1answer
85 views

Wireguard VPN connection not resolving local host names

I have setup a Wireguard VPN on my raspberry pi and I can connect to it via client app on my mobile phone. I can access the internet though the phone and I confirm that the phone is using the same IP ...
0
votes
1answer
30 views

If an SSL certificate's name must match the name entered into the browser, what do you do with SSH Local Port Forwarding?

If the SSL certificate must match the name entered into the browser; what if the name entered into the browser is https://localhost:8080, in the case of accessing a server that is behind an SSH ...
0
votes
2answers
108 views

Ansible: How to Remove /etc/hosts entries on the remote server using Ansible playbook. I need only the default entries to be present

How to Remove /etc/hosts entries on the remote server using Ansible playbook. I need only the default entries to be present. I need only below entries to be present: 127.0.0.1 localhost localhost....
0
votes
2answers
71 views

what IP should be used in hosts when setting up the mail server?

I'm setting up a mail server on my debian by following the tecmint tutorial. In step 4 the ip should be added in the hosts file. # hostnamectl set-hostname mail.mydomain.com # echo "192.168.0.102 ...
0
votes
1answer
35 views

How to avoid HSTS error by hosts redirect with self-signed certificate? [closed]

I created this records in windows hosts file 127.0.0.1 a.domain.name 127.0.0.1 b.domain.name 127.0.0.1 c.domain.name where 127.0.0.1 - ip of my server [a,b,c].domain.name - domains wich from i ...
0
votes
2answers
531 views

Can cloudflare cause /etc/hosts entries to be ignored? [closed]

I've frequently used /etc/hosts to hop back and forth between servers for a domain and also to test if it's serving correctly before a deployment. However, in this latest case I've used cloudflare ...
-1
votes
2answers
188 views

Can one have 2 Domains pointing to the same IP and / or 2 IP's resolving to the same Domain?

I am going to attempt to rewrite the initial question so that it makes more sense. The issue I was being faced with is that I have my Company's website hosted on Site Ground but unfortunately ...
1
vote
0answers
513 views

docker-compose containers do not resolv hosts /etc/hosts entries

On my host machine (arch linux) I have a somewhat long list of entries in the /etc/hosts file resolving to remote machines (that are not under my control). The Docker containers of a development ...
0
votes
0answers
14 views

Multiple instances mapping hosts by port

I am trying to setup a dev environment where I can enter: project1.com in a browser and goto a specific directory. project2.com would go to another directory. The challenge is, I am using laravel ...
0
votes
0answers
47 views

GCP App Engine use custom hosts entry in application

The subnet where my App Engine application runs is connected to our corporate network via vpn. The application uses a service which runs as a apache2 VirtualHost which is not accessible from outside ...
-3
votes
1answer
165 views

Block URL with path in /etc/hosts? [closed]

I am working on OSX and I want to block access to an individual URL (a twitter profile) in /etc/hosts. Is this possible? I've tried adding: 127.0.0.1 twitter.com/mypath 127.0.0.1 www....
1
vote
2answers
150 views

What to use for a hostname on a dedicated Linux server?

I've recently run into Debian wiki not recommending to set exim's primary_hostname explicitly. From what I can gather, here's the code that chooses primary_hostname. Basically, either I have FQDN in /...
-1
votes
1answer
200 views

isc-dhcp host using files

I configured ise-dhcp-server, which works fine, but my dhcpd.conf is starting to become very big. I'm trying to find information (without results), on whether it's possible to use something like ...
-1
votes
1answer
401 views

Why proxy server don't use the ip in client hosts file but do dns query?

A website changed DNS server,unable to get the correct ip with the normal dns query. So I have to write domain&ip to etc/hosts (macOS). I can only access this site faster if I use a proxy. Local ...
2
votes
0answers
70 views

Correct form of /etc/hosts

I've always thought that the correct format of /etc/hosts was 1.1.1.1 fully.qualified.name shortname alias We're upgrading our core software and some of the vendors utilities are failing as they ...
-1
votes
1answer
80 views

How do I setup Sendmail and the FQDN for use with server images

I have loadbalancer sitting infront of serveral webservers. The website served up has a contact form that uses sendmail. I have installed sendmail on one of these webservers: web-01 This is the ...
0
votes
1answer
583 views

Why does name resolution work for a .local adress without DNS?

Recently, I added a FreeNAS server to my local network. I can reach its web interface by opening freenas.local in a browser on my main Windows machine. However, when I do a nslookup freenas....
1
vote
6answers
1k views

Setting a custom /etc/hosts or resolver for one process only in Linux

On Linux, I want that a particular process should resolve host "xyz.com" to IP "10.1.2.3". That's easy: just add a line to /etc/hosts. However, I only want to do this for one process; I want all ...
1
vote
2answers
2k views

HOSTALIASES with Fully qualified domain names

I am trying to point a fully qualified domain name "example.com" to an external host such as Amazon ELB "site-xxxxxx.us-west-1.elb.amazonaws.com" using HOSTALIASES environment variable and it's not ...
1
vote
1answer
1k views

Can ping NAS by ip and hostname in Windows 10 console, but not find by ip or hostname in Windows explorer

I have set up a new PC with Windows 10. Now I want to access two local NAS drives but can't connect to them. With my old PC and all coworkers pcs everything is fine. There is no special access ...
0
votes
1answer
48 views

Named multicast address

Is it possible to name a multicast or broadcast address? Usually for a single machine I'd put a line in /etc/hosts. Will that work for a multicast address?
1
vote
1answer
348 views

DNS Resolution Sequence in Digital Ocean Droplets

I have setup multiple domains on my droplet and they cross-reference each other. Currently, when I do a nslookup for these domains from within the droplet, the DNS resolution is handled by 67.207.67.3 ...
4
votes
2answers
11k views

Can host aliases be assigned to deployments in Kubernetes? If so, how?

This article describes how to assign host aliases to pods in kubernetes, is there anyway to do it for a deployment and not for a pod as such? Any other suggestions to add host entries in kubernetes ...
0
votes
1answer
103 views

changed hostname - website no longer accessible

I run Centos 7 i was changing /etc/hostname "centos-512mb-blr1-01" to "srv1.domain.com" and rebooted for the changes to take place, since then all my websites are off.. i tried reversing the change.. ...
1
vote
1answer
157 views

Problems installing Ruby gem on Gandi VPS Debian 9 server

I have a Gandi Debian 9 server that I use for web page hosting. I am trying to install a Ruby gem on the system but it looks like I am either being blocked from installing gems or I need to setup my ...
0
votes
0answers
46 views

local IP redirects to public

I have a website on ubuntu vps.I can access my website through my public valid IP (185.211.88.62) but when computers on local network are not connected to internet and want use local invalid IP (172....
0
votes
2answers
311 views

Fiddler-like host and port remapping using nginx on Linux

I am trying to set up host and port remapping on Linux using nginx as a reverse proxy. So far, I've got a working ghetto hack solution using the if directive, which is evil. Is there a better ...
1
vote
0answers
16 views

Solaris 10 app server operating on two company domains

I have a Solaris server hosting Apache and Tomcat web servers, it originally operated on one company domain: appname1.company1.com With a change in company, this original domain must still be ...
1
vote
4answers
751 views

Add temporary entry to hosts, when tunnelling SSH

When outside our company firewall, I use a script to tunnel via SSH and expose our internal wiki to my OSX machine. Is there a command to temporarily tell OSX to resolve to my local port when the ...
1
vote
1answer
425 views

How to give “Network Service” permissions on another non-domain computer?

I have PostgreSQL running on a Win10 Pro box (called DBServer) on my local network. I need to allow it to read files on my Dev computer (also Win10 Pro) on the same network so it can import files. ...
0
votes
0answers
138 views

Access Apache VHost Domain through OpenVPN

In my company, we're using OpenVPN to connect to our network for remote-working We have a local server that our employees can access (so through the VPN too), which contains a lot of local websites ...
1
vote
1answer
2k views

How to write my /etc/host to have MySQL access available from other machines from lan

EDIT: I am trying to Mysql from a remote Host: mysql -u root -p -h 192.168.56.147 But I have this message : ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.56.147' (111) I have done ...
1
vote
1answer
13k views

Is it possible to add a wildcard CNAME into dnsmasq?

I would like to let the DNS works in round robin way. So I have to put an entry into /etc/hosts. However, this does not allow wildcard domains. Is there any way that I can do this in dnsmasq? So I ...
0
votes
1answer
425 views

LXC container ignores etc/hosts

I'm trying to map a hostname to a ip address on a lxc container because the hostname will not be resolvable by DNS. The lxc.conf of the container contains lxc.mount.entry = /sas/mycontainer/etc/hosts ...
0
votes
1answer
69 views

Redirect website login to different IDP

My organization has a Shibboleth/IDP service set up. Now that I am getting involved, I am first setting up my own basic IDP on a test server to learn the ropes. In order to test functionality, I want ...
-2
votes
3answers
2k views

Is there a way to ssh using hostname alias without modifying the etc/hosts file?

I spent hours researching how I can automate 100s of hosts that are all under one local domain. (i'm on a ubuntu linux 17.04 machine) For example, I have node1.domain.org, node2.domain.org, and the ...
0
votes
1answer
1k views

Can rsyslogd use /etc/hosts file instead of DNS?

I have a problem with rsyslogd using DNS to PTR-resolve each remote host's name. Is there a way to use the '/etc/hosts' to do same job and disable resolution using DNS?
0
votes
2answers
44 views

Route to a specific server depending on origin address

I want to have some Windows computers point (map) to one server, and other Windows computers to point to another server - but using the same "FQDN". Ideally, the routes should be based on subnet ...
0
votes
0answers
278 views

ICINGA2 - wrong host status (DOWN/UP) for a while

I have setup and configured ICINGA2 server on Ubuntu 16.04 LTS. I added majority of my hosts (mainly Windows hosts) and I noticed that sometimes ICINGA2 shows wrong hosts status for a while (1 minute ...
0
votes
0answers
403 views

Windows 2012 - Powershell v4 update hosts file without restarting

I wrote a Powershell script where I update hosts file at runtime: add entries, clear entries. An example of what I am doing: Import-Module 'Carbon' #Carbon module functions Reset-HostsFile #No ...
0
votes
0answers
802 views

Access docker container from another container via local hostname

I have two dockerized apps, each consisting of an nginx + php-fpm container sitting behind another nginx proxy container. Both apps I can access via a locally defined hostname, say domain-1.dev and ...
1
vote
2answers
612 views

ICINGA2 - Edit Windows plugins output

I have installed ICINGA2 Server on Ubuntu 16.04 LTS. Now I added 3 Windows hosts to monitoring and everything works fine, but I also configured UPTIME and MEMORY services for my new Windows hosts. I ...
5
votes
1answer
5k views

How is priority determined in /etc/hosts?

For reasons too specific to detail here... I have tried to add two entries for a domain to the /etc/hosts file on a CentOS-7 server. In order for one piece of software to run happily, there needs to ...
9
votes
2answers
952 views

How to add non-latin entries in hosts file

Is there a way to add non-latin entries in /etc/hosts on windows? Something like 127.0.0.1 локалхост Tried the code above and also punycode with no luck Yes, i know that this would break almost ...
0
votes
1answer
83 views

Local services unavailable when network cable is unplugged

I cannot access local services such as ldap when a network cable is not connected to the host. Should the address to these local services be the ip to the host or should it be 127.0.0.1 for all of ...
1
vote
1answer
1k views

Postfix warning when sending mail: hostname <FQDN> does not resolve to address xxx.xxx.xxx.xxx

Every time I send an email, I get this line in /var/log/mail.warn: postfix/submission/smtpd[xxxxx]: warning: hostname <FQDN> does not resolve to address xxx.xxx.xxx.xxx I've obviously already ...
2
votes
1answer
858 views

Use of alias in /etc/hosts or ssh_config

I'm have configured a bastion or (jump) box to access a virtual private network. #ssh_config Host bastion HostName 14.90.140.120 User me IdentityFile ~/.ssh/me ForwardAgent yes Host 10.1.* User me ...
1
vote
1answer
189 views

how to add a chinese domain name into a Windows hosts file ?

lets say I have a domain 我等主营.com that I want to add it into Windows hosts file for development purposes as below: 127.0.0.1 www我等主营.com I could save the modification with Notepad++ but when ...
0
votes
0answers
87 views

/etc/hosts is not processed during boot

I have NFS mounts set up in /etc/hstab as HOSTXYZ:/share/dir /mnt/nfs/local-dir nfs4 _netdev 0 0 It mounts fine when I run mount -a however it hangs during boot. I discovered that if I use ...

1
2 3 4 5