I am having a production server on which three different application are running . I need to configure alisanames for that server according to application to access the user.

link|improve this question

0% accept rate
feedback

2 Answers

For adding a alias name to a server in the hosts file you have to make the following structure:

In the first column you have to add the IP-Address, in the second column the host-name and in the third column you have to add the desired alias-name. Any subsequent columns are alias for that host. In the example's second line the IP-Address 192.168.0.2 is for the server test.server.com and another name for it is test.

For example:

127.0.0.1       localhost            test.server.com
192.168.0.2     test.server.com      test
192.168.0.3     another.server.com   another
link|improve this answer
1  
Default path to hosts file on Windows XP C:\WINDOWS\system32\drivers\etc\hosts – random Sep 15 '09 at 14:13
Based on the question I assumed that the threadstarter is knowing where the hosts-file is. Nevertheless thank you for the addendum :-) – C.Schmalzgruber Sep 15 '09 at 14:17
1  
uh, having two identical names 127.0.0.1 localhost test.server.com 192.168.0.2 test.server.com test for differnt IPs can cause headaches... I'll assume a copy&paste error there ;) – brandstaetter Sep 15 '09 at 14:33
thank u but others not able to connect to alias name. – user11222 Sep 15 '09 at 14:43
2  
Yes, you will need to edit the hosts file on each computer that will use the alias; if you want to make this a global change, you need to use a real DNS server. – pkaeding Sep 15 '09 at 15:12
feedback

Usually, the Syntax is:

<<IP>> hostname alias1 alias2

example:

127.0.0.1 localhost lo loopback

I hope it works the same under Windows XP

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.