internal domain to be forwarded


I have my domain
and i have my dns server, which is solaris server

now, i added to the hosts file in the dns server,
when i ping from the server, it redirect it to the internal server as defined in the hosts files,
but when using nslookup, it direct me to the public IP address defined at my host ISP,

what I need is that people from outside to be directed to 84.x.x.x
where people trying to access the same domain from inside the company to be directed to internal IP

as i mentioned, modifying the hosts file alone does not work,
what shall i do
Who is Participating?
First, nslookup will never look at the hosts file - it is a name server query tool.  Ping will look at the hosts file.  Your clients will never look at your server's hosts file.  If you setup your clients to use your server as their DNS server, and setup DNS so that's address is, the clients will go to  BUT, if your server is the authoritative name server for, then setting the IP tp will make inaccessible by clients on the internet.  You need to do a WHOIS on and see which nameservers it's pointing to - those are the authoritative ones.

Hope this helps!

Steve Kamerman
malibusaAuthor Commented:
for your information,

if i ping something in the hosts file, it pings back
where if i ping something not in the hosts file, i takes long time, then it gives the message "no answer"

for example, if i define in hosts file

then i ping abc, it pings correctly

but if i remove it from the hosts file, then i try to ping it,
it do not reply, and at the end it gives the message "no answer from abc"

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.