From owner-freebsd-questions Fri Dec 28 17:38:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nms2.ggamaur.net (nms2.ggamaur.net [213.160.40.14]) by hub.freebsd.org (Postfix) with ESMTP id D0B8B37B421 for ; Fri, 28 Dec 2001 17:38:24 -0800 (PST) Received: from merlin (c-213-160-32-54.customer.ggaweb.ch [213.160.32.54]) by nms2.ggamaur.net (8.11.3/8.11.3) with SMTP id fBT1cN342769 for ; Sat, 29 Dec 2001 02:38:24 +0100 (CET) (envelope-from mail@maxlor.com) From: "Maxlor" To: Subject: broken resolver Date: Sat, 29 Dec 2001 02:38:19 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hey, I'm having some problems resolving DNS records. I'll show you: --------------------------------- root@Atlantis~$ host -d google.com ;; res_nmkquery(QUERY, google.com, IN, A) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61479 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; google.com, type = A, class = IN ;; Querying server (# 1) address = 10.0.0.1 ;; new DG socket ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61479 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 0 ;; google.com, type = A, class = IN google.com. 4m8s IN A 216.239.37.100 google.com. 4m8s IN A 216.239.33.100 google.com. 23h59m8s IN NS ns4.google.com. google.com. 23h59m8s IN NS ns1.google.com. google.com. 23h59m8s IN NS ns2.google.com. google.com. 23h59m8s IN NS ns3.google.com. rcode = 0 (Success), ancount=2 google.com has address 216.239.37.100 google.com has address 216.239.33.100 ;; res_nmkquery(QUERY, google.com, IN, MX) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61480 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; google.com, type = MX, class = IN ;; Querying server (# 1) address = 10.0.0.1 ;; new DG socket ;; timeout ;; Querying server (# 1) address = 10.0.0.1 ;; timeout res_nsend failed root@Atlantis~$ host -dt MX google.com ;; res_nmkquery(QUERY, google.com, IN, MX) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24687 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; google.com, type = MX, class = IN ;; Querying server (# 1) address = 10.0.0.1 ;; new DG socket ;; timeout ;; Querying server (# 1) address = 10.0.0.1 ;; timeout res_nsend failed ;; res_nmkquery(QUERY, google.com.intranet, IN, MX) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24688 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; google.com.intranet, type = MX, class = IN ;; Querying server (# 1) address = 10.0.0.1 ;; new DG socket ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 24688 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; google.com.intranet, type = MX, class = IN intranet. 10M IN SOA Atlantis.intranet. postmaster.maxlor.com. ( 2001092701 ; serial 2W ; refresh 1H ; retry 4W ; expiry 5D ) ; minimum rcode = 3 (Non-existent domain), ancount=0 ;; res_nmkquery(QUERY, google.com, IN, MX) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24689 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; google.com, type = MX, class = IN ;; Querying server (# 1) address = 10.0.0.1 ;; new DG socket ;; timeout ;; Querying server (# 1) address = 10.0.0.1 ;; timeout res_nsend failed Host not found, try again. --------------------------------- As you can see, the A record resolve fine, but the MX record results in a timeout. This behaviour appears with all domain names. NS records work fine as well, while eg SOA and PTR result in a timeout again. I'm running: root@Atlantis~$ uname -a FreeBSD Atlantis 4.4-STABLE FreeBSD 4.4-STABLE #3: Thu Oct 4 10:59:17 CEST 2001 ben@Atlantis:/usr/src/sys/compile/ATLANTIS i386 To clear up the confusion, the machine Atlantis has two nics, one connects it to the net, one connects it to my intranet. The internal domain name is "Atlantis.intranet", "intranet" is the TLD. I'm running BIND 9.1.3 on this machine. If I use a DNS server on any other machine from atlantis, it does not work. If i use the same other DNS server from another computer on the internet, it works. This leads me to believe that somehom Atlantis' resolver libraries are broken or something like that. Oh yeah, my resolv.conf, if you think it helps: search intranet nameserver 10.0.0.1 Ok. I really hope you can give me a hint here, as the inability to look up MX records is seriously hampering my ability to send mail... Have a lot of fun, Maxlor To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message