Solaris TCP/IP configuration

back to contents
Sepcifying IP address
Enabling DNS resolution
Specifying DNS Servers
Specifying Gateway
More information

How do I specify my IP address?

  1. Start xedit (or another text editor)
  2. Open the /etc/inet/hosts file
  3. It must have the following lines:

How do I enable DNS domain name resolution?

  1. Start xedit (or another text editor)
  2. Open the /etc/nsswitch.conf file
  3. In the line that reads: "hosts: file", replace it with "hosts: dns file"
  4. Save the file.

How do I specify my DNS servers?

  1. Start xedit (or another text editor)
  2. Open the /etc/resolv.conf file
  3. Add the following lines:
  4. You can add upto 3 nameservers in this file
  5. Save the file.

How do I specify my gateway?

  1. Start xedit (or another text editor)
  2. Open the /etc/defaultrouter file
  3. Add a single line containing the ip address of your network gateway.

More information

How do I start the Answerbook server?

Load the CDROM with the solaris documentation server. Open the CDROM folder. Double click on the "ab2cd" icon and that should bring it right up.

Where in the Answerbook do I find more information?

Once the Answerbook server is started, load HotJava and point it to: http://localhost:8888/
This should bring the answerbook webpage up. Then goto the "Network Admin Book", then goto the "TCP/IP Configuration Files".


Nazmul Idris.