internal domain to be forwarded

Posted on 2006-05-02
Last Modified: 2013-12-23

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
Question by:malibusa

    Author Comment

    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"

    LVL 13

    Accepted Solution

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Lets look at the default installation and configuration of FreeProxy 4.10 REQUIREMENTS 1. FreeProxy 4.10 Application - Can be downloaded here ( 2. Ensure that you disable the windows fi…
    Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
    Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now