ypserv/named interaction problem on Sun-4 (Sun-3 works fine)

P. Allen Jensen jensen%bessel at gatech.edu
Sat Jun 17 07:58:53 AEST 1989


We have found that yp and named seem to have a problem on a Sun-4/260
running SunOS 4.0.1 and that the same configuration on a Sun-3/60 running
SunOS 4.0.1 works fine.  The only difference as far as yp and named go is
that the Sun-4 is a yp Master Server and the Sun-3 is a yp Slave Server
(master is the Sun-4).  So both should be using the exact same YP
database.  I have include all the information I can think of.  Could
someone at Sun respond to this ?

===============================================================================

ypinit is started as   "ypinit -i"
I used the "-b" switch on makedbm on the Sun-4
All yp databases are up-to-date and match on the Sun-3 and Sun-4
I have used nslookup with no problems on both the Sun-3 and Sun-4
"trace ping prep.ai.mit.edu" works fine on the Sun-3
"trace ping prep.ai.mit.edu" keeps failing a socket system call on the
                             Sun-4 and hangs there.
prep.ai.mit.edu is not in our yp database or in any of our /etc/hosts files.

===============================================================================
domain          eedsp.gatech.edu
nameserver      128.61.1.251
nameserver      128.61.1.1
===============================================================================

===============================================================================
; type          domain                  source file or host
;
domain          eedsp.gatech.edu
secondary       eedsp.gatech.edu        128.61.1.251 128.61.2.6
secondary       gatech.edu              128.61.1.251
cache           .                       /etc/named.ca
primary         0.0.127.in-addr.arpa    /etc/named.local
sortlist        128.61.2.0 128.61.1.0 128.61.0.0

===============================================================================

/etc/named.local is (substitute bessel for sun-3 version,
===============================================================================
@       IN      SOA     gauss.eedsp.gatech.edu. deb at eedsp.gatech.edu. (
                        1       ; Serial
                        3600    ; Refresh
                        300     ; Retry
                        3600000 ; Expire
                        3600 )  ; Minimum
        IN      NS      gauss.eedsp.gatech.edu.
1       IN      PTR     localhost.
===============================================================================

===============================================================================
;
.                       99999999  IN  NS  troll-gw.gatech.edu
                        99999999  IN  NS  gatech.gatech.edu
;       Prep the cache (hotwire the addresses)
troll-gw.gatech.edu.    99999999  IN  A   128.61.1.251
gatech.gatech.edu.      99999999  IN  A   128.61.1.1
===============================================================================

And finally - here is the trace output from the PING up-to the point where
===============================================================================
open ("/usr/lib/ld.so", 0, 010000) = 3
read (3, "".., 32) = 32
mmap (0, 40960, 5, 0x80000002, 3, 0) = 0xf77c0000
mmap (0xf77c8000, 8192, 7, 0x80000012, 3, 32768) = 0xf77c8000
open ("/dev/zero", 0, 07) = 4
close (3) = 0
getrlimit (3, 0xf7fff988) = 0
mmap (0xf7800000, 8192, 3, 0x80000012, 4, 0) = 0xf7800000
getuid () = 0
getgid () = 1
open ("/etc/ld.so.cache", 0, 010000) = 3
fstat (3, 0xf7fff810) = 0
mmap (0, 8192, 1, 0x80000001, 3, 0) = 0xf7780000
close (3) = 0
open ("/usr/lib/libc.so.1.1.1", 0, 0) = 3
read (3, "".., 32) = 32
mmap (0, 327692, 5, 0x80000002, 3, 0) = 0xf7700000
mmap (0xf7748000, 32768, 7, 0x80000012, 3, 294912) = 0xf7748000
mmap (0xf7750000, 8, 7, 0x80000012, 4, 0) = 0xf7750000
close (3) = 0
close (4) = 0
getpagesize () = 8192
brk (0x8818) = 0
brk (0xa820) = 0
open ("/etc/hosts", 0, 0666) = 3
getdomainname ("\n", 256) = 0
getpid () = 987
open ("/var/yp/binding/eedsp.gatech.edu".., 0, 036734076051) = 4
flock (4, 06) = -1 EWOULDBLOCK (Operation would block)
read (4, "".., 2) = 2
close (4) = 0
socket (2, 2, 0) = 4
bind (4, "".., 16) = -1 EADDRINUSE (Address already in use)
close (4) = 0
open ("/var/yp/binding/eedsp.gatech.edu".., 0, 0) = 4
flock (4, 06) = -1 EWOULDBLOCK (Operation would block)
lseek (4, 2, 0) = 2
read (4, "".., 12) = 12
close (4) = 0
gettimeofday (0xf7fff760, 0) = 0
getpid () = 987
socket (2, 2, 17) = 4
getpid () = 987
bind (4, "".., 16) = 0
ioctl (4, 0x8004667e, 0xf7fff72c) = 0
fcntl (4, 02, 0x1) = 0
bind (4, "".., 16) = -1 EINVAL (Invalid argument)
getsockname (4, 0xf7fff7d4, 0xf7fff7f4) = 0
sendto (4, "".., 84, 0, 0x6e20, 16) = 84
getdtablesize () = 64
select (64, 0xf7fff784, 0, 0, 0x6e34) = 1
recvfrom (4, "".., 1600, 0, 0xf7fff770, 0xf7fff780) = 32
getpid () = 987
open ("/var/yp/binding/eedsp.gatech.edu".., 0, 036734076051) = 5
flock (5, 06) = -1 EWOULDBLOCK (Operation would block)
read (5, "".., 2) = 2
close (5) = 0
getsockname (4, 0xf7fff914, 0xf7fff924) = 0
sendto (4, "".., 96, 0, 0x6e20, 16) = 96
select (64, 0xf7fff8b4, 0, 0, 0x6e34) = 0      <************** Sun-3 returns 1
sendto (4, "".., 96, 0, 0x6e20, 16) = 96
===============================================================================

I appreciate the earlier suggestions about using the -b option on named.


P. Allen Jensen
Georgia Tech, School of Electrical Engineering, Atlanta, GA  30332
USENET: ...!{allegra,hplabs,ihnp4,ulysses}!gatech!eedsp!jensen
INTERNET: jensen%eedsp at gatech.edu



More information about the Comp.sys.sun mailing list