9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: arisawa@ar.aichi-u.ac.jp, 9fans@9fans.net
Subject: Re: [9fans] dns failure in smtp
Date: Sun, 24 Aug 2008 08:32:11 -0400	[thread overview]
Message-ID: <81c3dbeae5484ab21859acd28a26c725@quanstro.net> (raw)

assuming that my mxdial.c is up-to-date (sources is
failing in a wierd way), that's not the full story.
mxdial calls callmx.  callmx has this code

static int
callmx(DS *ds, char *dest, char *domain)
{
	int fd, i, nmx;
	char addr[Maxstring];

	/* get a list of mx entries */
	nmx = mxlookup(ds, domain);
	if(nmx < 0){
		/* dns isn't working, don't just dial */
		return -1;
	}
	if(nmx == 0){
		if(debug)
			fprint(2, "mxlookup returns nothing\n");
		return dial(dest, 0, 0, 0);
	}
[...]

so if there is no mx record, the normal address is dialed.
(in this case the check against a returned address of 127.0.0.1
is skipped.  i would think if this check is necessary for mx
records, it is also necessary for a records.  but i can't
see why plan 9 cares.  if you do have a loopback, it's likely
for venti.)

in any event that's not what's happening.  using upas/spf
(it's on sources & submitted) we see that that two mx records
are found rfcmail.nanosouffle.net and sounine.nanosouffle.net:

; upas/spf -d nanosouffle.net 75.58.233.41
dnsquery(/net, nanosouffle.net, txt) ->
	dom	nanosouffle.net
	txt	v=spf1 mx -all
dnsquery(/net, nanosouffle.net, mx) ->
	dom	nanosouffle.net
	pref	1
	mx	rfcmail.nanosouffle.net
	dom	nanosouffle.net
	pref	10
	mx	sounine.nanosouffle.net
dnsquery(/net, rfcmail.nanosouffle.net, any) ->
	dom	rfcmail.nanosouffle.net
	ip	75.58.233.40
dnsquery(/net, sounine.nanosouffle.net, any) ->
	dom	sounine.nanosouffle.net
	ip	75.58.233.41

i would guess that dns cs may be or have been confused.
to eliminate the possibility of continuing confusion,
have you tried

	telnet /net.alt/tcp!sounine.nanosouffle.net!smtp

- erik



             reply	other threads:[~2008-08-24 12:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-24 12:32 erik quanstrom [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-08-24 11:23 Kenji Arisawa
2008-08-24 16:58 ` Dave Eckhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81c3dbeae5484ab21859acd28a26c725@quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    --cc=arisawa@ar.aichi-u.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).