When you "ping server" and "ping server.domainname", you
get different results. Why?

Answers were Sorted based on User's Feedback



When you "ping server" and "ping server.domainname", you get different results..

Answer / guest



If you give "ping hostname" the server will give the result
from /etc/hosts file & if you give "ping hostname.domainname"
then i will search through internet.

Is This Answer Correct ?    4 Yes 1 No

When you "ping server" and "ping server.domainname", you get different results..

Answer / shareef

Dear Colleagues

/etc/nsswitch.conf decides on the services used for a
variety of name resolution requirements
the part of interreset for this question is :

hosts: files ----> this will only resolve hostnames
from the /etc/hosts file
but if you add 'dns' next to files ; then you activate the
name resolution service [otherwise called to DNS client] ;
that used to resolve names through hosts file to resolve
names [ this time through dns naming model] from the server
configured in /etc/resolve.conf

which may look something like this

myhost# cat /etc/resolv.conf
domain mydomain.internal
search mydomain.internal
options retry:1 timeout:1
nameserver 10.234.206.73
nameserver 10.10.98.38


this file direct the name resolution through the configured
nameserver ; and will search for a given hostname through
hosts file first then through DNS resolution by appending
the configured domain name

regards

Is This Answer Correct ?    1 Yes 0 No

When you "ping server" and "ping server.domainname", you get different results..

Answer / rk

If your are pointing to the DNS server why you need to add
it in a /etc/hosts

if you are not able to ping through hostname just type "dns"
in /etc/nsswitch.conf file if you try to access through
hostname it read the nsswitch.conf file this file will
point to dns server.

Is This Answer Correct ?    0 Yes 0 No

When you "ping server" and "ping server.domainname", you get different results..

Answer / mahesh

Both gives the same result.
this result would confirm the server is alive or not.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Solaris Commands Interview Questions

How to unconfigure llt and gab

1 Answers  


In which file port No’s are defined

3 Answers  


If a User Account is locked,which file you need to check and how do you get to know at what time it has been locked.

4 Answers   CTS,


How may will you find the process id and disk utilizations.

7 Answers  


How to boot the solaris system in 64 0r 32 bit kernel

3 Answers  






If the system panic or system not booting

1 Answers  


How to modify network card speed

2 Answers  


How can you boot the system in single user mode? other than #boot CDROM/net -s

4 Answers   ITC Infotech,


How to rename the old root disk. In this example, rootdisk is being renamed as rootold.

1 Answers  


Hi We have upgraded our sun machine from solaris 9 to solaris 10. Before upgradation the date command output(Solaris 9) Wed Oct 13 09:45:21 IST 2010 But after upgradation the output for date is as below(solaris 10). Wednesday, October 13, 2010 9:46:14 AM IST Looks like I need to change LC_TIME=C. can you please help me how to change it for permanently

0 Answers   IBM, Wipro,


How to change network interface property in Solaris?

2 Answers   HCL,


How to scan newly added disks to system?

9 Answers  


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)