hi all!

i'm using RH 6.0 with kernel 2.2.14,
glibc 2.1.1, bind-8.2-6. 

i tried to make a ppp link for internet coenctivity.
the ppp link was ok but i couldn't resolve names 
within lynx, netscape or LAN. 

the problem seems to be at dnsquery.

when i call dnsquery in DEBUG mode it can talk to nameservers and
give results, but a simple call fails. I had to make it seem that
dnsquery is called normally but, in fact, is called in debug mode
( a script named dnsquery which calls the original program with 
  -d option and rest of arguments.... ). From that point my ppp 
link gives internet conectivity in LAN !!! 

I configured some time ago a similar RH 6.0 system and that 
problem didn't appeared. 
So, I'm asking you, why this problem ?

Software environment:
(i attached to this mail my configs so you can take a look )
 and some strace outputs from dnsquery runs )

 - resolv.conf
 - nsswitch.conf
 - host.conf
 - outputs from route, ifconfig, ldconfig
 - outputs from strace for dnsquery run w/o debug option !

TAKE A LOOK at dnsquery without debug !
it doesn't EVEN OPEN resolv.conf !!!!

why ldconfig gives me those messages, how can i get rid 
of them and what does it mean "SONAME" ( i found some 
vague explanations about this... )  ?? 

TIA for any help!

C-ya,
Cristian POP
-----------------------------------------------
order hosts, bind
multi on
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
#       nisplus or nis+         Use NIS+ (NIS version 3)
#       nis or yp               Use NIS (NIS version 2), also called YP
#       dns                     Use DNS (Domain Name Service)
#       files                   Use the local files
#       db                      Use the local database (.db) files
#       compat                  Use NIS on compat mode
#       [NOTFOUND=return]       Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files nisplus nis
shadow:     files nisplus nis
group:      files nisplus nis

#hosts:     db files nisplus nis dns
#hosts:     files nisplus nis dns
hosts:      files dns nisplus nis
# hosts:      dns

services:   nisplus [NOTFOUND=return] files
networks:   nisplus [NOTFOUND=return] files
protocols:  nisplus [NOTFOUND=return] files
rpc:        nisplus [NOTFOUND=return] files
ethers:     nisplus [NOTFOUND=return] files
netmasks:   nisplus [NOTFOUND=return] files     
bootparams: nisplus [NOTFOUND=return] files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

search dntcj.ro
nameserver 193.226.99.17
nameserver 193.226.99.18

eth0      Link encap:Ethernet  HWaddr 00:C0:DF:E0:99:1A  
          inet addr:192.168.41.200  Bcast:192.168.41.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4249 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4480 errors:0 dropped:0 overruns:0 carrier:0
          collisions:1 txqueuelen:100 
          Interrupt:11 Base address:0xe000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:194.102.147.114  P-t-P:193.226.99.7  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
193.226.99.7    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.41.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         193.226.99.7    0.0.0.0         UG    0      0        0 ppp0

#ldconfig -Dv


ldconfig: version 1999-02-21
/usr/i486-linux-libc5/lib:
ldconfig: warning: /usr/i486-linux-libc5/lib/libform.so.1.9.9e has inconsistent soname 
(libform.so.3.0)
ldconfig: warning: /usr/i486-linux-libc5/lib/libmenu.so.1.9.9e has inconsistent soname 
(libmenu.so.3.0)
ldconfig: warning: /usr/i486-linux-libc5/lib/libncurses.so.1.9.9e has inconsistent 
soname (libncurses.so.3.0)
ldconfig: warning: /usr/i486-linux-libc5/lib/libpanel.so.1.9.9e has inconsistent 
soname (libpanel.so.3.0)
        libz.so.1 => libz.so.1.0.4
......................................
/usr/lib:
ldconfig: warning: /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so has inconsistent soname 
(libstdc++-libc6.1-1.so.2)
        libz.so.1 => libz.so.1.1.3
