Share via


Configure DNS to display internal website instead of router page

Question

Saturday, March 17, 2012 7:29 PM

I have a residential router and when i go to domain.com which is hosted internally it shows me my router page. How do i set it up so when i go to domain.com inside my network it shows the website not my router page? I know its possible because my friends does it but it does it by default.

All replies (4)

Monday, March 19, 2012 3:24 PM ✅Answered | 1 vote

Ok, so if you are running Windows DNS, that's great.  You need to have a zone running on that Windows server called domain.com.  In that domain.com zone, just create a host record, call it 'www' or whatever host name you wish.  You need to point that host name to the IP address of your website. 

If the website sits within your private network, map that hostname to the private IP address, not the public.  This is because most consumer based routers that do port forwarding, will not allow you from within your network to access the public IP address of your internal website.  I suspect that is what you are trying to do.

If your website is hosted somewhere on the internet, then map this host name to the public IP address.  You can get that IP from your provider.

Guides and tutorials, visit ITGeared.com.


Monday, March 19, 2012 4:43 PM ✅Answered

PERFECT!!!! Thank you very much!!

For the others who want to do this here are the exact steps to take:

1. Open DNS in server 2008 

2. Select your server then right click in an empty space in the area where you have forward lookup zones etc.

3. Right click and click New Zone

4. in the wizard untick "Store the zone in active directory"

5. have primary zone selected and click next.

6. select forward lookup zone and click next

7. in zone name type in your domain name (domain.com)

8. in create new file get rid of .dns and click next

9. click allow non secure and secure dynamic updates

10. once wizard is finished click forward lookup zones and there should be your host name. open it.

11. right click then new host then in the host box leave the top box blank and in the ip address put in your private ip (192.168.0.1) Then add host

12. that should do it as long as clients have that DNS server set as their primary. If it dont work strait away go to cmd and type ipconfig /flushdns

13. once done restart your browsers and try again. if still no luck clear browsing data.

Thanks 

Rhys


Sunday, March 18, 2012 9:38 PM | 1 vote

Well, is the web server that is hosting domain.com sitting within your internal network?  If so, for most residential routers, they will not allow you to make a connection from within your internal network to the external IP that you have configured back into your network.

If this is the case, access your internal webserver, using its internal IP address.  If you do not have a DNS server on your network, and your router does DNS services, see if you can add an entry in your router so that you can map domain.com to the internal IP so that from within your network, you can access it.  Otherwise, you can modify the HOSTS file on your computer and enter domain.com and point it to the internal IP.

IF domain.com is not within your network, but somewhere hosted on the internet, you should be able to access it.  It is a matter of making sure that you can resolve the IP from within your network.

More clarification is needed to advise you.

Guides and tutorials, visit ITGeared.com.


Monday, March 19, 2012 1:55 PM

It is within my network but I do run a windows DNS server as i use active directory. How do i set it up in server 2008 DNS? Can you provide screenshots as i have been trying to work this out in the past.

Thanks!!