localhost does not resolve

These are old archives. They are kept for historic purposes only.
Post Reply
FireFly
Posts: 5
Joined: Thu Dec 16, 2004 11:32 pm

localhost does not resolve

Post 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.
Last edited by FireFly on Fri Dec 17, 2004 6:21 pm, edited 1 time in total.
FireFly
Posts: 5
Joined: Thu Dec 16, 2004 11:32 pm

Post by FireFly »

I got the services to run without the localhost hostname resolved. But its still strange that it doesn't resolve localhost.
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: localhost does not resolve

Post 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.
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Re: localhost does not resolve

Post 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 .
FireFly
Posts: 5
Joined: Thu Dec 16, 2004 11:32 pm

Post 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.
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post 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.
-- codemastr
FireFly
Posts: 5
Joined: Thu Dec 16, 2004 11:32 pm

Post 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.
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Well then the problem is that you have no link {} for your services server.
-- codemastr
FireFly
Posts: 5
Joined: Thu Dec 16, 2004 11:32 pm

Post 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.
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post 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.
-- codemastr
Post Reply