Issue with sendmail -- ip6.arpa queries rejected, ip6.int works.

Dan Mahoney, System Admin danm at prime.gushi.org
Fri Dec 2 21:11:20 UTC 2005


On Sat, 3 Dec 2005, Mark Andrews wrote:

>
>> Hey all --
>>
>> I'm using the same zonefile in my sendmail configs for both ip6.int and
>> ip6.arpa (for the localhost ::1 entry)
>
> 	Upgrade your gethostbyaddr() implementation. bitstring labels were
> 	a pain to work with and were moved to experimental.

No kidding :)

Okay, so a minor bit of research shows that it's an upgrade to glibc 
that's required.  Which under FreeBSD is...ugly, basically means a massive 
upgrade.  Do you know WHEN the move to experimental took place?

-Dan


>
> 	IPv6 now uses nibbles under IP6.ARPA.
>
> 	Mark
>
>> ZONE FILE:
>>
>> ;       From: @(#)localhost.rev 5.1 (Berkeley) 6/30/90
>> ; $FreeBSD: src/etc/namedb/PROTO.localhost-v6.rev,v 1.1.2.1 2002/02/04
>> 18:24:21 ume Exp $
>> ;
>> ; This file is automatically edited by the `make-localhost' script in
>> ; the /etc/namedb directory.
>> ;
>>
>> $TTL    3600
>>
>> @       IN      SOA     prime.gushi.org. root.prime.gushi.org.  (
>>                                 20050512        ; Serial
>>                                 3600    ; Refresh
>>                                 900     ; Retry
>>                                 3600000 ; Expire
>>                                 3600 )  ; Minimum
>>         IN      NS      prime.gushi.org.
>>         IN      PTR     localhost.gushi.org.
>>
>> NAMED.CONF:
>>
>> // RFC 3152
>> zone
>> "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA"
>> {
>>         type master;
>>         file "/etc/namedb/m/localhost-v6.rev";
>> };
>>
>> // RFC 1886 -- deprecated
>> zone
>> "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT"
>> {
>>         type master;
>>         file "/etc/namedb/m/localhost-v6.rev";
>> };
>>
>> Here's what sendmail is telling me:
>>
>> ;; res_query(\[x00000000000000000000000000000001/128].ip6.arpa, 1, 12)
>> ;; res_nmkquery(QUERY,
>> \[x00000000000000000000000000000001/128].ip6.arpa, IN, PTR)
>> ;; res_send()
>> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44856
>> ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
>> ;;	\[x00000000000000000000000000000001/128].ip6.arpa, type = PTR, class
>> = IN
>> ;; Querying server (# 1) address = 127.0.0.1
>> ;; new DG socket
>> ;; wrong query name:
>> ;; ->>HEADER<<- opcode: QUERY, status: FORMERR, id: 44856
>> ;; flags: qr rd; QUERY: 0, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
>>
>> ;; timeout
>> ;; Querying server (# 1) address = 127.0.0.1
>> ;; wrong query name:
>> ;; ->>HEADER<<- opcode: QUERY, status: FORMERR, id: 44856
>> ;; flags: qr rd; QUERY: 0, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
>>
>> ;; timeout
>> ;; res_query: send error
>> ;;
>> res_query(1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6
>> .int,
>> 1, 12)
>> ;; res_nmkquery(QUERY,
>> 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.int,
>> IN, PTR)
>> ;; res_send()
>> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44857
>> ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
>> ;;	1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.int
>> ,
>> type = PTR, class = IN
>> ;; Querying server (# 1) address = 127.0.0.1
>> ;; new DG socket
>> ;; got answer:
>> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44857
>> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
>> ;;	1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.int
>> ,
>> type = PTR, class = IN
>> 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.int.
>>  1H IN PTR  localhost.gushi.org.
>> 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.int.
>>  1H IN NS  prime.gushi.org.
>>
>> Any ideas why?
>>
>> It's bind 9.3.1, FWIW
>>
>>
> --
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org
>

--

"Let me tell you something about regrowing your dead wife Lucy, Harry.
It's probably illegal, potentially dangerous, and definitely crazy."

-Harry nods-

Vincent Spano, as Boris in "Creator".


--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------



More information about the bind-users mailing list