Page 1 of 1
localhost does not resolve
Posted: Thu Dec 16, 2004 11:42 pm
by FireFly
I cant get any service to work because Unreal doesnt resolve localhost to 127.0.0.1.
Code: Select all
00:34 -!- Irssi: Looking up localhost
00:34 -!- Irssi: Connecting to localhost [127.0.0.1] port 6667
00:34 -!- Irssi: Connection to localhost established
00:34 !public.hostname.XXX *** Looking up your hostname...
00:34 !public.hostname.XXX *** Couldn't resolve your hostname; using
your IP address instead
Or
Code: Select all
debug: Received: :public.hostname.XXX NOTICE AUTH :*** Looking up your hostname...
debug: Received: :public.hostname.XXX NOTICE AUTH :*** Couldn't resolve your hostname; using your IP address instead
debug: Received: :public.hostname.XXX 451 CAPAB :You have not registered
unknown message from server (:public.hostname.XXX 451 CAPAB :You have not registered)
debug: Received: ERROR :Link denied (No matching link configuration) [@127.0.0.1.49007]
EDIT: Dont minde de CAPAB error, i was using the wrong version of anope. The unreal compillled version gave same error except for the CAPAB error.
Dns is working fine on the server:
host localhost -> 127.0.0.1
host 127.0.0.1 -> localhost
host public -> public_ip
It works fine with other irc servers, only unreal doesnt resolve localhost.
I checked the faq and buglist, but appart from some basic dns server and resolv.conf stuff I didn't find anything usefull. I posted in support because its not only a services problem, it want to use localhost anyway.
Posted: Fri Dec 17, 2004 12:45 am
by FireFly
I got the services to run without the localhost hostname resolved. But its still strange that it doesn't resolve localhost.
Re: localhost does not resolve
Posted: Fri Dec 17, 2004 2:11 am
by Syzop
FireFly wrote:I cant get any service to work because Unreal doesnt resolve localhost to 127.0.0.1.
Code: Select all
00:34 -!- Irssi: Looking up localhost
00:34 -!- Irssi: Connecting to localhost [127.0.0.1] port 6667
00:34 -!- Irssi: Connection to localhost established
00:34 !public.hostname.XXX *** Looking up your hostname...
00:34 !public.hostname.XXX *** Couldn't resolve your hostname; using
your IP address instead
--snip--
Did you actually whois yourself after that? I would be surprised if it doesn't say 'localhost' then, since localhost is hardcoded in the ircd which means it will still work even if your DNS server is down!
If it doesn't say localhost there, then you probably want to report it on
http://bugs.unrealircd.org.
Also, I don't understand your services-thing, just FYI: you cannot use hostnames in link::hostname unless for outgoing links, this is because no dns lookups are done for incoming servers, see
Docs: 4.31 - Link Block, so just use 127.0.0.1.
Re: localhost does not resolve
Posted: Fri Dec 17, 2004 5:26 am
by aquanight
FireFly wrote:Code: Select all
debug: Received: :public.hostname.XXX 451 CAPAB :You have not registered
unknown message from server (:public.hostname.XXX 451 CAPAB :You have not registered)
Unrelated, but I think you have anope/whatever compiled for the wrong ircd ;P .
Posted: Fri Dec 17, 2004 3:47 pm
by FireFly
I was using the wrong anope version in the example (oops), but I had the good version installed in an other dir. Services are working now. (I had to change hostname in link {} to 127.0.0.1 and it worked)
Here is the irssi output:
Code: Select all
16:42 -!- Irssi: Looking up localhost
16:42 -!- Irssi: Connecting to localhost [127.0.0.1] port 6667
16:42 -!- Irssi: Connection to localhost established
16:42 !host.student.utwente.nl *** Looking up your hostname...
16:42 !host.student.utwente.nl *** Couldn't resolve your hostname; using your IP address instead
16:42 -!- Welcome to the FireNet IRC Network bouwe!bouwe@localhost
16:42 -!- Your host is host.student.utwente.nl, running version Unreal3.2.2
16:42 -!- This server was created Thu Dec 16 2004 at 23:01:12 CET
16:42 -!- host.student.utwente.nl Unreal3.2.2 iowghraAsORTVSxNCWqBzvdHtGp lvhopsmntikrRcaqOALQbSeKVfMGCuzNT
16:42 -!- CMDS=KNOCK,MAP,DCCALLOW,USERIP SAFELIST HCN MAXCHANNELS=10 CHANLIMIT=#:10 MAXLIST=b:60,e:60 NICKLEN=30 CHANNELLEN=32 TOPICLEN=307 KICKLEN=307
AWAYLEN=307 MAXTARGETS=20 WALLCHOPS are supported by this server
16:42 -!- WATCH=128 SILENCE=15 MODES=12 CHANTYPES=# PREFIX=(qaohv)~&@%+ CHANMODES=be,kfL,l,psmntirRcOAQKVGCuzNSMT NETWORK=FireNet CASEMAPPING=ascii
EXTBAN=~,cqnr ELIST=MNUCT STATUSMSG=~&@%+ EXCEPTS are supported by this server
16:42 -!- There are 8 users and 4 invisible on 2 servers
16:42 -!- 9 operator(s) online
16:42 -!- 1 channels formed
16:42 -!- I have 2 clients and 1 servers
16:42 -!- Current Local Users: 2 Max: 3
16:42 -!- Current Global Users: 12 Max: 12
16:42 -!- MOTD File is missing
16:42 -!- Mode change [+iwx] for user bouwe
16:42 -!- bouwe [bouwe@firenet-68CCA31]
16:42 -!- ircname : Bouwe
16:42 -!- hostname : *@localhost 127.0.0.1
16:42 -!- server : host.student.utwente.nl [Testing Server]
16:42 -!- idle : 0 days 0 hours 0 mins 2 secs [signon: Fri Dec 17 16:42:32 2004]
16:42 -!- End of WHOIS
It works fine except for the strange error message. Everyting is working fine now, but its still a weird error.
Posted: Fri Dec 17, 2004 4:47 pm
by codemastr
Unreal does not support the CAPAB command. If Anope is sending it, it means you compiled Anope wrong. CAPAB is used by other IRCds, so my guess is, as aquanight said, you compiled Anope for the wrong IRCd.
Posted: Fri Dec 17, 2004 6:19 pm
by FireFly
codemastr wrote:Unreal does not support the CAPAB command. If Anope is sending it, it means you compiled Anope wrong. CAPAB is used by other IRCds, so my guess is, as aquanight said, you compiled Anope for the wrong IRCd.
You are totally right! I made the error example with the wrong version of anope, but I was using the right version while testing for real and it gave the same error except of course the CAPAB error. I didn't edit my orginal post because people allready responded to it.
Posted: Fri Dec 17, 2004 6:26 pm
by codemastr
Well then the problem is that you have no link {} for your services server.
Posted: Fri Dec 17, 2004 11:16 pm
by FireFly
codemastr wrote:Well then the problem is that you have no link {} for your services server.
Sorry for being rude while also being a bit of a newbee on this forum, but
CANT YOU READ!
I've said services are working fine multiple times in this thread, For instance check the second post.
Posted: Mon Dec 20, 2004 6:59 pm
by codemastr
yes I can read, and I saw:
debug: Received: ERROR :Link denied (No matching link configuration) [@127.0.0.1.49007]
See the "Link denied" ? Perhaps you need to do a better job of explaining your problem.