I can only guess that you have some version of ping which simplifies the name (or an entry in /etc/hosts or local DNS which provides an IP address).
If you do need to ping an external server, keep it short! i.e. Use a parameter to ping to limit to say 2/3 packets. Please don't send continuous ping across the Internet.
CAN anyone check adding to /etc/hosts will work??
I added to /etc/hosts and then i try to ping and it shows site is ALIVE...
Im not sure but it works...
ANY ADVICE SENIORS....want to is it good to go.....??
Adding an Internet host to /etc/hosts is a broken approach. It might be useful to fix a temporary name service issue but it is nothing more than a temporary workaround.
That depends. Is it a server (static IP) or a laptop/workstation (dynamic IP) ?
How are the other machines on your network configured regarding the DNS ?
This may be set by DHCP for dynamic clients. DNS clients send queries to one of their DNS servers, asking for recursion so the answer they get is either none-such or one or more answers, for the code calls gethostbyname() and reverse address getostbyaddr() (for validation of its clients -- a host may be a DNS client but an email server, for instance, and email SMTP servers do reverse lookup on each connection to 25, the value you see in mail headers in parens).
The configuration of DNS Servers and the structuring of domains to be served is a bigger topic. Most likely, your DNS servers are OK, or others would be complaining.