* Re: strace's on Install Buggy [not found] <9610181226.AA07788@scooter> @ 1996-10-18 18:00 ` Marc Singer 0 siblings, 0 replies; 10+ messages in thread From: Marc Singer @ 1996-10-18 18:00 UTC (permalink / raw) > is nslookup SUID? I had a problem caused by /etc/resolv.conf being readable > only by root. Then only SUID programs could find the name server, which > was quite confusing. I don't think it matters. I'm having problems with the rc scripts which are run as root. -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <Pine.LNX.3.93.961017202458.11374B-100000@redhat.com>]
* Re: strace's on Install Buggy [not found] <Pine.LNX.3.93.961017202458.11374B-100000@redhat.com> @ 1996-10-18 6:10 ` Marc Singer 0 siblings, 0 replies; 10+ messages in thread From: Marc Singer @ 1996-10-18 6:10 UTC (permalink / raw) > > We know that the interface works because I can ping. We know that the > > name server will respond to thumper. We know that route works because > > it is OK when not using DNS. Hmm.. > > This seems like a weird thing in ifconfig/route (I've seen hands in > ifconfig as well). I'm not sure I agree. The main difference between ifconfig/route and nslookup is how they gain access to DNS. That is, the problem occurs while accessing the DNS server on florence from ifconfig/route. DNS itself is OK because nslookup works, right? > > > I did an strace on nslookup to see what it is sending to the named on > > florence. The data in the packet does not look the same as the data > > that was sent by route's poll. How can we verify that the libresolv > > is OK? > > does ping <hostname> work? Hmm. I switched back to the original host.conf and tried ping. It works except that I cannot get an strace because the program blows up with a segment violation when I strace strace ping 10.1.2.10 Both 'ping 10.1.2.10' and 'ping florence' work fine. Hmm. There are a couple of other things I'm noticing. I installed emacs without X, but there is no emacs executable. Also, I do not get history support in tcsh. I tried to recompile tcsh, but I still cannot use ^P to get previous commands. Nor does the history command work. Bash, too, does not want to give me history. -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <Pine.LNX.3.93.961017184807.1042C-100000@redhat.com>]
* Re: strace's on Install Buggy [not found] <Pine.LNX.3.93.961017184807.1042C-100000@redhat.com> @ 1996-10-18 0:22 ` Marc Singer 1996-10-18 0:25 ` Erik Troan 0 siblings, 1 reply; 10+ messages in thread From: Marc Singer @ 1996-10-18 0:22 UTC (permalink / raw) > > > No. It may work, but it doesn't really explain the problem. I think > > > I mentioned in my previous message that I can do an nslookup on the > > > given address. > > > > You mean the route command fails and at the _same time_ nslookup > > works? If so, I misunderstood the problem. > > Not necessarily. nslookup doesn't use libc to resolve hostnames, it does > so directly. I have not found docs on nsswitch, so I resorted to editing the host.conf file. I changed the order to be hosts exclusively. And, the machine boots colgate. Now, It is clear that there is something fishy in the way that route and ifconfig do name resolution since nslookup DOES work. If I boot the machine in single user mode, I can use nslookup to resolve the same address that route fails to resolve. Once I changed the hosts file, I was able to use successfully the route command. So, what gives? Have you at RH tested the resolver library? It seems preposterous that I am the first to find this trouble since DNS is so fundamental. We know that the interface works because I can ping. We know that the name server will respond to thumper. We know that route works because it is OK when not using DNS. Hmm.. I did an strace on nslookup to see what it is sending to the named on florence. The data in the packet does not look the same as the data that was sent by route's poll. How can we verify that the libresolv is OK? -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: strace's on Install Buggy 1996-10-18 0:22 ` Marc Singer @ 1996-10-18 0:25 ` Erik Troan 0 siblings, 0 replies; 10+ messages in thread From: Erik Troan @ 1996-10-18 0:25 UTC (permalink / raw) On Thu, 17 Oct 1996, Marc Singer wrote: > So, what gives? Have you at RH tested the resolver library? It seems > preposterous that I am the first to find this trouble since DNS is so > fundamental. The DNS basically works fine. I have an Alpha running 4.0 on my desktop and things work. > We know that the interface works because I can ping. We know that the > name server will respond to thumper. We know that route works because > it is OK when not using DNS. Hmm.. This seems like a weird thing in ifconfig/route (I've seen hands in ifconfig as well). > I did an strace on nslookup to see what it is sending to the named on > florence. The data in the packet does not look the same as the data > that was sent by route's poll. How can we verify that the libresolv > is OK? does ping <hostname> work? Erik ------------------------------------------------------------------------------- Always hoped that I'd be an apostle. Knew that I would make it if I tried. Then when we retire we can write the gospels so they'll all talk about us when we've die. - "The Last Supper" from Jesus Christ Superstar | Erik Troan = http://sunsite.unc.edu/ewt/ = ewt@sunsite.unc.edu | -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: strace's on Install Buggy
@ 1996-10-17 22:38 David Mosberger
1996-10-17 22:48 ` Erik Troan
1996-10-18 12:26 ` Jim Nance
0 siblings, 2 replies; 10+ messages in thread
From: David Mosberger @ 1996-10-17 22:38 UTC (permalink / raw)
> No. It may work, but it doesn't really explain the problem. I think
> I mentioned in my previous message that I can do an nslookup on the
> given address.
You mean the route command fails and at the _same time_ nslookup
works? If so, I misunderstood the problem.
--david
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: strace's on Install Buggy 1996-10-17 22:38 David Mosberger @ 1996-10-17 22:48 ` Erik Troan 1996-10-18 12:26 ` Jim Nance 1 sibling, 0 replies; 10+ messages in thread From: Erik Troan @ 1996-10-17 22:48 UTC (permalink / raw) On Thu, 17 Oct 1996, David Mosberger wrote: > > No. It may work, but it doesn't really explain the problem. I think > > I mentioned in my previous message that I can do an nslookup on the > > given address. > > You mean the route command fails and at the _same time_ nslookup > works? If so, I misunderstood the problem. Not necessarily. nslookup doesn't use libc to resolve hostnames, it does so directly. Erik ------------------------------------------------------------------------------- Always hoped that I'd be an apostle. Knew that I would make it if I tried. Then when we retire we can write the gospels so they'll all talk about us when we've die. - "The Last Supper" from Jesus Christ Superstar | Erik Troan = http://sunsite.unc.edu/ewt/ = ewt@sunsite.unc.edu | -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: strace's on Install Buggy 1996-10-17 22:38 David Mosberger 1996-10-17 22:48 ` Erik Troan @ 1996-10-18 12:26 ` Jim Nance 1 sibling, 0 replies; 10+ messages in thread From: Jim Nance @ 1996-10-18 12:26 UTC (permalink / raw) > > > No. It may work, but it doesn't really explain the problem. I think > > I mentioned in my previous message that I can do an nslookup on the > > given address. > > You mean the route command fails and at the _same time_ nslookup > works? If so, I misunderstood the problem. is nslookup SUID? I had a problem caused by /etc/resolv.conf being readable only by root. Then only SUID programs could find the name server, which was quite confusing. Jim -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: strace's on Install Buggy @ 1996-10-17 19:09 David Mosberger 1996-10-17 22:05 ` Marc Singer 0 siblings, 1 reply; 10+ messages in thread From: David Mosberger @ 1996-10-17 19:09 UTC (permalink / raw) Looking at your strace output, here is what I'm guessing is going on: - the route command attempts to translate the gateways IP address into an IP address (it doesn't know a priori if it's a hostname or an IP address, so it attempts to interpret it as a hostname and if that fails, it attempts to interpret it as a IP address) - there is no /etc/nsswitch.conf, so glibc uses the default settings; if memory serves, it uses "hosts: dns" by default (meaning it will try DNS and DNS only; it won't even look at /etc/hosts) If this guess is right, the problem should go away if you have an /etc/nsswitch.conf that contains the line "hosts: files" line (instead of the more usual "hosts: files dns"). This should make sure that route doesn't attempt to talk DNS. Have you tried this? --david -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: strace's on Install Buggy 1996-10-17 19:09 David Mosberger @ 1996-10-17 22:05 ` Marc Singer 0 siblings, 0 replies; 10+ messages in thread From: Marc Singer @ 1996-10-17 22:05 UTC (permalink / raw) > > Looking at your strace output, here is what I'm guessing is going on: > > - the route command attempts to translate the gateways IP address > into an IP address (it doesn't know a priori if it's a hostname > or an IP address, so it attempts to interpret it as a hostname > and if that fails, it attempts to interpret it as a IP address) Interesting. > - there is no /etc/nsswitch.conf, so glibc uses the default settings; > if memory serves, it uses "hosts: dns" by default (meaning it will > try DNS and DNS only; it won't even look at /etc/hosts) OK. Is this a change from the previous version of RH? > If this guess is right, the problem should go away if you have an > /etc/nsswitch.conf that contains the line "hosts: files" line (instead > of the more usual "hosts: files dns"). This should make sure that route > doesn't attempt to talk DNS. Have you tried this? No. It may work, but it doesn't really explain the problem. I think I mentioned in my previous message that I can do an nslookup on the given address. Yes, I have DNS. I don't use hosts files because I have too much equipment. It may be the case that this wasn't found because the test platform is a standalone computer. I'll try eliminating the nameserver, but that will make the system unusable. It seems to me that the problem must be in the resolver libraries that route is using. -- Marc -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <Pine.LNX.3.93.961017105710.24212J-100000@redhat.com>]
* strace's on Install Buggy [not found] <Pine.LNX.3.93.961017105710.24212J-100000@redhat.com> @ 1996-10-17 18:47 ` Marc Singer 0 siblings, 0 replies; 10+ messages in thread From: Marc Singer @ 1996-10-17 18:47 UTC (permalink / raw) > > On Wed, 16 Oct 1996, Marc Singer wrote: > > > The command that hangs the system is > > > > route add default gw ${GATEWAY} > > Somewhat. An "strace" of that command running would be nice as well. OK. This is the trace for the route command: It seems that it is having problems with the nameserver. Oddly, I can use nslookup just fine. I can ping, and I can hum a short melody. (?!) I did an strace, not included here, on the command ifconfig sl0 127.0.0.1 which hangs, too. I'm not sure what is going on with the domain name service, but I'd guess that this is a request for IP to name translation. When I look at the nslookup command's strace I notice that it does not load libnss_dns.so.1 nor does it use libresolv.so.2. I have no man page for nsswitch.conf and I've not encountered it before. BTW, strace is cool. Enough already? ---------------------------------------------------------------------- execve("/sbin/route", ["route", "add", "default", "gw", "10.1.2.10"], [/* 22 vars */]) = 0 brk(0) = 0x12010a610 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=S_IFREG|0644, st_size=3451, ...}) = 0 mmap(0, 4831836144, PROT_READ, 0 /* MAP_??? */, 0, 0) = 0x15555570000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555572000 munmap(0x15555572000, 8192) = 0 mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555672000 mprotect(0x15555720000, 1308928, PROT_NONE) = 0 mmap(0x15555772000, 1308928, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555772000 mmap(0x15555828000, 1308928, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555828000 close(3) = 0 personality(PER_LINUX) = 0 osf_getsysinfo(0x2d, 0x11ffffc48, 0x11ffffcc8, 0, 0x2) = 0 osf_setsysinfo(0xe, 0x11ffffc48, 0x11ffffcc8, 0, 0x2) = 0 getxpid() = 66 brk(0) = 0x12010a610 brk(0x120110610) = 0x120110610 brk(0x120111000) = 0x120111000 brk(0x120112000) = 0x120112000 open("/etc/nsswitch.conf", O_RDONLY) = -1 ENOENT (No such file or directory) brk(0x120113000) = 0x120113000 brk(0x120114000) = 0x120114000 open("/usr/lib/libnss_dns.so.1", O_RDONLY) = 3 mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555572000 brk(0x120115000) = 0x120115000 munmap(0x15555572000, 8192) = 0 mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555860000 mprotect(0x15555864000, 1045656, PROT_NONE) = 0 mmap(0x15555960000, 1045656, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555960000 close(3) = 0 open("/usr/lib/libresolv.so.2", O_RDONLY) = 3 mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555572000 munmap(0x15555572000, 8192) = 0 mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555964000 mprotect(0x15555974000, 1062083, PROT_NONE) = 0 mmap(0x15555a64000, 1062083, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555a64000 mmap(0x15555a76000, 1062083, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555a76000 close(3) = 0 gettimeofday({845552245, 581456}, NULL) = 0 getxpid() = 66 brk(0x120116000) = 0x120116000 open("/etc/resolv.conf", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=43, ...}) = 0 brk(0x120118000) = 0x120118000 read(3, "search straylight.com\nnameserve"..., 8192) = 43 read(3, "", 8192) = 0 close(3) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 connect(3, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.1.2.10")}, 16) = 0 send(3, "\305h\1\0\0\1\0\0\0\0\0\0\00210\001"..., 27, 0) = 27 select(4, [3], NULL, NULL, {5, 0}) = 0 (Timeout) close(3) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 connect(3, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.1.2.10")}, 16) = 0 send(3, "\305h\1\0\0\1\0\0\0\0\0\0\00210\001"..., 27, 0) = 27 select(4, [3], NULL, NULL, {10, 0} <unfinished ...> ---------------------------------------------------------------------- -- Marc Singer -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~1996-10-18 18:00 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <9610181226.AA07788@scooter>
1996-10-18 18:00 ` strace's on Install Buggy Marc Singer
[not found] <Pine.LNX.3.93.961017202458.11374B-100000@redhat.com>
1996-10-18 6:10 ` Marc Singer
[not found] <Pine.LNX.3.93.961017184807.1042C-100000@redhat.com>
1996-10-18 0:22 ` Marc Singer
1996-10-18 0:25 ` Erik Troan
1996-10-17 22:38 David Mosberger
1996-10-17 22:48 ` Erik Troan
1996-10-18 12:26 ` Jim Nance
-- strict thread matches above, loose matches on Subject: below --
1996-10-17 19:09 David Mosberger
1996-10-17 22:05 ` Marc Singer
[not found] <Pine.LNX.3.93.961017105710.24212J-100000@redhat.com>
1996-10-17 18:47 ` Marc Singer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox