Bug 3590 - Name resolution is not working in the client
: Name resolution is not working in the client
Status: RESOLVED DUPLICATE of bug 4002
Product: Client
Network/Communications
: v2.900x
: All Linux
: Hi critical
Assigned To: Bugzilla default bug owner
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-02-14 04:10 UTC by Brian Krahmer
Modified: 2009-01-04 22:51 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Krahmer 2004-02-14 04:10:32 UTC
I'm running Fedora Core 1 test on an Athlon 64 3400+ running at 2255 MHz.
dig & ping us.v29.distributed.net works just fine from the command line.

However, dnetc -fetch returns:
[Feb 14 04:07:27 UTC] Net::failed to resolve name "us.v29.distributed.net"
                      ENOENT: no entry for requested name
[Feb 14 04:07:27 UTC] Network update is currently not available.
[Feb 14 04:07:27 UTC] Buffer fetch failed.

dnetc v2.9007-486-CFR-03110903 for Linux (Linux 2.4.22-1.2135.nptl).

It looks like I won't be able to submit any blocks from this machine until this
is fixed... :(
Comment 1 Steven Nikkel 2004-02-14 04:15:09 UTC
The client uses the 'host' command to resolve name lookups, check to see if 
that is working properly.
Comment 2 Brian Krahmer 2004-02-14 04:21:16 UTC
Yes, it seems to.

[root@localhost bin]# host us.v29.distributed.net
us.v29.distributed.net has address 204.152.189.166
us.v29.distributed.net has address 65.112.245.232
us.v29.distributed.net has address 128.104.18.148
Comment 3 Ted Anderson 2004-02-15 13:19:49 UTC
These seems to be a bug I've commented on before, although I can't find the
original. On Mandrake 9.1 and now 9.2, the resolv.conf file is rewritten at
every boot up to put 127.0.0.1 above the other DNS entries. This causes the
error you mentioned in dnetc v2.9005-483-CFR-03032617 for Linux (Linux
2.4.22-10mdk). Changing the resolv.conf fixes the problem until the next reboot.
Comment 4 Knut Pfefferkorn 2004-03-31 14:15:36 UTC
please test the new client v2.9007.489 from pre-release page

http://www1.distributed.net//download/prerelease.php

there are major changes which should fix the resolver problems.
Comment 5 Jason Dove 2004-05-31 19:44:55 UTC
This issue still occurs with the new client MDK 10.  Though it's X86, it's the
same bug.

dnetc v2.9008-490-CFR-04042310 for Linux (Linux 2.6.3-7mdk).

The original bug I raised that Ted mentioned in his post:
http://bugs.distributed.net/show_bug.cgi?id=3234
Comment 6 steven tardy 2004-07-13 22:39:56 UTC
i also had this problem with mandrake 10 and dnet version:
dnetc v2.9005-483-CFR-03032617 for Linux (Linux 2.6.3-7mdksmp).
(as a temporary fix i would just run:
      dnetc -a xxx.xxx.xxx.xxx
)

it seems to work correctly after updating to the newer dnet version:
dnetc v2.9008-490-CFR-04042310 for Linux (Linux 2.6.3-7mdksmp).
Comment 7 Ricky Beam 2004-07-14 02:15:08 UTC
dnetc v2.9007-486-CFR-03110904 for Linux (Linux 2.6.8-SMP-rc1+BK@1.1416).

It works only if nscd is enabled and a link to correct socket file is made at 
the old location... /var/run/nscd/socket is where it lives on FC2.  Without 
nscd, the client does everything it's supposed except actually making a DNS 
query. (resolv.conf and nsswitch.conf are consulted and the correct libnss 
libraries load)
Comment 8 Gabriel Matthews 2005-02-11 20:19:11 UTC
For what it's worth, on my redhat8 machines, I did not have 'bind' installed. 
I
did 'up2date install bind' and this installed the 'host' command, allowing me
to
flush my buffers.

Maybe a fix would be a dependency check for 'bind' or the 'host' command before
building?

Gabriel
Comment 9 R. Pao 2005-05-27 14:15:31 UTC
http://n0cgi.distributed.net/faq/cache/43.html

The above FAQ-o-Matic states the following:

"More recently, starting in v2.9008-490 the Linux client is now statically
compiled with ucLibc (instead of glibc) and no longer has any dependencies on
the "host" utility. The only requirement is that your /etc/resolv.conf be
properly configured with valid nameservers."

This does not appear to be the case:

rpao@ca810e:~/bin/distributed.net/dnetc491-linux-x86-elf$ ping
us.v29.distributed.net -c 1
PING us.v29.distributed.net (128.104.18.148) 56(84) bytes of data.
64 bytes from speed.doit.wisc.edu (128.104.18.148): icmp_seq=1 ttl=51 time=66.1
ms

--- us.v29.distributed.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 66.189/66.189/66.189/0.000 ms
rpao@ca810e:~/bin/distributed.net/dnetc491-linux-x86-elf$ ./dnetc -update       
distributed.net client for Linux Copyright 1997-2004, distributed.net
Please visit http://www.distributed.net/ for up-to-date contest information.


dnetc v2.9008-491-CFR-04052900 for Linux (Linux 2.6.11.7-chw-3).
Please provide the *entire* version descriptor when submitting bug reports.
The distributed.net bug report pages are at http://www.distributed.net/bugs/
Using email address (distributed.net ID) 'rpao-distributed.net@paonet.org'

[May 27 14:01:04 UTC] Net::failed to resolve name "us.v29.distributed.net"
                      ENOENT: No such file or directory
                      Perhaps the 'host' command was not found?
[May 27 14:01:04 UTC] Network update is currently not available.
[May 27 14:01:04 UTC] Buffer update failed.
rpao@ca810e:~/bin/distributed.net/dnetc491-linux-x86-elf$ host
us.v29.distributed.net
-bash: host: command not found

It could be argued that installing Bind/host would solve this problem; however,
I am unwilling to modify this KnoppMyth R5A15 box more than I have to.  I wipe
it every few months.  Besides, the FAQ says 'host' is not called anyway for the
client version I am using.
Comment 10 Mike Reed 2007-12-09 18:32:15 UTC
This bug is recurring in systems running Ubuntu 7.10.

Reported by tiogshi:
[tiogshi@neptune ~/.dnet]$ ./dnetc

distributed.net client for Linux Copyright 1997-2005, distributed.net
Please visit http://www.distributed.net/ for up-to-date contest information.

dnetc v2.9011-496-CFR-05060814 for Linux (Linux 2.6.22-14-generic).
Please provide the *entire* version descriptor when submitting bug reports.
The distributed.net bug report pages are at http://www.distributed.net/bugs/
Using email address ( distributed.net ID) <>

[Nov 16 21:10:00 UTC] Automatic processor detection found 2 processors.
[Nov 16 21:10:00 UTC] Loading crunchers with work...
[Nov 16 21:10:00 UTC] Attempting to resolve 'us.v29.distributed.net'...Floating
point exception (core dumped)

Also reported by arafnord:

dnetc v2.9011-496-CFR-05060814 for Linux (Linux 2.6.22-14-rt).
[Dec 09 15:54:29 UTC] Attempting to resolve
'euro.v29.distributed.net'...Floating point exception (core dumped)
Comment 11 Mike Reed 2007-12-10 20:07:48 UTC
Arafnord has reported that removing the libnss-mdns (multicast dns) library has
fixed the problem he was experiencing running dnetc on Ubuntu 7.10.

The command for this is:-
sudo aptitude remove libnss-mdns
Comment 12 Eugene Varnavsky 2007-12-23 09:02:59 UTC
Seems to be amd64 compiler incompatibility issue, due to dnetc is shipped as a
binary. Workaround is to remove libnss-mdns package if you don't need it.

Here is the link to Ubuntu bugzilla entry:
https://bugs.edge.launchpad.net/debian/+source/distributed-net/+bug/134056
Comment 13 Mike Reed 2008-12-30 00:57:25 UTC

*** This bug has been marked as a duplicate of 4002 ***
Comment 14 Andreas Beckmann 2009-01-04 22:51:10 UTC
*** Bug 4041 has been marked as a duplicate of this bug. ***