.......................................
/lib:
ldconfig: warning: /lib/ld-2.1.1.so has inconsistent soname (ld-linux.so.2)
ldconfig: warning: /lib/libBrokenLocale-2.1.1.so has inconsistent soname 
(libBrokenLocale.so.1)
ldconfig: warning: /lib/libNoVersion-2.1.1.so has inconsistent soname 
(libNoVersion.so.1)
ldconfig: warning: /lib/libc-2.1.1.so has inconsistent soname (libc.so.6)
ldconfig: warning: /lib/libcrypt-2.1.1.so has inconsistent soname (libcrypt.so.1)
ldconfig: warning: /lib/libdb-2.1.1.so has inconsistent soname (libdb.so.3)
ldconfig: warning: /lib/libdb1-2.1.1.so has inconsistent soname (libdb.so.2)
ldconfig: warning: /lib/libdl-2.1.1.so has inconsistent soname (libdl.so.2)
ldconfig: warning: /lib/libm-2.1.1.so has inconsistent soname (libm.so.6)
ldconfig: warning: /lib/libnsl-2.1.1.so has inconsistent soname (libnsl.so.1)
ldconfig: warning: /lib/libnss1_compat-2.1.1.so has inconsistent soname 
(libnss_compat.so.1)
ldconfig: warning: /lib/libnss1_db-2.1.1.so has inconsistent soname (libnss_db.so.1)
ldconfig: warning: /lib/libnss1_dns-2.1.1.so has inconsistent soname (libnss_dns.so.1)
ldconfig: warning: /lib/libnss1_files-2.1.1.so has inconsistent soname 
(libnss_files.so.1)
ldconfig: warning: /lib/libnss1_nis-2.1.1.so has inconsistent soname (libnss_nis.so.1)
ldconfig: warning: /lib/libnss_compat-2.1.1.so has inconsistent soname 
(libnss_compat.so.2)
ldconfig: warning: /lib/libnss_db-2.1.1.so has inconsistent soname (libnss_db.so.2)
ldconfig: warning: /lib/libnss_dns-2.1.1.so has inconsistent soname (libnss_dns.so.2)
ldconfig: warning: /lib/libnss_files-2.1.1.so has inconsistent soname 
(libnss_files.so.2)
ldconfig: warning: /lib/libnss_hesiod-2.1.1.so has inconsistent soname 
(libnss_hesiod.so.2)
ldconfig: warning: /lib/libnss_nis-2.1.1.so has inconsistent soname (libnss_nis.so.2)
ldconfig: warning: /lib/libnss_nisplus-2.1.1.so has inconsistent soname 
(libnss_nisplus.so.2)
ldconfig: warning: /lib/libpthread-0.8.so has inconsistent soname (libpthread.so.0)
ldconfig: warning: /lib/libresolv-2.1.1.so has inconsistent soname (libresolv.so.2)
ldconfig: warning: /lib/librt-2.1.1.so has inconsistent soname (librt.so.1)
ldconfig: warning: /lib/libutil-2.1.1.so has inconsistent soname (libutil.so.1)
        libproc.so.2.0.0 => libproc.so.2.0.0
        libncp.so.2 => libncp.so.2.2.0
