cannot access to internet , help

hi experts
i have a sun Enterprise 220 R server with solaris 10 and patches , i configured network card with ip addresses that have access to Internet but i can't be connected :confused:

for same informations :

root@E220R # ifconfig -a

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.16.7.200 netmask ffff0000 broadcast 172.16.255.255
ether 8:0:20:c7:8a:d8

root@E220R # more /etc/defaultrouter
172.16.1.254

and the problem:

root@E220R # ping Google
ping: unknown host Google

what can i do ?

check the IP of the DNS server

put those ip /etc/resolv.conf

vi /etc/resolv.conf
nameserver 202.138.96.2 (example)
nameserver 202.138.96.3

cp /etc/nsswitch.dns /etc/nsswitch.conf

svcadm enable /network/dns/server

ur done almost.

this step isn't necessary unless you want to configure a dns server!

if you have a dns server on your 172.16.1.0 network, use that address in /etc/resolv.conf

echo "nameserver <dns_ip>" > /etc/resolv.conf

otherwise use your default route address.

thank you every body

summary: Linux or Solaris -You need to set-up your machine as a DNS client to be able to connect to the internet