View Issue Details

IDProjectCategoryView StatusLast Update
0002250unrealircdpublic2005-02-04 20:22
ReporterBock Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
Product Version3.2.2 
Summary0002250: local dns zone resolve failure
DescriptionYou can see, that name and ip resolving is ok, but server doesn't put host name instead of ip address:
D:\>nslookup
Default Server: ircserv.net1
Address: 192.168.1.100

> wax.net1
Server: ircserv.net1
Address: 192.168.1.100

Name: wax.net1
Address: 192.168.1.60

> 192.168.1.60
Server: ircserv.net1
Address: 192.168.1.100

Name: wax.net1
Address: 192.168.1.60


What we have with hybrid server:
Server puts host name instead of ip address
Whois report for kreol (Kreol)
Address: [email protected]
And resolves ip and name
DNS: resolving kreol.net1...
DNS: resolved kreol.net1 to 192.168.1.32
DNS: resolving 192.168.1.32...
DNS: resolved 192.168.1.32 to kreol.net1


And that's what we have on unreal server
DNS: resolving 192.168.1.60...
resolved 192.168.1.60 to wax.net1
DNS: resolving wax.net1
DNS: resolved wax.net1 to 192.168.1.60

You can see, that name and ip resolving is ok, but server doesn't put host name instead of ip address
Whois report for Bock (Nightmare)
Address: [email protected]
When previous zone name was "net-one-lan" everything was fine. But when you connect to server it sends such message
Local host: wax.net (unable to resolve)
or:
Local host: trojan.net (213.130.63.233)
Dns is set up correctly, that's why i think, that trouble is in unreal server.
Steps To Reproducepart of named.conf:

zone "net1"{
       type master;
       file "/etc/bind/net1.dns";
       allow-query { net1; };
       allow-transfer { net1; };
       allow-update { net1; };
};

part of /etc/bind/net1.dns:
$ORIGIN .
$TTL 86400 ; 1 day
net1 IN SOA ircserv.net1. bock.tut.by. (
                                129 ; serial
                                900 ; refresh (15 minutes)
                                600 ; retry (10 minutes)
                                86400 ; expire (1 day)
                                3600 ; minimum (1 hour)
                                )
                        NS ircserv.net1.
$ORIGIN net1.
voron A 192.168.1.82
vovan A 192.168.1.69
wax A 192.168.1.60
woodoo A 192.168.1.59

part of /etc/bind/1.168.192.dns :
$ORIGIN .
$TTL 3600 ; 1 hour
1.168.192.in-addr.arpa IN SOA ircserv.net1. bock.tut.by. (
                                172 ; serial
                                900 ; refresh (15 minutes)
                                600 ; retry (10 minutes)
                                86400 ; expire (1 day)
                                3600 ; minimum (1 hour)
                                )
                        NS ircserv.net1.
$ORIGIN 1.168.192.in-addr.arpa.
1 PTR inetsrv.net1.
60 PTR wax.
                        PTR wax.net1.
$TTL 3600 ; 1 hour
61 PTR moonlightlady.net1.
62 PTR trojan.net1.
63 PTR lynx.net1.


ircserv:~# cat /etc/resolv.conf
search net1
nameserver 192.168.1.100
Additional InformationopenSSL 0.9.7.e
glibc - 2.3.2
zlib 1.2.2
3rd party modules

Activities

syzop

2004-12-21 17:47

administrator   ~0008654

Last edited: 2004-12-21 17:49

