On Tue, 31.07.12 19:45, jeremyf ([email protected]) wrote:

> Hi all,
> 
> I've got a Linux server running avahi, and a client that manually sends out a 
> simple, hand-rolled mDNS query packet over IPv6 (to ff02::fb) and parses the 
> UDP packets it gets back to discover who is out there.  This all works fine 
> for my purposes, since most of the server software I use speaks IPv6.
> 
> My problem is that there is a particular piece of server software running on 
> the server that is only listening for incoming IPv4 connections -- if I try 
> to connect to that server's port via IPv6, I get "connection refused".
> 
> My first response to this problem would be to fix the server to also listen 
> on IPv6, but unfortunately in this case I'm not allowed to do that.
> 
> My next impulse was to check the mDNS reply packets my client receives, to 
> see if they contain an 'A' record that would tell me the server's IPv4 
> address.  Then my client could make an IPv4 connection to that address.  
> However, the mDNS reply packets I receive don't contain any 'A' records, only 
> an 'AAAA' record.
> 
> So my question is, is there any special flag or something I can put in my 
> mDNS query packet that would convince the Avahi server to include an 'A' 
> record in its response?  Or am I out of luck, and the only solution is to 
> send mDNS query packets via both IPv4 and IPv6?

AFAIR we sent that anyway in the packet in the auxiliary section.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
avahi mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/avahi

Reply via email to