Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to setup the internet on sun solaris sparc

Status
Not open for further replies.

maryam421

MIS
Apr 5, 2004
102
US
I am trying to configure internet on my sun sparc ultra five. I have made an entry in /etc/defaultrouter. The entry is the ip address of my router. I put an entry in resolve.conf file as ip address of router.
when I run netstat I got the following result:

# netstat -rn

Routing Table:
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.0.0 192.168.0.115 U 3 2 hme0
224.0.0.0 192.168.0.115 U 3 0 hme0
default 192.168.0.1 UG 0 0
127.0.0.1 127.0.0.1 UH 0 3757 lo0

But when I do ping on any url it gives me an error url not known please help. I also modified the entry in nsswitch.conf file to make to file and dns
Thanks
 
Is your router/gateway providing DNS?

here are some notes on resolve.conf

Directives(headers):

nameserver - IP address in dot notation of the name server the resolver should use.

domain - The local domain name. For use with short names in a local domain.

search - search list for hostname lookup. Use local doamin name.

Note: Can't use domain and search at the same time.

Example:
nameserver 192.168.10.45
domain tek-tips.com
 
Yes it is. And resolve.config has an entry for the router ip address. It was working fine and then i reinstalled my server that is how the I messed up.
Thanks for your reply!!
 
resolv.conf should only have the dns server addresses. The format is:

domain <yourdomain>
nameserver <ip address of dns>

Also, you will need an /etc/defaultrouter file with the router/gateway address in it.

You will also need to change the nsswitch.conf file to resolve using dns. cp /etc/nsswitch.dns /etc/nsswitch.conf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top