I have a server behind NAT. I did port forwarding on my router WRT54GL. On that server I'm also planning on using BIND9 for DNS services.
My question: Can I use that DNS server for all ports or only www(80)?

I mean, I will have my domain name forwarded to my routers STATIC IP, router would then forward all the request to DNS server. DNS server would then decide if this is mail, vpn, website.

I'm sorry, I'm not sure how to explain..

1 Answer

You seem to be a little confused on what DNS server's do. DNS servers only resolve DNS requests. It doesn't make any sense to forward all requests to your DNS server.

Here's what would happen:

  1. A user types in in their web browser
  2. The user's computer sends a request to their DNS server (not yours)
  3. The DNS server responds with the static IP address
  4. The user's computer sends an HTTP request to port 80 of your router.
  5. Your router then needs to forward that to a web server.

No where in this process would your internal DNS server come into play.

What you need to do is setup a port forward for port 80 to your web server's internal IP address. So if your web server's IP address is 192.168.1.100, setup a port forward on your router so all traffic for port 80 is forwarded to 192.168.1.100.

Traffic types (web, mail, etc.) are usually differentiated by port number not by DNS.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy