Re: After DNS update: critical services being blocked from listening on standard TCP/IP ports



My SBS2003 has this MaxUserPort=65535 key as well. I haven't installed the
updates yet but thanks for the heads up.

I don't see this issue mentioned in the SBS blog. I wonder if this key is
standard in SBS setups? (I don't remember adding it...)

--
Allan Williams



<SteveM> wrote in message news:xn0fsogaokz4jc000@xxxxxxxxxxxxxxxxxxxxx
rkand@xxxxxxxxxxx wrote:

Since last Tuesday's update, I believe I'm having problems with the
DNS service listening on ports that other services require.

My SBS2003 (non-R2) server has rebooted three times since the update
(including the time to apply the patch). The first time, the IPSEC
service failed to start. I didn't find out what caused the problem -
I ran the CEICW and when that didn't fix it I rebooted the server and
all seemed fine. However yesterday I had to reboot to fix a stuck fax
service, and this time the IAS service failed to start.

Every time I tried to start the IAS service, the Event viewer showed
that event 7023 was logged in "sytem" by the service control manager -
"Only one usage of each socket address (protocol/network address/port)
is normally permitted." Checking further back, I noticed this is the
same eventid and error message given for the IPSEC service to fail
earlier.

Using sysinternals tcpview, I noticed that port 1812 was taken by
DNS.exe - so I stopped the dns service, started IAS, then started the
DNS service again, everything worked.

However, I'm worried about the next time the server needs to restart.
IPSEC in particular is a bad service to not have running. What should
I do to try and fix this? According to TCPView, DNS is currently
using over 2500 ports most with a remote of *.* and no state, is that
normal?

I also observed this behaviour on our SBS after the July DNS updates,
where IAS failed to start on the following reboot because of the same
port clash.

Looking at MS08-037 (http://support.microsoft.com/kb/953230), the DNS
server will now use ports from the range 49152 - 65535, *unless the
'MaxUserPort' registry value is set* (see:

http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/58791.mspx?mfr=true).

In that case, it will use ports in the range 1024 to the value of
MaxUserPort. I saw that our SBS had the registry value set to 65535 -
in which case DNS could use any ports at all over 1024, and cause the
problem we saw. I have now removed the MaxUserPort value and restarted
the DNS server service. Hopefully this will deal with the issue.

There is also a ReservedPorts registry value (see
http://support.microsoft.com/kb/812873/) that can be used to prevent
the DNS server (and others) using allocated ports, but after deleting
the MaxUserPort value there won't normally be a need for this, I
suggest.

All of this said, IMO the MS08-037 update should really have deleted
the MaxUserPort value automatically, avoiding all of this.

--
Steve.
MCP - Small Business.


.



Relevant Pages

  • Re: After DNS update: critical services being blocked from listening on standard TCP/IP ports
    ... DNS service listening on ports that other services require. ... same eventid and error message given for the IPSEC service to fail ... 'MaxUserPort' registry value is set* (see: ...
    (microsoft.public.windows.server.sbs)
  • Re: replication between sites
    ... I have an application which would publish its info via dynamic updates to a directory integrated dns zone. ... I understand what you wrote below about the way replication works. ...
    (microsoft.public.windows.server.active_directory)
  • Re: replication between sites
    ... I understand what you wrote below about the way replication works. ... The ideal location for this data would be a TXT record in a DNS zone, for several reasons not detailed here. ... I am certain my domain controllers could handle even hundreds of updates per second. ...
    (microsoft.public.windows.server.active_directory)
  • RE: path to client not found
    ... did not configure SBS DNS server for reverse DNS lookup. ... I will be here waiting for your updates. ... |> | Ethernet adapter Server Local Area Connection: ...
    (microsoft.public.windows.server.sbs)
  • Re: replication between sites
    ... I understand what you wrote below about the way replication works. ... I have an application which provides data updates to another application. ... dynamically update this DNS record. ... I must go with a directory integrated zone. ...
    (microsoft.public.windows.server.active_directory)