How to ping a server with DNS name in Sun environment.

Posted on 2004-11-03
Medium Priority
Last Modified: 2013-12-27
What are things to do, when we try to ping server using DNS from a Sun Solaris Server. Currently  using ipaddress server are able to ping but how to use DNS to ping. Is there any Setup to enalbe DNS ping?  Please help.
Question by:netcool
LVL 97

Expert Comment

by:Lee W, MVP
ID: 12490823
LVL 38

Accepted Solution

yuzh earned 500 total points
ID: 12490914
1. make sure your /etc/resolv.conf file looks like:


replace "" with your DNS server IP

2. check  your /etc/nsswitch.conf  file, and make sure that it has:

hosts:     files dns [NOTFOUND=continue]

# you can just modify the record to make it use files and DNS

3. If you had done step 1 & step 2 and it still not working, try:
to specify the defaulterouter:

vi /etc/defaultrouter
and put   in the file, replace " " with your router IP

echo "" > /etc/defaultrouter

then reboot.

Expert Comment

ID: 12501230
no need to reboot for those changes yuzh, at most:

/etc/init.d/nscd stop
/etc/init.d/nscd start
route add 0 1

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question