...........................
execve("/usr/bin/dnsquery", ["dnsquery", "www.dntcj.ro"], [/* 20 vars */]) = 0
brk(0)                                  = 0x8081298
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=0, st_size=0, ...})   = 0
mmap(0, 15427, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
fstat(3, {st_mode=0, st_size=0, ...})   = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 974392, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40018000
mprotect(0x400fe000, 32312, PROT_NONE)  = 0
mmap(0x400fe000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe5000) = 
0x400fe000
mmap(0x40103000, 11832, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 
0) = 0x40103000
close(3)                                = 0
munmap(0x40014000, 15427)               = 0
personality(PER_LINUX)                  = 0
getpid()                                = 1964
uname({sys="Linux", node="compasx.dntcj.ro", ...}) = 0
close(0)                                = 0
write(2, "Query failed (h_errno = 2) : Hos"..., 54Query failed (h_errno = 2) : Host 
name lookup failure
) = 54
_exit(-1)                               = ?
execve("/usr/bin/dnsquery", ["dnsquery", "-d", "www.dntcj.ro"], [/* 20 vars */]) = 0
brk(0)                                  = 0x8081298
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=0, st_size=0, ...})   = 0
mmap(0, 15427, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
fstat(3, {st_mode=0, st_size=0, ...})   = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 974392, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40018000
mprotect(0x400fe000, 32312, PROT_NONE)  = 0
mmap(0x400fe000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe5000) = 
0x400fe000
mmap(0x40103000, 11832, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 
0) = 0x40103000
close(3)                                = 0
munmap(0x40014000, 15427)               = 0
personality(PER_LINUX)                  = 0
getpid()                                = 1961
uname({sys="Linux", node="compasx.dntcj.ro", ...}) = 0
gettimeofday({950776550, 781866}, NULL) = 0
getpid()                                = 1961
brk(0)                                  = 0x8081298
brk(0x8081360)                          = 0x8081360
brk(0x8082000)                          = 0x8082000
open("/etc/resolv.conf", O_RDONLY)      = 3
fstat(3, {st_mode=0, st_size=0, ...})   = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
read(3, "search dntcj.ro\nnameserver 127."..., 4096) = 87
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40014000, 4096)                = 0
fstat(1, {st_mode=0, st_size=0, ...})   = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 
16) = 0
send(3, "[f\1\0\0\1\0\0\0\0\0\0\3www\5dnt"..., 30, 0) = 30
select(4, [3], NULL, NULL, {5, 0})      = 1 (in [3], left {5, 0})
recvfrom(3, 0xbfffd8e4, 8192, 0, 0xbfffca40, 0xbfffc9a4) = -1 ECONNREFUSED (Connection 
refused)
close(3)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
sendto(3, "[f\1\0\0\1\0\0\0\0\0\0\3www\5dnt"..., 30, 0, {sin_family=AF_INET, 
sin_port=htons(53), sin_addr=inet_addr("193.226.99.17")}, 16) = 30
select(4, [3], NULL, NULL, {5, 0})      = 1 (in [3], left {4, 730000})
recvfrom(3, "[f\205\200\0\1\0\1\0\2\0\2\3www\5"..., 8192, 0, {sin_family=AF_INET, 
sin_port=htons(53), sin_addr=inet_addr("193.226.99.17")}, [16]) = 129
close(3)                                = 0
write(1, ";; res_nquerydomain(www.dntcj.ro"..., 1142;; res_nquerydomain(www.dntcj.ro, 
<Nil>, 1, 255)
;; res_query(www.dntcj.ro, 1, 255)
;; res_nmkquery(QUERY, www.dntcj.ro, IN, ANY)
;; res_send()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23398
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;;      www.dntcj.ro, type = ANY, class = IN
;; Querying server (# 1) address = 127.0.0.1
;; Querying server (# 2) address = 193.226.99.17
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23398
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;;      www.dntcj.ro, type = ANY, class = IN
www.dntcj.ro.           1W IN A         193.226.99.17
dntcj.ro.               1W IN NS        scentra.dntcj.ro.
dntcj.ro.               1W IN NS        mozart.dntcj.ro.
scentra.dntcj.ro.       1W IN A         193.226.99.17
mozart.dntcj.ro.        1W IN A         193.226.99.18
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23398
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;;      www.dntcj.ro, type = ANY, class = IN
www.dntcj.ro.           1W IN A         193.226.99.17
dntcj.ro.               1W IN NS        scentra.dntcj.ro.
dntcj.ro.               1W IN NS        mozart.dntcj.ro.
scentra.dntcj.ro.       1W IN A         193.226.99.17
mozart.dntcj.ro.        1W IN A         193.226.99.18
) = 1142
munmap(0x40014000, 4096)                = 0
_exit(0)                                = ?

Reply via email to