Ping domain indicates the external ip address and not the local ip

when i execute from local machine
ping domainname i get the external ip address but i am on local dns and i expect the local ip address..
using nslookup : no problem
so i cannot find why...
thanks

It could be for a lot of reasons - DNS queries are cached - IP's, for example, are saved by the name service on your machine -nscd.

First off try

traceroute  domainname

and see what is really going on.

traceroute doaminname gives local address as expected!!