Solaris Hostname


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris Hostname
# 1  
Old 02-04-2016
Solaris Hostname

Hi,
I am installing Solaris 11.3 as a local system using no remote connections.
The installer asks for a computer name or would be used as the hostname.
Can I select any name ? Like solaris 11 or localhost ?
I noticed this is added into the /etc.hosts file later.

ie example. localhost

Code:
::1 localhost
127.0.0.1 localhost loghost

Will this work for app on my computer that connects using a web browser ?
Or do I need to edit etc file /etc/file after installing ?

Code:
hxxp://localhost:5555/e

Thanks

Last edited by Don Cragun; 02-04-2016 at 10:00 PM.. Reason: Add CODE tags.
# 2  
Old 02-04-2016
Think of localhost as a synonym for your machine's host name. Programs on any system can refer to localhost to connect to a service on the local machine without knowing it's network name. But, if you name your system localhost, program's on other systems will be confused if they want to use your advertised host name since it will have two meanings on other systems.

The name doesn't matter a lot as long as it is unique on your local network. (I would, however, restrict the name to something consisting of just lowercase alphabetic and numeric characters.) The name localhost, by definition, is not unique on any network.
# 3  
Old 02-04-2016
Ok I am going to do an install of Solaris 11.3 and use solaris11 as my hostname.
I was looking around and seeing a lot of posts with the following:

Code:
localhost.localhost.domain   localhost
localhost6.localhost6.domain  localhost6
localhost4.localhost4.domain  localhost4

Do you know why the above is different on some "local systems" ?
but mine looked like the following:

Code:
::1 localhost
127.0.0.1 localhost loghost

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Solaris - How to get IP Address from a hostname?

We are using Solaris as our database OS. Can you please help me to know how can i get the IP address of a solaris machine in my network from its hostname? e.g. We have a remote database server with the hostname as xyz. Without connecting to the database OS, can i get the IP address of xyz OS from... (1 Reply)
Discussion started by: Anmol Sharma
1 Replies

2. Solaris

changing hostname on Solaris 8 ?

hi, does anyone had experience changing hostname on Solaris 8 ? any idea how is it done ? (4 Replies)
Discussion started by: Exposure
4 Replies

3. Solaris

hostname on Solaris

Hi All, I am wondering how does the hostname command decides what is the actual hostname. Where does the command take the information from? (7 Replies)
Discussion started by: lmishkind
7 Replies

4. Solaris

Can't ping using hostname on Solaris 10

I recently installed Solaris 10 on my Sun workstation. I cannot ping using hostname from another computer on the same network. But I can ping using the IP address. Also I can ping other systems using their hostnames. Can anyone give some information regarding how to resolve this issue. (4 Replies)
Discussion started by: alpha123
4 Replies

5. Solaris

changing ip and hostname on solaris

dears does any one know in steps how can i change ip and hostname on solaris (10 Replies)
Discussion started by: murad.jaber
10 Replies

6. UNIX for Advanced & Expert Users

Map IP to hostname on Solaris 10

I am seeking help. We have a UNIX sparc box with Solaris 10 on it. We configured this box as 3 zones with 3 static IP address. I installed Oracle 10g on glabal zone successfully. Now Oracle DBConsole can be started successfully, but it can not find IP for global zone and also can not identify... (0 Replies)
Discussion started by: duke0001
0 Replies

7. Solaris

Change hostname in Solaris 9

Please anyone guide me how to change the hostname in Solaris 9? The IP of the machie is fetched from a DHCP server. (6 Replies)
Discussion started by: shabu
6 Replies

8. UNIX for Dummies Questions & Answers

Solaris - unknown hostname - how can I change hostname?

Hello, I am new to Solaris. I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
Discussion started by: XNOR
1 Replies

9. IP Networking

How to change hostname and ip in solaris

Dear all, I am going to change the IP address and hostname in my solaris, but I don't know how to do it. If you have any idea or suggestion, please fell free to let me know. Thanks and Regards (2 Replies)
Discussion started by: PennyLi
2 Replies
Login or Register to Ask a Question