Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a public url like,so that I can access my url from anywhere. Now I want to set that same url to my local machine. If I type from my LAN, it should routed to local To achieve this, I tried the below configuration.

I have a Windows 7 machine, where I installed BIND9, I set that machine IP to and named it It is connected with a router ( In BIND conf, I have 2 forward look up zones and 2 reverse lookup zones. In addition, I have . zone

2) (reverse lookup)
4) lookup of

I'm able to communicate with external urls (Google, Yahoo...) from

On the other end of the router I have another machine connected to the same network with an IP of On, I set the DNS server IP as If I ping from,the result is:


Ping request could not find host Please check the name and try again.

DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out


How do I get this working with locally? I'm able to communicate with external urls (Google, Yahoo...) from, but not from The result of an nslookup from is below:

Server:  UnKnown

SendRequest(), len 28
        opcode = QUERY, id = 11, rcode = NOERROR
        header flags:  query, want recursion
        questions = 1,  answers = 0,  authority records = 0,  additional = 0

    QUESTIONS:, type = A, class = IN

DNS request timed out.
    timeout was 10 seconds.
timeout (10 secs)
SendRequest failed.

And on, I'm not getting any queries from (I set the ACL to 192.168.1/24).

Note: Important thing is that should communicate with external urls. This machine should communicate with, so in this case how do I set up domain name locally and configure locally?

share|improve this question
Do your BIND logs say anything interesting? – voretaq7 Aug 21 '12 at 5:32
No, my Log shows only queries from – vijai Aug 21 '12 at 5:53

First start with checking basic connectivity to the DNS server from your host, so from ping IMPORTANT: you said that you installed the DNS server on a windows 7 machine. Windows 7 has a build in firewall which blocks ping requests. So you probably will have to allow ping ( also make sure that you can receive incoming DNS requests on the DNS server).

Next: try to resolve the domain on the DNS server itselves: so on do a ping to See to what the DNS resolves.

If the DNS resolves ok from the DNS server itselves try again from the host. If the host has connectivity with the DNS server , and DNS queries are allowed trough the firewall normally the resolution should work.

Also, if it still does not resolve correctly, can you give us the zonefile of so we can check that for errors.

share|improve this answer
Thank you Goez,OMG.. i forgot firewall... Windows fire wall creates that proplem,so now i'm able to ping from now i want to access which is an external i tried C:\windows\system32>nslookup Server: Address: *** can't find Non-existent dom ain. Because both domain name are what to do to access from – vijai Aug 21 '12 at 7:52
That will be a problem since you have the same zone. I would add to your zonefile with the external IP. This way you will resolve app1 to a local address and app2 to an external address. Do NOT forget to increase the serial of the zonefile when altering ! – Goez Aug 21 '12 at 7:56
Hi Goez,Thanks a lot.its working now. – vijai Aug 21 '12 at 8:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.