This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

DNS initialisation failed.

Discussion of Eggdrop's code and module programming in C.
A
Anargh
Voice
Posts: 2
Joined: Sun Apr 10, 2011 2:01 am
Location: Island
Contact:

DNS initialisation failed.

Post by Anargh »

[01:55:44] Writing user file...
[01:55:44] Writing channel file...
[01:55:44] Restarting ...
[01:55:44] Module unloaded: seen
[01:55:44] Module unloaded: console
[01:55:44] Module unloaded: notes
[01:55:44] Module unloaded: irc
[01:55:44] Module unloaded: ctcp
[01:55:44] <chanstats> saving data (disconnect-server) --> saved (14), discarded (0)
[01:55:44] Module unloaded: server
[01:55:44] Writing channel file...
[01:55:44] Module unloaded: channels
[01:55:44] Listening at telnet port 3123 (all).
[01:55:44] No nameservers defined.
[01:55:44] Can't load modules dns: DNS initialisation failed.

[01:55:44] No longer supporting channel #octa
[01:55:44] Module loaded: channels
[01:55:44] Module loaded: server
Well just check the bold lines >.>
I searched the whole forum about this, but no luck ;/
Anyone can help me out here?
p
pseudo
Halfop
Posts: 88
Joined: Mon Nov 23, 2009 4:52 am
Location: Bulgaria
Contact:

Post by pseudo »

Eggdrop version?
OS version?
A
Anargh
Voice
Posts: 2
Joined: Sun Apr 10, 2011 2:01 am
Location: Island
Contact:

Post by Anargh »

Eggdrop: 1.6.20
OS: OpenBSD 4.8
s
sputnik
Voice
Posts: 20
Joined: Wed Feb 23, 2011 1:16 pm

Post by sputnik »

Same here. I had those errors on openbsd 4.8 and still got those on openbsd 4.9 with eggrdop version 1.6.20. Did you find the solution?
p
pseudo
Halfop
Posts: 88
Joined: Mon Nov 23, 2009 4:52 am
Location: Bulgaria
Contact:

Post by pseudo »

Try 1.8 cvs and report the result.
s
sputnik
Voice
Posts: 20
Joined: Wed Feb 23, 2011 1:16 pm

Post by sputnik »

Where can i download that? I'm getting corrupted tarball from cvs.eggheads.org cvs web.
p
pseudo
Halfop
Posts: 88
Joined: Mon Nov 23, 2009 4:52 am
Location: Bulgaria
Contact:

Post by pseudo »

Click "Download GNU tarball second time, if the first downloads a broken archive. It should work.

Alternatively, it's described here: http://www.eggheads.org/devel/
s
sputnik
Voice
Posts: 20
Joined: Wed Feb 23, 2011 1:16 pm

Post by sputnik »

I've found this one: ftp://ftp.eggheads.org/pub/eggdrop/GNU/ ... hot.tar.gz, hopefully that's the version you're proposing to try. Compiling currently, so i'll let you know the results just after few moments.
s
sputnik
Voice
Posts: 20
Joined: Wed Feb 23, 2011 1:16 pm

Post by sputnik »

Well, at this time start up log changes a little bit:

Code: Select all

[22:04:37] [22:08:08] --- Loading eggdrop v1.8.0+publistennoident (Tue May 17 2011)
[22:08:08] Module loaded: blowfish
[22:08:08] No nameservers found.
[22:08:08] Module loaded: dns
[22:08:08] Module loaded: channels
[22:08:08] Module loaded: server
[22:08:08] Module loaded: ctcp
[22:08:08] Module loaded: irc
[22:08:08] Module loaded: notes            (with lang support)
[22:08:08] Module loaded: console          (with lang support)
[22:08:08] Module loaded: uptime
[/code]
p
pseudo
Halfop
Posts: 88
Joined: Mon Nov 23, 2009 4:52 am
Location: Bulgaria
Contact:

Post by pseudo »

Good. That's what was expected. Now set the dns-servers variable in the config, either using the google ones from the example config or the preferred dns servers from your ISP. Your operating system doesn't provide (or isn't configured properly) a dns server list in the _res structure and that's what requires you to enter them manually.

Code: Select all

set dns-servers "8.8.8.8"
s
sputnik
Voice
Posts: 20
Joined: Wed Feb 23, 2011 1:16 pm

Post by sputnik »

Hm, that didn't help... Neither for 1.6.20 nor 1.8. And i can assure dns is configured properly, as on most *nix based operating systems, there's the only file with the dns servers: /etc/resolv.conf. Anyway, i don't find this is a big problem, since bot is running fine... And i never faced this problem on other OS'es, like debian, centos, freebsd. This error occurs only on openbsd. I'd like it solved, though...
p
pseudo
Halfop
Posts: 88
Joined: Mon Nov 23, 2009 4:52 am
Location: Bulgaria
Contact:

Post by pseudo »

It won't help for 1.6.20, cause it doesn't have the dns-servers variable and it won't even load the dns module. That's why I asked you to try 1.8. And what makes you think it doesn't work on 1.8? If you set the variable after loading the dns module, it will still print the warning message while loading, but as soon as the var is set somewhere in the config file, it will pick it and use the defined servers.

The fact that your bot is running fine with dns.mod loaded confirms this, but just to make sure, can you paste the output of the following partyline command:

Code: Select all

.module dns
s
sputnik
Voice
Posts: 20
Joined: Wed Feb 23, 2011 1:16 pm

Post by sputnik »

1.8 doesn't actually connect to irc server, it starts, shows everything's ok, but doesn't appear on irc. Telnet doesn't work either, even with old user file.
p
pseudo
Halfop
Posts: 88
Joined: Mon Nov 23, 2009 4:52 am
Location: Bulgaria
Contact:

Post by pseudo »

Start it with -n to see what's going on, also make sure the dns-servers variable is set somewhere at the end and has valid server(s)
s
sputnik
Voice
Posts: 20
Joined: Wed Feb 23, 2011 1:16 pm

Post by sputnik »

Code: Select all

[23:14:12] TLS: unable to load own certificate: error:02001002:system library:fopen:No such file or directory
[23:14:12] TLS: unable to load private key: error:20074002:BIO routines:FILE_CTRL:system lib
Post Reply