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'm new to dns admin so please be gentle. Here is my set-up:

Domain name with a few A records points to my personal IP. example.com server1.example.com server2.example.com Router forwards all port 80 requests to a Ubuntu VM box with Bind9 and Webmin installed Bind9 is then supposed to resolve the server1.example.com and server2.example.com Then send them to some more VM's that host host web apps.

I think i have my master record set up for the domain on the Bind9 box correctly, but when go to the domain, I get the holding page for my Ubuntu VM web server and not the server1 or server2 boxes.

It appears to be getting to my Bind9 box but no further. Is this because I have the hosted DNS record on the internet and another on my internal box? or are they supposed to work together? Is it because my Bind9 isn't listening correctly?

I have been using webmin to set up the bind9, and it keeps saying all my config files are okay.

Any help, or pointers for things to look for would be gratefully received.

share|improve this question
Which server(s) are authoritative for your domain (i.e. if your domain is example.com, what is the result of "dig @e.gtld-servers.net example.com NS") ? –  Sandman4 Feb 26 '12 at 18:45
Is this a public DNS server? –  Jacob Feb 26 '12 at 18:47
Bind9 listens to DNS queries on port 53 (only). It have nothing to do with HTTP queries on port 80. –  Sandman4 Feb 26 '12 at 18:49
Currently two ZoneEdit DNS servers are the authority as that's the service I'm using to forward to my home IP. This isn't a public DNS, its just to resolve requests behind my firewall. –  Adam Feb 26 '12 at 19:09

1 Answer 1

Here are two suggestions:

  1. You'll need to reconfigure your router to send the http requests to the proper web app server, and not just send them all to the Ubuntu VM box.

  2. You'll need to reconfigure your Ubuntu VM box to act as a reverse proxy. This site gives a good breakdown of how to reverse proxy with apache: http://www.apachetutor.org/admin/reverseproxies

What's happening is that the http request is being sent to your private IP per DNS. Once the http hits your private IP, the request is routed to your Ubuntu VM web server. Your Ubuntu server is listening on port 80, gets the request, and displays your page.

share|improve this answer
I assume this requires me having a smarter router than an mac airport. –  Adam Feb 26 '12 at 19:58
Perhaps this is something i should be doing with Apache instead then? Forwarding web requests to certain submains to other IP's in my network - is this a better method? –  Adam Feb 26 '12 at 20:09
It really depends. If I were you, I'd look into using a reverse proxy since your router is a mac airport. –  Chris Ting Feb 26 '12 at 20:13

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.