Within my organization network, if a machine has computer name(hostname), say, desktop-x, i am able to ping to that machine using just "ping desktop-x".
But the ping actually converts desktop-x to FQDN in order to query the DNS server for the corresponding IP address. So if my organization domain name is company-x registered under com, then FQDN for the machine is desktop-x.company-x.com
So, ping actually queries "what is the IP address for desktop-x.company-x.com". Now, when the organization DNS server gets this query, how does it know which IP address is assigned to desktop-x, since desktop-x is assigned a private ip dynamically by DHCP.
Provided the DNS server keeps track of (hostname=>ip address) somehow, then why can't i ping the same machine from outside the network with "ping desktop-x.company-x.com"?