Bug 672982

Summary: xchat fails to reverse resolve IPV6 addresses
Product: Red Hat Enterprise Linux 6 Reporter: Travis Gummels <tgummels>
Component: xchatAssignee: Jonathan Blandford <jrb>
Status: CLOSED NOTABUG QA Contact: desktop-bugs <desktop-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: ddumas
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-26 21:58:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Travis Gummels 2011-01-26 21:45:58 UTC
Description of problem:

when you are in a channel and you look at the list of users it does a reverse resolution of the names of the hosts that you are connecting from for IPv4 addresses. For example on one channel that I'm on:

~grondo.dsl.speakeasy.net

however if you connect via an IPv6 address then this doesn't work:

~ben@2001:470:1f0f:417:226:c6ff:fea1:c1c8

the problem is not that the resolution fails, the reverse DNS works:

[ben@localhost rhel6]$ host 2001:470:1f0f:417:226:c6ff:fea1:c1c8
8.c.1.c.1.a.e.f.f.f.6.c.6.2.2.0.7.1.4.0.f.0.f.1.0.7.4.0.1.0.0.2.ip6.arpa domain name pointer snog.bencoyote.net.
[ben@localhost rhel6]$ dig -x 2001:470:1f0f:417:226:c6ff:fea1:c1c8

; <<>> DiG 9.7.0-P2-RedHat-9.7.0-5.P2.el6_0.1 <<>> -x 2001:470:1f0f:417:226:c6ff:fea1:c1c8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56960
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 9

;; QUESTION SECTION:
;8.c.1.c.1.a.e.f.f.f.6.c.6.2.2.0.7.1.4.0.f.0.f.1.0.7.4.0.1.0.0.2.ip6.arpa. IN PTR

;; ANSWER SECTION:
8.c.1.c.1.a.e.f.f.f.6.c.6.2.2.0.7.1.4.0.f.0.f.1.0.7.4.0.1.0.0.2.ip6.arpa. 86086 IN PTR snog.bencoyote.net.

;; AUTHORITY SECTION:
0.7.4.0.1.0.0.2.ip6.arpa. 10486 IN NS ns2.he.net.
0.7.4.0.1.0.0.2.ip6.arpa. 10486 IN NS ns3.he.net.
0.7.4.0.1.0.0.2.ip6.arpa. 10486 IN NS ns4.he.net.
0.7.4.0.1.0.0.2.ip6.arpa. 10486 IN NS ns5.he.net.
0.7.4.0.1.0.0.2.ip6.arpa. 10486 IN NS ns1.he.net.

;; ADDITIONAL SECTION:
ns1.he.net. 63432 IN A 216.218.130.2
ns2.he.net. 63432 IN A 216.218.131.2
ns2.he.net. 63432 IN AAAA 2001:470:200::2
ns3.he.net. 63432 IN A 216.218.132.2
ns3.he.net. 63432 IN AAAA 2001:470:300::2
ns4.he.net. 63432 IN A 216.66.1.2
ns4.he.net. 63432 IN AAAA 2001:470:400::2
ns5.he.net. 63432 IN A 216.66.80.18
ns5.he.net. 63432 IN AAAA 2001:470:500::2

;; Query time: 92 msec
;; SERVER: 10.7.142.20#53(10.7.142.20)
;; WHEN: Tue Jan 25 12:37:01 2011
;; MSG SIZE rcvd: 407

The problem seems to be that xchat doesn't bother to do the reverse lookup.

Version-Release number of selected component (if applicable):

xchat-2.8.8-1.el6.x86_64

How reproducible:

Use xchat across an IPV6 net connected to an IPV6 enabled irc server.

Actual results:

reverse resolution fails

Expected results:

reverse resolution succeeds 

Additional info: