Re: Issue with port blocking on public DNS server



Hello,

Have a look here:
http://technet2.microsoft.com/WindowsServer/en/library/19a63021-cc53-4ded-a7a3-abaf82e7fb7c1033.mspx?mfr=true

Select "Network Ports Used by DNS" and have a look for yourself...

I am talking about the "Destination Ports" in the "Responses to local DNS
server" and "Responses to remote DNS server" "Traffic Type"-senario. As you
can see "ANY PORT ABOVE 1023".

How do you secure this, that's my question. Or, is there a way to set these
ports fixed in some way, ... There must be a workaround...

Thanks.

"Herb Martin" <news@xxxxxxxxxxxxxx> wrote in message
news:e83BIiNuGHA.5056@xxxxxxxxxxxxxxxxxxxxxxx
"WimVM" <wimvm1@xxxxxxxxx> wrote in message
news:OMX37FMuGHA.4208@xxxxxxxxxxxxxxxxxxxxxxx
Hello,

I have two public DNS servers running Windows 2003 Web Edition SP1. They
are used as DNS server for hosting public domain names. On the same
servers I have a mailserver running (MailEnable). I also do port
filtering on the public network card (advanced options of the NIC).

I have these ports open:
-TCP: 25/53/110
-UDP: 53
-IP: 6/8/17

Everything works fine, except that I can not resolve external domain
names (other then the domain names in my own DNS server) on the servers.
This is ofcourse a requirement for the mail server...

Is this true when you are working FROM the Web/DNS server too?

If so, then the likely source of the problem includes:

1) Filtering outbound requests on port 53 FROM the DNS to the Internet

OR (perhaps more likely)

2) You have disabled "Recursion" in the ADVANCED TAB of the DNS

When I scan the ports used by DNS I note that it is not only using ports
TCP53 and UDP53 but also DYNAMIC assign ports: 2 UDP and 1 TCP. They
mostly are something like 1028 (TCP) and 1025/1026/1027(UDP). The problem
is ofcourse that I can not block the ports in this way. As soon as the
ports are changed (after reboot?), name resolution will fail.

DNS does not use dynamic ports (in the sense RPCs do) but it must send
out a request for resolution (from the DNS server) on Port 53 DESTINATION
with some high port as the response.

This is the way that pretty much all normal "client requests" work for
any protocol, and if you wish to have your DNS server resolve "the
Internet"
then it must be such a "client" (do recursive requests or forward.)

Many people argue strongly against such an external (authoritative) server
ever doing such things.

This is ONE of the reasons your DNS Zones should NOT be maintained
by your servers but placed back at the REGISTRAR in almost all cases
(except the largest companies.)


How can I solve this? How can I still use port filtering and resolve
domain names without any problems.

Put your zones back at the registrar is the most comprehensive plan.

Make sure your DNS server can recurse (in ADVANCED) and have
it either do that or forward. Open the required ports for outbound
requests and responses if you do this.

--
Herb Martin, MCSE, MVP
Accelerated MCSE
http://www.LearnQuick.Com
[phone number on web site]


Thanks!





.



Relevant Pages

  • Re: ZONe transfer
    ... > tell my w2k DNS to pull from the ISPs DNS servers zone?? ... It's a "zone transfer" so yes, you have to create the Zone internally ... on your DNS server with the SAME NAME and give it a "master" ... Ports for DNS must be open, ...
    (microsoft.public.win2000.dns)
  • Re: Firewall & Port Questions
    ... >> What ports should I NOT block that would still allow web browsing? ... > only to your isp's dns server, for name resolution) if you surf directly ... > If you're using a proxy, you'll need to allow the proxy port (could be ... You could also have an internal cache DNS running on a cheap ...
    (comp.security.firewalls)
  • Re: dns server behind a firewall?
    ... I only have one public address, and there was no firewall before. ... No additional changes on my w2k dns console? ... > (DNS server) address on ports 53. ...
    (microsoft.public.windows.server.dns)
  • Re: Connecting to Linux machine remotely
    ... The way to connect to a machine from a remote location is via ssh. ... want to connect from which queries the dns server of my ISP every 5 min ... ]> need you can forward tcp ports through ssh. ...
    (comp.os.linux.networking)
  • Re: iptables, NAT, DNS & Dan Kaminsky
    ... in RFC-compliant DNS caching servers the successful execution of which ... I.e. boxes within the NATted LAN which use ... random UDP ports are secure and neither the 2.4.x nor the 2.6.x series ...
    (Linux-Kernel)