When you "ping server" and "ping server.domainname", you
get different results. Why?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
how to recover a server/system backup?
Syntax for useradd commad
What is meant by persistant binding?
I have a "telnet" error then what you will do?
What is difference between Hard and Soft mount?
How to clear the failing flag on a veritas volume manager disk:
What is difference between incremental backup and differential backup?
How to configure email notification in solaris 8? We are using netbackup 5
one guy asking how to grow disk size in SDS? what is SDS?
How to Switch service group between nodes
When iam checking the services its showing unintialized then what should i do step by step.pls tell me the answer as soon as posible.
Difference between ufs and tar commnad