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
votes
1 answer

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 hostname of the machine. I have gone into the…
-1
votes
3 answers

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 list goes to node100.domain.org it is practically…
-1
votes
1 answer

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

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 site (vpn) per lmhosts / hosts file how to resolve…
-1
votes
1 answer

rerouting name to ip on local network

i created an intranet (lamp) and now i have to make it visible using this url intranet: the solution i found was to put in each computers (mac, windows) this in the hosts file using the ip 192.168.1.100 and the alias intranet the intranet has a…
Pat R Ellery
  • 11
  • 11
-1
votes
2 answers

Is it valid that localhost appears in multiple lines in linux hosts file?

hosts file: 127.0.0.1 localhost localhost.localdomain 192.168.30.133 localhost machinename Is it valid that localhost appears in multiple lines?
performanceuser
  • 147
  • 1
  • 2
  • 6
-1
votes
1 answer

Virtual hosts in CentOS

I have a server with IP 1.2.3.4 and I want the domain www.something.com to load website from /var/www/html/something/ I've tried to configure them as follows: NameVirtualHost 1.2.3.4:80 ServerName…
Tomiţă Militaru
-1
votes
2 answers

Virtual hosts links to index instead of page?

I have set up my virtual hosts with xampp. I uncommented the vhosts line in the httpd.conf file and added the virtual hosts in the vhosts document. The files for the web pages are located in my htdocs folder (two separate folders for each page…
user1390754
-1
votes
3 answers

Can't edit file after `chattr +i`

After chattr +i /etc/hosts I can't edit this file (obviously). But how can I revert it back. I need to edit this file and then lock again. UPD ls -l /etc/hosts -rw-r--r-- 1 root root 274 2011-06-09 14:14 /etc/hosts UPD 2 lsattr…
fl00r
  • 575
  • 2
  • 7
  • 20
-1
votes
1 answer

Windows redirection to a new Network Folder (from \\OldDirectory to \\NewDirectory)

We have relocated our files to a new folder (from \\oldfolder\... to \\newfolder\...). I would like to know if on windows it is possible to redirect all the request to the new path (because we have a lot of word, excel, powerpoint, bat files that…
-2
votes
2 answers

I can't get my website to be enabled?

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. My hostname is "thor" and I tried: Adding…
-2
votes
1 answer

Linux DNS: expand name with a choosen domain

I need to expand a random name with a choosen domain. Example: nslookup abc 127.0.0.1 -> should look for abc.domainchoosen.dom. Suggestions?
user190035
-2
votes
1 answer

Connecting to Gest ip address usign host alias

I have RedHat OS running on VMWare Player. My host operating system is windows7. Network configuration i am using on my virtual machine is NAT. I have configured my Guest operating systems /etc/hosts to have following configuration.…
KItis
  • 111
  • 2
  • 8
-3
votes
1 answer

127.0.0.1:8080 works but localhost:8080 doesn't

This may be super easy so I apologize in advance but my strengths are in coding. Why can't I access my localhost at localhost:8080? 127.0.0.1:8080 - works 127.0.0.1:80 - doesn't work 127.0.0.1 - doesn't work localhost - works localhost:80 -…
csi
  • 1,555
  • 7
  • 23
  • 42
-3
votes
3 answers

DNS resolves without adding the host IP and name to etc/ hosts file

Is there any way to resolve hostnames without added to hosts file? In order to access internal site in my company I have to add the host-name and IP in the .../etc/hosts file. Is there any way to add this in DNS server or active directory instead of…
-4
votes
1 answer

hosts file entry for domain pointing to shared hosting account

I have hosting account which is on shared hosting server. My DNS is not able to resolve the server address. What should be entry in etc/hosts so that it resolves the correct server address? Few days back i was not able to access github.com, i…
LNT
  • 93
  • 2
1 2 3
18
19