Date: Tue, 8 Feb 2005 16:10:26 +0100 From: Hexren <me@hexren.net> To: "Ted Mittelstaedt" <tedm@toybox.placo.com> Cc: freebsd-questions@freebsd.org Subject: Re[2]: Sendmail host lookup problem (nslookup) Message-ID: <1903017659.20050208161026@hexren.net> In-Reply-To: <LOBBIFDAGNMAMLGJJCKNGEEKFAAA.tedm@toybox.placo.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] >> -----Original Message----- >> From: owner-freebsd-questions@freebsd.org >> [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Hexren >> Sent: Sunday, February 06, 2005 2:49 PM >> To: Ted Mittelstaedt >> Cc: freebsd-questions@freebsd.org >> Subject: Re[2]: Sendmail host lookup problem >> >> >> >> >> >> -----Original Message----- >> >> From: owner-freebsd-questions@freebsd.org >> >> [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Hexren >> >> Sent: Sunday, February 06, 2005 1:46 PM >> >> To: freebsd-questions@freebsd.org >> >> Subject: Sendmail host lookup problem >> >> >> >> >> >> I have a LAN in the 192.168.0 range. I am trying to send mail from >> >> 192.168.0.78 (gc-infra.steenbuck.net) to 192.168.0.29 >> >> (bettchen.steenbuck.net). >> >> This leeds to 550 errors. "Host unknown (Name server: >> >> bettchen.steenbuck.net: host not found)" >> >> >> >> 192.168.0.29 is also acting as my DNS Server. Both machines >> >> have correct (or so I hope) entries in the nameserver. >> >> TM> Either you don't have correct entries in the nameserver, or your >> TM> /etc/resolv.conf on gc-infra is not using 192.168.0.29 as it's >> TM> nameserver. >> >> TM> What is the output of nslookup on gc-infra when you key in >> TM> the bettchen.steenbuck.net name? What is it when you issue >> TM> a "set type=mx" at the nslookup prompt followed by the >> TM> bettchen.steenbuck.net name? What is it when you key in the >> TM> IP number 192.168.0.29? >> >> TM> Ted >> TM> _______________________________________________ >> TM> freebsd-questions@freebsd.org mailing list >> TM> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> TM> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> >> --------------------------------------------- >> >> [gc-infra:~]#nslookup bettchen.steenbuck.net >> Server: 192.168.0.29 >> Address: 192.168.0.29#53 >> TM> This is a problem, the output should read: TM> Server: bettchen.steenbuck.net TM> Address: 192.168.0.29 TM> Name: bettchen.steenbuck.net TM> Address: 192.168.0.29 >> Name: bettchen.steenbuck.net >> Address: 192.168.0.29 >> >> ----------------- >> [gc-infra:~]#nslookup >> > set type=mx >> > bettchen.steenbuck.net >> Server: 192.168.0.29 >> Address: 192.168.0.29#53 >> >> bettchen.steenbuck.net mail exchanger = 10 bettchen.steenbuck.net. >> TM> Here's another possible problem, the output should read: TM> bettchen.steenbuck.net preference=10, mail exchanger = 10 TM> bettchen.steenbuck.net TM> (followed by some glue data) >> ----------------- >> >> [gc-infra:~]#nslookup 192.168.0.29 >> Server: 192.168.0.29 >> Address: 192.168.0.29#53 >> >> 29.0.168.192.in-addr.arpa name = >> bettchen.steenbuck.net.0.168.192.in-addr.arpa. >> TM> name should be bettchen.steenbuck.net, not TM> bettchen.steenbuck.net.0.168.192.in-addr.arpa. TM> Post your zone files in bettchen as well as named.conf TM> Ted --------------------------------------------- sorry for taking so long to provide some files. Anyway I pooked around a bit, looked at some configs a friend provided me with and read a bit more about BIND, did some config cleaning up. And its working now unfortunatly I cannot point to where exactly my error was (note to self do more sleeping). Sendmail is functioning properly :) My machines, except one now produce the output that you said they should (and descriped above). I believe the error with that one machine is rooted in nslookup and not DNS. Interestingly there are 2 nslookup programms in the MAN pages. One in section 1 and one in section 8. http://www.freebsd.org/cgi/man.cgi?query=nslookup&sektion=1&apropos=0&manpath=FreeBSD+5.3-RELEASE+and+Ports http://www.freebsd.org/cgi/man.cgi?query=nslookup&sektion=8&apropos=0&manpath=FreeBSD+5.3-RELEASE+and+Ports All my machines are using the one under section 8. (I think you can tell them apart by looking if they have "help" implemented) Only the one machine that is not producing the right output uses the one from section 1. Anybody nows why this is the way it is, meaning why there are 2 nslookups and by which way you can tell a machine to use one or the other ? (seems pretty strange to me) Thank you Hexren [-- Attachment #2 --] // $FreeBSD: src/etc/namedb/named.conf,v 1.14 2003/02/07 20:58:38 keramida Exp $ // // Refer to the named.conf(5) and named(8) man pages for details. If // you are ever going to set up a primary server, make sure you // understand the hairy details of how DNS works. Even with // simple mistakes, you can break connectivity for affected parties, // or cause huge amounts of useless Internet traffic. options { listen-on { 127.0.0.1; 192.168.0.29; }; directory "/etc/namedb"; pid-file "/var/run/named/pid"; }; // Setting up secondaries is way easier and a rough example for this // is provided below. // // If you enable a local name server, don't forget to enter 127.0.0.1 // first in your /etc/resolv.conf so this server will be queried. // Also, make sure to enable it in /etc/rc.conf. zone "." { type hint; file "named.root"; }; zone "0.0.127.IN-ADDR.ARPA" { type master; file "localhost.rev"; }; zone "steenbuck.net" { type master; notify no; file "steenbuck.net"; }; zone "0.168.192.IN-ADDR.ARPA" { type master; file "192.168.0.rev"; }; // RFC 3152 zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" { type master; file "localhost-v6.rev"; }; // RFC 1886 -- deprecated zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" { type master; file "localhost-v6.rev"; }; [-- Attachment #3 --] ; ; Zone file for steenbuck.net ; ; The full zone file ; $TTL 3D @ IN SOA bettchen.steenbuck.net. root.bettchen.steenbuck.net. ( 199802151 ; serial, todays date + todays serial # 8H ; refresh, seconds 2H ; retry, seconds 4W ; expire, seconds 1D ) ; minimum, seconds ; IN NS bettchen.steenbuck.net. ; Inet Address of name server IN MX 20 bettchen.steenbuck.net. ; Primary Mail Exchanger ; localhost IN A 127.0.0.1 bettchen IN A 192.168.0.29 IN MX 10 bettchen mail IN CNAME bettchen hexren IN A 192.168.0.2 follower IN A 192.168.0.1 x3k6a2-service IN A 192.168.0.5 switch IN A 192.168.0.68 hmobi IN A 192.168.0.79 gc-infra IN A 192.168.0.78 IN MX 10 gc-infra [-- Attachment #4 --] ; ; Zone file for 192.168.0. ; ; The full zone file ; $TTL 3D @ IN SOA ns.steenbuck.net. hostmaster.steenbuck.net. ( 199802151 ; serial, todays date + todays serial # 8H ; refresh, seconds 2H ; retry, seconds 4W ; expire, seconds 1D ) ; minimum, seconds ; NS bettchen.steenbuck.net. ; Inet Address of name server 1 PTR follower.steenbuck.net. 2 PTR hexren.steenbuck.net. 5 PTR x3k6a2-service.steenbuck.net. 29 PTR bettchen.steenbuck.net. 68 PTR switch.steenbuck.net. 79 PTR hmobi.steenbuck.net. 78 PTR gc-infra.steenbuck.net.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1903017659.20050208161026>
