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

Which file will take place while booting

1 Answers  


How to find memory status i.e.. it is full like 100%?

5 Answers   HP,


How to check and analyze the logs in /var/adm/messages?

2 Answers  


How to clear the failing flag on a veritas volume manager disk:

3 Answers   IBM,


Explain setuid, setgid and stickybit

2 Answers  






how to find bad disk in VERITAS VOLUME MANAGER

12 Answers   HP,


What are the steps to be follow to add a disk in veritas & before add the disk what are the steps to be follow

2 Answers  


How will you find the number of hard disk

4 Answers  


How to find the network card speed

3 Answers  


May I know the difference between the RAID and Volume Manager?

7 Answers   ITC Infotech,


Hello Everyone, One of our servers is showing a strange issue, let me paste the output Code: root # uptime 4:37pm 3 users, load average: 0.00, 0.04, 0.04 Its been running since months but you can see after time there isn't any output like up 191 days(s). Even the who command with b and r option isn't giving any output. Code: root # who -b root # root # who -r root # the date command displays correct output. I am not sure but is it because someone has played with utmpx and wtmpx files, is reboot the only solution we have. Can anyone help us since we don't intend to reboot the server for such a reason and also no one has complained till yet.

1 Answers  


Disaster recovery steps if OS corrupted

3 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)