SORT BY:

LIST ORDER
THREAD
AUTHOR
SUBJECT


SEARCH

IPS HOME


    [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

    Multi-address DNS name and SendTargets



    We recently noticed an oddity with SendTargets and hostnames with both
    IPv4 and v6 addresses.
    
    Our config syntax for portals has a transport (tcp/tcp6, will have
    scpt/scpt6 some day), a host name, and all the portal parameters.
    
    Recently we set up a target to listen on an interface with both IPv4 and
    IPv6 sockets. Each socket/portal had different target portal group tags.
    The two sockets were both on an interface that has a DNS name that has
    both an A and an AAAA record. Since we know exactly what address family we
    want, we typed the same hostname into the config file.
    
    The SendTargets code just prints hostnames (unless the "hostname" is a
    inet6 portal and looks like an IPv6 numeric address in which case we add
    the bracketing brackets). :-)
    
    The rub is that the output of SendTargets looked weird:
    
    TargetName=iqn.XXXX
    TargetAddress=hostname,5	# this is the IPv4 portal
    TargetAddress=hostname,6	# this is the IPv6 portal
    
    
    I don't really see anything wrong done by the target, but I can see an
    initiator might get VERY confused.
    
    I think the best resolution of this "issue" is to add a note to
    administrators to not configure portals with DNS names that resolve to
    both ipv4 and v6 records if the target listens on both address families
    (well, tcp & tcp6) and the portals have different TPGTs. Wow, that's a
    mouthfull.
    
    I guess the other thing to do is make initiators/discovery agents aware of
    the fact that you can have a host name duplicated in TargetAddress
    responses for a given node, and that that would probably indicate that
    multiple address families are in use at once.
    
    Take care,
    
    Bill
    


Home

Last updated: Thu Feb 27 19:19:21 2003
12381 messages in chronological order