Date: Sat, 29 Dec 2001 02:38:19 +0100 From: "Maxlor" <mail@maxlor.com> To: <freebsd-questions@freebsd.org> Subject: broken resolver Message-ID: <NDBBKGBBKDPDNFIFCJEJMEILCLAA.mail@maxlor.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBKGBBKDPDNFIFCJEJMEILCLAA.mail>