Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [hosts]

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

1
vote
0answers
32 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
35 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
87 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....
0
votes
5answers
193 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
1answer
230 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
243 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
35 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
91 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 ...
0
votes
0answers
66 views

How to configure IISManager and file hosts to run localhost:3000 by gulp is ready?

I'm trying to run an angularjs project that using gulp to build applications First, I cd to the directory that contain the gulpfile.js file and type gulp serve Then I moved to C: \ Windows \ ...
0
votes
0answers
357 views

DNSMasq Wildcard Round-Robin DNS

Hello I'm trying to achieve something here but I'm not sure if what I'm trying to do is even possible with DNSMasq or not so I need you guys help. I need to assign multiple static IP addresses to ...
0
votes
2answers
3k 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
74 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
92 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
40 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
178 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
15 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 ...
0
votes
4answers
188 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
274 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
85 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
666 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 ...
0
votes
1answer
8k 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
238 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
53 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
1k 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
626 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
42 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
184 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
244 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
591 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
436 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 ...
4
votes
1answer
2k 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 ...
8
votes
2answers
806 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
71 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 ...
0
votes
0answers
286 views

Modify /etc/hosts file only while connected to AWS SSH bastion host

The short version: Is there a way to change the /etc/hosts file only while connected to a specific SSH server? The long version: Data Scientists working in the office can access Redshift directly. ...
2
votes
1answer
572 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
173 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
63 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 ...
0
votes
6answers
4k views

Use Windows Hosts File To Redirect External Url to Subdomain?

I'm going to just post this question and I'll edit it if the community determines it needs elaboration or clarification. The Issue I got what I thought was a brilliant idea today. I shop Amazon.com ...
1
vote
1answer
368 views

limiting ip range on openvpn server

We're trying to setup a openvpn server on centos 6. We have blocked all IP adresses except a couple in a whitelist via /etc/hosts.deny, also we did the same with csf.deny (except for the whitelist). ...
-1
votes
1answer
172 views

Active Directory for remote location without dns -> lmhosts? hosts? [closed]

I have a Domain Controller on main site which also is server for DNS. At a remote site the router is not able to get DNS address via dhcp. Is it possible to tell the Windows 10 client at the remote ...
1
vote
2answers
440 views

Windows hostname not resolving to hosts file entry

I have a Windows Server 2012 instance running software that requires that it map its hostname OW5000 to its IP Address. However, when pinging OW5000, it resolves to ::1. In this instance, the ...
0
votes
1answer
78 views

Local DNS on Amazon AWS

I have an app running on a Linux server that makes use of external services that often don't have public DNS for their domain name. To solve this I add local DNS to my /etc/hosts file - matching the ...
1
vote
1answer
5k views

AWS EC2 Describe Instances - Filtering by Multiple EC2 Tags?

I'm attempting to dynamically create a hosts file mapping with all my ec2 instance private ip's, to use as the /etc/hosts on my ec2 remote ssh server. I have instances tagged with their normal "Name" ...
0
votes
2answers
86 views

I need to set up a sftp server, that could use different keys, and use different directories for the same login, depending on the ip used

I got a problem, that I cannot solve myself. I tried to google it, but no satiscactory solution that i could find. I have a server that is available with let's say 3 different IP addresses (A,B,C), ...
0
votes
1answer
160 views

How to host two web applications with different “domains” in IIS 8

I have setup to entries in my hosts file: 127.0.0.1 mymvcapp.dev www.mymvcapp.dev 127.0.0.1 mywebapi.dev www.mywebapi.dev In the first I want to host my mvc app and the second entry is for my ...
-2
votes
2answers
49 views

I can't get my website to be enabled? [closed]

I have two websites: iq-dev.de and iq-dev.com iq-dev.de works without a problem and is also available through www.iq-dev.de. I have a cloud Server with linux installed and edit everything via ssh. ...
1
vote
1answer
39 views

“sub domain” in lnternal network

i have a small network under a Windows domain-controller. the server (Win2012) run a WebSite which is accessible by typing the machine-name (srv/). i want add a website with binding to sub-domain: ...
2
votes
2answers
85 views

How do I redirect with Apache reverse proxy on server errors

I have several http and game servers on a network and currently use an Apache2 reverse proxy to divvy out traffic between domains and machines. I am getting a significant amount more traffic to one ...
11
votes
3answers
2k views

Size Limit of /etc/hosts (Linux)

Does anyone happen to know what the theoretical size limit of /etc/hosts is on a Linux system before you might start to see degradation in performance? Furthermore, can anyone point me towards some ...