Questions tagged [hosts]

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

/etc/hosts is the configuration file with locally known mappings between domain name and ip address. It can be used to define new or override existing mapping, bypassing the DNS that would normally resolve it.

271 questions
1
vote
0 answers

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 maintained and a new one must operate in…
AndW99
  • 111
  • 4
1
vote
1 answer

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. PostgreSQL runs as Network Service so I need to…
Brad Mathews
  • 173
  • 2
  • 8
1
vote
1 answer

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 this already on my target machine : iptables -I…
MouIdri
  • 163
  • 1
  • 8
1
vote
2 answers

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 works properly but plugin check_uptime return…
1
vote
1 answer

Postfix warning when sending mail: hostname 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 does not resolve to address xxx.xxx.xxx.xxx I've obviously already Google'd the issue; my /etc/host.conf has "multi=on" as…
hcac
  • 31
  • 4
1
vote
1 answer

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 puting the name on a web browser www.我等主营.com, it…
Tommy Lord
  • 113
  • 5
1
vote
1 answer

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). This block seems to be working, can't reach the…
DDdW
  • 113
  • 4
1
vote
1 answer

"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: workers.srv/. Where (dns service, hosts, router),…
dovid
  • 145
  • 1
  • 1
  • 6
1
vote
1 answer

MySQL Host / Host Table

So for better security, our website / network has been looking to lock down all of our SQL to IPs. What we originally were looking for was somewhere where I could whitelist all our ips, say 104.151.112.151-59 or use /29, /28, etc. We noted that we…
user330736
  • 13
  • 3
1
vote
0 answers

Samba shares don't work when mounted via host names from /etc/hosts

I have /etc/hosts file with this line 10.1.17.123 SAMBAWINSERVER I am trying to mount samba shares referencing server by name in the hosts file. I tried to mount it via regular mount command or /etc/fstab as a cifs share. I also it via smbnetfs…
oᴉɹǝɥɔ
  • 151
  • 6
1
vote
1 answer

Use proxy like an /etc/hosts file

I want a forward proxy that basically overrides DNS like /etc/hosts would on a client machine. So when People go to Google.com (for example) the proxy sends the request to a specified IP address. I assume this can be done with Squid, can someone…
usedTobeaMember
  • 616
  • 15
  • 25
1
vote
1 answer

Solaris Update Hosts file Without Rebooting

I'm running Solaris 10 and I'm having issues with a particular network and need to replace host entries in my hosts file. I've updated the hosts file. Is there a refresh the hosts entries without a reboot?
Ken J
  • 201
  • 1
  • 4
  • 11
1
vote
2 answers

Accessing a local machine with the hostname

I'd like to know if it's possible on a debian machine to automatically setup the hosts file of every other computer on the network. I'd like to be able to connect to the machine using a host name instead of the IP (ssh user@hostname instead of ssh…
Lukmo
  • 113
  • 3
1
vote
2 answers

lamp - is this virtual host creation process correct?

I recently reinstalled ubuntu on my system and I cannot get virtual hosts to work properly. What I'm trying to accomplish is typing 'test' on my browser and pointing to my local machine on the location /var/www/test I have followed several tutorials…
ppp
  • 169
  • 1
  • 1
  • 9
1
vote
1 answer

where is the configuration for https host Django+PHP

I am an app developer, with little web site development experience, now having to check some work on a virtual server, All seems to be working fine, but I cannot find where a configuration for a host is [this work was done by a sys admin that is on…