Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a public url like app1.wifi.com,so that I can access my url from anywhere. Now I want to set that same url to my local machine. If I type app1.wifi.com from my LAN, it should routed to local app1.wifi.com. 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 app1.wifi.com. 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)0.0.127.in-addr.arpa (reverse lookup)
4)1.168.192.in-addr.arpa(reverse lookup of wifi.com).

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 app1.wifi.com from,the result is:

ping app1.wifi.com.

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

C:\windows\system32>nslookup app1.wifi.com
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 app1.wifi.com locally? I'm able to communicate with external urls (Google, Yahoo...) from, but not from The result of an nslookup from is below:

nslookup google.com
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

        google.com, 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 app2.wifi.com, so in this case how do I set up domain name locally and configure app1.wifi.com 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

1 Answer 1

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 app1.wifi.com. 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 wifi.com? 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 app1.wifi.com from now i want to access app2.wifi.com which is an external url.so i tried C:\windows\system32>nslookup app2.wifi.com Server: app1.wifi.com Address: *** app1.wifi.com can't find app2.wifi.com: Non-existent dom ain. Because both domain name are same.so what to do to access app2.wifi.com(atleast from –  vijai Aug 21 '12 at 7:52
That will be a problem since you have the same zone. I would add app2.wifi.com 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.