Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Oct 2010 16:30:52 +0100
From:      Tom Evans <tevans.uk@googlemail.com>
To:        Ian Smith <smithi@nimnet.asn.au>
Cc:        dougb@freebsd.org, net@freebsd.org
Subject:   Re: strange resolver behavour
Message-ID:  <AANLkTi=FLBtpmnB-08Xxj3=Aqe7k24qPmn0CVB9cFE6J@mail.gmail.com>
In-Reply-To: <20101013010757.N2036@sola.nimnet.asn.au>
References:  <4CB2AF28.30309@rdtc.ru> <20101012152857.X2036@sola.nimnet.asn.au> <AANLkTikKQO%2BjQy=2pNMngdPGaY1AO7Bqwt-Dd0sK1Ufd@mail.gmail.com> <20101013010757.N2036@sola.nimnet.asn.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 12, 2010 at 3:39 PM, Ian Smith <smithi@nimnet.asn.au> wrote:
> On Tue, 12 Oct 2010, Tom Evans wrote:
> =C2=A0> On Tue, Oct 12, 2010 at 10:05 AM, Ian Smith <smithi@nimnet.asn.au=
> wrote:
> =C2=A0> > On Mon, 11 Oct 2010, Eugene Grosbein wrote:
> =C2=A0> > =C2=A0> Hi!
> =C2=A0> > =C2=A0>
> =C2=A0> > =C2=A0> FreeBSD 8.1-STABLE:
> =C2=A0> > =C2=A0>
> =C2=A0> > =C2=A0> # host koin-nkz.com.
> =C2=A0> > =C2=A0> koin-nkz.com has address 62.231.164.101
> =C2=A0> > =C2=A0> Host koin-nkz.com not found: 3(NXDOMAIN)
> =C2=A0> > =C2=A0>
> =C2=A0> > =C2=A0> This domain does not have MX records but NXDOMAIN seems=
 to wrong return
> =C2=A0> > =C2=A0> code to me. Think about MTA that does look-up for MX fi=
rst,
> =C2=A0> > =C2=A0> obtains NXDOMAIN and rejects mail.
> =C2=A0> >
> =C2=A0> > If a domain has no MX server, how's an MTA supposed to do mail =
with it?
> =C2=A0> >
> =C2=A0>
> =C2=A0> The same way as has been done since they invented the MX record t=
ype -
> =C2=A0> if no MX record exists, fallback to an A record. See RFC 5321, se=
ction
> =C2=A0> 5.1.
>
> Well thanks Tom, I did - but which A record?
>
> Taking the '5.3. Master file example' in RFC1035, what is the A response
> for 'ISI.EDU.' where the domain itself has no specific A RR? =C2=A0Would =
it
> be that of VENERA.ISI.EDU, or that of the first A listed, ie A.ISI.EDU?

That domain has an MX record, so it wouldn't do either. When I do a
dig isi.edu, I just get a single A record, so I would assume an SMTP
server would attempt to deliver mail there.

>
> And in either case - assuming a domain without any MX RR as above - why
> would that A response be expected to address a mail server?

Initially, email came about just before people started using DNS, so
mail servers were found using hostnames and directly delivering to the
host.

DNS then came into being, and you could look up a MD or MF record to
find the mail host. This didn't work too well, which is why we MX
records were invented. By that point, people had been relying on mail
servers looking up an A record if MD/MF didn't exist, so the behaviour
was preserved.

>
> cc Doug for obvious reasons, ie I'm likely missing something obvious :)
>
> cheers, Ian
>
> (BTW I'd begun to reply off-list, as neither your private copy nor your
> reply to the list indicated cc'ing the other .. googlemail quaintness?)

No gmail quaintness, PEBKAC. I replied off-list first, meaning to
reply on-list, so I re-sent to list :/

Cheers

Tom



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=FLBtpmnB-08Xxj3=Aqe7k24qPmn0CVB9cFE6J>