Unix Technical Forum

DNS zone transfers - which port?

This is a discussion on DNS zone transfers - which port? within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> I'm tightening up the pf rules on my two coloco'ed machines. One is a master nameserver, the other a ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 07:23 AM
Steve at fivetrees
 
Posts: n/a
Default DNS zone transfers - which port?

I'm tightening up the pf rules on my two coloco'ed machines. One is a master
nameserver, the other a slave. I've searched for a clue re which port(s)
need to be enabled without success - would it be 53? Any others?

All cluesticks gratefully received. I'm fairly sure the answer must be
obvious, yet I've missed it somehow...

Steve
http://www.fivetrees.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 07:23 AM
Peter N. M. Hansteen
 
Posts: n/a
Default Re: DNS zone transfers - which port?

"Steve at fivetrees" <steve@NOSPAMTAfivetrees.com> writes:

> I'm tightening up the pf rules on my two coloco'ed machines. One is a master
> nameserver, the other a slave. I've searched for a clue re which port(s)
> need to be enabled without success - would it be 53? Any others?


you would need port 53 (domain), tcp and udp.

--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/
"First, we kill all the spammers" The Usenet Bard, "Twice-forwarded tales"
20:11:56 delilah spamd[26905]: 146.151.48.74: disconnected after 36099 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 07:23 AM
Steve at fivetrees
 
Posts: n/a
Default Re: DNS zone transfers - which port?

"Peter N. M. Hansteen" <peter@bgnett.no> wrote in message
news:87r70ydieg.fsf@amidala.datadok.no...
> "Steve at fivetrees" <steve@NOSPAMTAfivetrees.com> writes:
>
>> I'm tightening up the pf rules on my two coloco'ed machines. One is a
>> master
>> nameserver, the other a slave. I've searched for a clue re which port(s)
>> need to be enabled without success - would it be 53? Any others?

>
> you would need port 53 (domain), tcp and udp.


Thanks. Nice to know I was not entirely clueless .

Am I right in thinking that each machine would need to accept this port from
the other? There are cases where the secondary asks the primary, and others
where the primary yells at the secondary, no?

Steve
http://www.fivetrees.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 07:23 AM
Seeker
 
Posts: n/a
Default Re: DNS zone transfers - which port?

Steve at fivetrees wrote:
> Am I right in thinking that each machine would need to accept this port from
> the other? There are cases where the secondary asks the primary, and others
> where the primary yells at the secondary, no?


The secondary will query the primary based on the refresh value in the
zone file. It checks to see if a serial number has incremented, and if
it has, it will perform a zone transfer from the primary. From the IP
point of view, you'll need 53 TCP/UDP allowed from the primary to the
secondary, but you'll probably also want to allow it to anyone so they
can do DNS lookups. You can use the DNS server software, itself, to
restrict zone transfers to only allowed secondary and tertiary servers.

This may clear some things up: http://howtoforge.net/traditional_dns_howto
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-16-2008, 07:23 AM
Steve at fivetrees
 
Posts: n/a
Default Re: DNS zone transfers - which port?

"Seeker" <newsgroups@minusthespam.michaelstarks.com> wrote in message
news:gvFrg.70647$3B.36875@twister.nyroc.rr.com...
> Steve at fivetrees wrote:
>> Am I right in thinking that each machine would need to accept this port
>> from the other? There are cases where the secondary asks the primary, and
>> others where the primary yells at the secondary, no?

>
> The secondary will query the primary based on the refresh value in the
> zone file. It checks to see if a serial number has incremented, and if it
> has, it will perform a zone transfer from the primary. From the IP point
> of view, you'll need 53 TCP/UDP allowed from the primary to the secondary,
> but you'll probably also want to allow it to anyone so they can do DNS
> lookups.


Noted; thanks. (I went through all this when converting from BIND4 to
BIND9 - but I seem to have re-used those braincells since...)

Re open DNS lookups - I've turned off external recursive DNS, as generally
recommended. Is this the same thing? I am running an authorative nameserver
for the domains I host, so clearly this needs to be accessible. But the logs
also show some strange stuff on port 53 such as:

>> Jul 8 10:18:30 ns1 named[26098]: FORMERR resolving 'caadm.com/AAAA/IN':
>> 87.117.196.200#53

Jul 8 10:18:30 ns1 named[26098]: FORMERR resolving 'caadm.com/AAAA/IN':
66.45.225.10#53 <<

Where "caadm.com" is nothing to do with me.

ISTR this has to do with IPV6, but I confess I'm not sure.

> You can use the DNS server software, itself, to restrict zone transfers to
> only allowed secondary and tertiary servers.


Yep, and I do .

> This may clear some things up: http://howtoforge.net/traditional_dns_howto


Nice link - thanks.

Steve
http://www.fivetrees.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-16-2008, 07:23 AM
Seeker
 
Posts: n/a
Default Re: DNS zone transfers - which port?

Steve at fivetrees wrote:

> Re open DNS lookups - I've turned off external recursive DNS, as generally
> recommended. Is this the same thing?


Allowing recursive queries allows someone to lookup another domain
through your server, which shouldn't be necessary for the public unless
you're an ISP (although a surprising number of servers are misconfigured
this way).

Allowing zone xfers is something different. If you don't restrict zone
xfers someone can get a lot of information about hosts in your domain.
Some are misconfigured to show non-routable, internal hosts, which
allows for a form of network enumeration.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:08 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com