0
votes
1answer
52 views

How does a machine determine its host name?

Below is the output of the hostname command. bash-3.2$ hostname server1 How does the hostname command determine the hostname to be server1? I guess it checks with the DNS server as this is ...
-1
votes
1answer
48 views

Add 'www' entry to /etc/hosts

Using Windows and JetBrains IDEA; and trying to serve a hard coded .zip file for scala, since IDEA's plugin is hard-coded to a non-existent location on scala-lang.org. So I've added: 127.0.0.1 ...
2
votes
1answer
287 views

Creating hostsname aliases through dscl does not work in Mountain Lion

I read a few places that dscl is preferred over /etc/hosts for adding hostnames (for instance when developing). But in Mountain Lion (OS X 10.8) I cannot get it to work (others too). I have read ...
-1
votes
2answers
756 views

Point Multiple IP Addresses to a Single Host Name

Is it possible to have a single host name with multiple IP addresses? The hostname will be used to access a box in LAN with 192.168.x.y and from outside with IP w.x.y.z which is portforwarded to that ...
0
votes
1answer
485 views

Tweak hosts file to avoid issues with duplicate machines in a workgroup

I am a software trainer. Training facilities clone a master image onto multiple machines for the students. Previously, we used to name these student machines S1, S2, S3, etc. The downfall to this, ...