Date: Fri, 18 Jul 1997 19:35:48 +0200 (CEST) From: Andre Albsmeier <Andre.Albsmeier@mchp.siemens.de> To: freebsd-stable@freebsd.org Subject: libc changes make ypserv unimpossible to resolve hostname Message-ID: <199707181735.TAA00905@curry.mchp.siemens.de>
next in thread | raw e-mail | index | archive | help
Hi, I posted the part below to -hackers but nobody answered me. Maybe this is the right place, since the problem occurs on 2.2-STABLE... Thanks very much -Andre -------------------- post to -hackers ---------------------- Hi, when running "ypserv -n" on 2.2-STABLE it is no longer possible for ypserv to resolve hostnames which are not fully qualified. This is due to a change in lib/libc/net/gethostbydns.c which now returns as h_errno NO_RECOVERY instead of TRY_AGAIN. I have implemented an additional debugline which shows this effect in usr.sbin/ypserv/yp_dnslookup.c. I don't know where it should be changed; in gethostbydns.c or in yp_dnslookup.c... Thanks -Andre --------------------------------------------------------------------------------- running "ypserv -d -n" using NEW lib/libc/net/gethostbydns.c and querying for host "pcauth" on PC-NFS client: root@server:/usr/src/usr.sbin/ypserv>./ypserv -d -n ;; res_setoptions("debug", "env").. ;; debug ypserv: Procedure ypproc_domain called from 192.168.21.143:1500 ypserv: Procedure ypproc_match called from 192.168.21.143:1500 ypserv: Client is referencing map "hosts.byname". ypserv: Looking up key [pcauth] ypserv: Doing DNS lookup of pcauth ;; res_mkquery(0, pcauth, 1, 1) ypserv: Queueing async DNS name lookup (399) ypserv: Running dns queue ypserv: Got dns reply from 192.168.16.33 ypserv: ypserv h_errno = 3 | This is NO_RECOVERY------+ ypserv: Sending dns reply to 192.168.21.143 (399) ypserv: Running dns queue ypserv: Running dns queue --------------------------------------------------------------------------------- running "ypserv -d -n" using OLD lib/libc/net/gethostbydns.c and querying for host "pcauth" on PC-NFS client: root@server:/usr/src/usr.sbin/ypserv>./ypserv -d -n ;; res_setoptions("debug", "env").. ;; debug ypserv: Procedure ypproc_domain called from 192.168.21.143:1500 ypserv: Procedure ypproc_match called from 192.168.21.143:1500 ypserv: Client is referencing map "hosts.byname". ypserv: Looking up key [pcauth] ypserv: Doing DNS lookup of pcauth ;; res_mkquery(0, pcauth, 1, 1) ypserv: Queueing async DNS name lookup (45885) ypserv: Running dns queue ypserv: Got dns reply from 192.168.16.33 ypserv: ypserv h_errno = 2 | This is TRY_AGAIN -------+ ypserv: Retrying with: pcauth.us.tld ;; res_mkquery(0, pcauth.us.tld, 1, 1) ypserv: Running dns queue ypserv: Running dns queue ypserv: Got dns reply from 192.168.16.33 ypserv: Sending dns reply to 192.168.21.143 (45886) ypserv: Running dns queue ypserv: Running dns queue ypserv: Running dns queue ypserv: Procedure ypproc_match called from 192.168.21.143:1500 ypserv: Client is referencing map "hosts.byname". ypserv: Looking up key [printfix.us.tld] ypserv: Doing DNS lookup of printfix.us.tld ;; res_mkquery(0, printfix.us.tld, 1, 1) ypserv: Queueing async DNS name lookup (45887) ypserv: Running dns queue ypserv: Got dns reply from 192.168.16.33 ypserv: Sending dns reply to 192.168.21.143 (45887) g
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707181735.TAA00905>