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
2answers
69 views

Is there a way to have a PC to resolve IP for a local server while on the LAN/VPN but an external IP when not?

I have a Nextcloud server on my LAN (with an external port forward for outside access) that I am setting up WebDav connections on for a collection of Windows 10 PCs and I want the users to make their ...
-1
votes
2answers
33 views

How do I serve a localhost projects on a made up domain, such as mysite.test and testing.test simultaneously?

If this is possible it would save a lot of headaches. I would like to bind made up domains to localhost projects, if that is possible. I am on Ubuntu 20.10.
0
votes
1answer
38 views

curl prioritize the IP provided to resolve arg (or another) over other DNS options

When attempting to use curl to get around a misconfigured DNS entry (experimenting and not known at the time), --resolve seemed like the right way to go. However, the argument didn't behave the way I ...
0
votes
1answer
52 views

Which service/process fills the default value of /etc/hosts?

I'm running a custom OS based on ubuntu 18.04. I've ran into a problem - when the machine gets installed it sometimes doesn't have the value "127.0.1.1 hostname" in /etc/hosts. So it can't ...
0
votes
1answer
71 views

Exclude subdirectory from host resolution set in /etc/hosts (with dnsmasq, or anything else)

I have a local development tool (LocalWP) that sets the path to my local environment by modifying /etc/hosts. For example, if I set my site in Local to www.foo.com, it'll append the following to the ...
0
votes
1answer
71 views

Refresh host a records for a server when changed in domain controller

In Active Directory DNS Manager, when I change the IP Address of a Host A record, how can I ensure the changes are replicated to all or specific computers in the domain. When I change the IP Address ...
7
votes
1answer
1k views

How to manually trigger an update of /etc/hosts in WSL? [closed]

When I start the first WSL terminal (ubuntu 20.04 bash in my case), WSL generates the /etc/hosts file based on the host file of my windows system %WINDIR%\System32\drivers\etc\hosts. If I now change ...
0
votes
0answers
57 views

Will there be a names conflict if 2 exactly same NetBIOS names are listed with the same ip in hosts file?

Two machines are having same names in the network and running services. If I'll map host names in hosts file this way 192.168.0.1 name1 name1, will there be conflict with names when accessing services?...
0
votes
0answers
19 views

Setting Ubuntu hostname and hosts file with external domain for Postfix

I have a VPS with DigitalOcean and I also have a public domain registered with Namescheap. I have A and AAAA records in my Namescheap DNS settings pointing towards my VPS. I'm trying to setup Postfix ...
0
votes
0answers
21 views

Re-mapping hostname

Lets say I have 2 server, one server (server A) I configure haproxy and define access control lists to allow acl host_domain hdr_end(host) -i domain.name and another server (server B) I set hostname ...
1
vote
2answers
2k 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
32 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
696 views

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

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
106 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
220 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
818 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
2k 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 ...
2
votes
0answers
714 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 ...
-2
votes
1answer
307 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
219 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
275 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 ...
0
votes
1answer
643 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
81 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
89 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
1k 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....
3
votes
6answers
2k 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 ...
2
votes
2answers
3k 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
2k 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
58 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
457 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 ...
7
votes
2answers
16k 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
117 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
199 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
47 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
359 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 ...
2
votes
5answers
2k 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
431 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
177 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
3k 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 ...
2
votes
1answer
16k 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
535 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
72 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 ...
-1
votes
3answers
3k 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 ...
1
vote
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
300 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
452 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
865 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
687 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 ...

1
2 3 4 5 6