Does '/quote dns i' show the correct information (it's taken from /etc/resolv.conf).. If not, did you perhaps modify /etc/resolv.conf without restarting the ircd?

*edit* oh and also try '/quote dns c' (=clear dns cache) and then connecting */edit*

Bock

2004-12-22 06:35

reporter   ~0008655

-n-o-l.bynets.org- Nameserver list has 1 server(s):
-n-o-l.bynets.org- 0. 192.168.1.100
-n-o-l.bynets.org- retrans=5 s, retry=4 times
-n-o-l.bynets.org- Default domain name: net1
-n-o-l.bynets.org- End of info.

-n-o-l.bynets.org- *** Notice -- Bock cleared the DNS cache
-n-o-l.bynets.org- DNS cache cleared
* Disconnected
* Connecting to 192.168.1.100 (+9944)
-n-o-l.bynets.org- *** Looking up your hostname...
-n-o-l.bynets.org- *** Couldn't resolve your hostname; using your IP address instead
-n-o-l.bynets.org- *** If you are having problems connecting due to ping timeouts, please type /quote pong 8B82F93 or /raw pong 8B82F93 now.
::: Welcome to the ByNets IRC Network [email protected]

ircd restarted several times after last resolv.conf modification.

codemastr

2004-12-22 16:53

reporter   ~0008656

Can you connect another user, oper up, then do /mode YOURNICK +s +j? Perhaps that will expose the error message that can show us what is going on.

Bock

2004-12-22 17:40

reporter   ~0008657

nothing happens and no error message.

syzop

2004-12-22 19:18

administrator   ~0008658

Try the following (with 2 clients, 1 stays connected, 1 does the connect thingy):
/quote dns
[now connect another client, NO other clients/servers/.. should (try to) connect during this time]
/quote dns

and paste the results of both quote dns thingies, they will contain some clues of what is going on.

Also, I presume you are not using set::options::dont-resolve or allow::options::useip? Just had to ask ;)

Bock

2004-12-23 12:55

reporter   ~0008666

1-st step:
~19•26•40~ -> Server: dns
~19•26•40~ -n-o-l.bynets.org- Ca 107 Cd 82 Ce 23 Cl 0 Ch 0:247 Cu 247
~19•26•40~ -n-o-l.bynets.org- Re 37 Rl 391/118 Rp 262 Rq 262
~19•26•40~ -n-o-l.bynets.org- Ru 0 Rsh 0 Rs 262(0) Rt 0

2-nd step:
\19:32:21\ -> Server: dns
\19:32:21\ -n-o-l.bynets.org- Ca 108 Cd 82 Ce 23 Cl 0 Ch 0:247 Cu 247
\19:32:21\ -n-o-l.bynets.org- Re 37 Rl 392/119 Rp 264 Rq 264
\19:32:21\ -n-o-l.bynets.org- Ru 0 Rsh 0 Rs 264(0) Rt 0

Yes, I don't using set::options::dont-resolve or allow::options::useip. Just a answer :)

syzop

2004-12-23 14:48

administrator   ~0008669

Judging from the information provided I can say:
- Queries were sent for both reverse dns and hostnames
- Responses were received for both of them
- This means ip->host works, but presumably something is going wrong with resolving host->ip.

I suppose the best way to find this out is recompile the IRCd in debugmode. You can do this by editting include/config.h and change:
/* #undef DEBUGMODE */
to
#define DEBUGMODE
and then run: make clean; make

Then, you should start the ircd with 'src/ircd -x 99', and connect 1 client and quit, and then killall -15 ircd or something...
debug.log should then have been created with loads of info, I suggest mailing it to me at [email protected].

syzop

2005-01-10 14:21

administrator   ~0008757

Just for the record:
I got the debug results but they didn't help much (all seemed fine), then requested shell access but since the box is not connected to the Internet that was not possible.
I don't think we will be able to resolve this bug then.

Issue History

Date Modified Username Field Change
2004-12-21 17:41 Bock New Issue
2004-12-21 17:47 syzop Note Added: 0008654
2004-12-21 17:49 syzop Note Edited: 0008654
2004-12-22 06:35 Bock Note Added: 0008655
2004-12-22 16:53 codemastr Note Added: 0008656
2004-12-22 17:40 Bock Note Added: 0008657
2004-12-22 19:18 syzop Note Added: 0008658
2004-12-23 12:55 Bock Note Added: 0008666
2004-12-23 14:48 syzop Note Added: 0008669
2005-01-10 14:21 syzop Note Added: 0008757
2005-02-04 20:22 syzop Status new => closed