Re: sendmail error, "MX list for mydomain.com points back to server.mydomain.com"

From: <little.analyst892_at_aceecat.org>
Date: Thu, 18 May 2023 23:11:02 UTC
On Thu, May 18, 2023 at 03:36:52PM -0700, vagabond wrote:

> sm_gethostbyname(ns.dreamchaser.org, 28)...
> ;; res_nquerydomain(ns.dreamchaser.org, <Nil>, 1, 28)
> ;; res_query(ns.dreamchaser.org, 1, 28)
> ;; res_nmkquery(QUERY, ns.dreamchaser.org, IN, AAAA)
> ;; res_send()
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19039
> ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
> ;;      ns.dreamchaser.org, type = AAAA, class = IN
> ;; Querying server (# 1) address = 127.0.0.1
> ;; new DG socket
> ;; got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19039
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> ;;      ns.dreamchaser.org, type = AAAA, class = IN
> dreamchaser.org.        10M IN SOA      ns.dreamchaser.org.
> root.dreamchaser.org. (
>                                         2023051708      ; serial
>                                         4H              ; refresh
>                                         1H              ; retry
>                                         1H              ; expiry
>                                         10M )           ; minimum
> 
> ;; rcode = (NOERROR), counts = an:0 ns:1 ar:0
> ;; res_nquerydomain(ns.dreamchaser.org, dreamchaser.org, 1, 28)
> ;; res_query(ns.dreamchaser.org.dreamchaser.org, 1, 28)
> ;; res_nmkquery(QUERY, ns.dreamchaser.org.dreamchaser.org, IN, AAAA)
> ;; res_send()
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45481
> ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
> ;;      ns.dreamchaser.org.dreamchaser.org, type = AAAA, class = IN
> ;; Querying server (# 1) address = 127.0.0.1
> ;; new DG socket
> ;; got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 45481
> 
> It's not clear to me what's going on; I don't see any of those function
> calls like res_nquerydomain in the code.
> Can someone tell me what those are?
> 
> And does the above point a finger anywhere in particular?
> 
> hostname is "ns.dreamchaser.org", set in rc.conf
> 
> dig @127.0.0.1 ns.dreamchaser.org
> dig ns.dreamchaser.org
> nslookup dreamchaser.org
> nslookup ns.dreamchaser.org
> 
> all successfully return the appropriate ip.

Not a complete answer, but all these commands look up the IPv4 address
(ie. the A record), while the debug output is for the IPv6 (AAAA).

-- 
Ian