>I have basically two sets of issues: one is what the syntax of
>resolv.conf should be (and what extensions in it I should understand);
>the other is what the resolver behaviour should be in various
>circumstances.

        about resolv.conf syntax: the easiest way is to have "nameserver
        <ipv6 address>".  BIND4/8 resolver code (res_init.c) simply ignore
        unparsable lines, as well as unparsable address portion in
        "nameserver foo" line.  so this should be safe to put
        "nameserver <v6addr>" line into resolv.conf, even if old binary may
        look at the file.

        about behavior: there are various APIs visible to the userland
        programmers.  I think you may want to honor API definition in RFCs
        and X/Open documents, and behave as necessary.  for example:
        - gethostbyname() - IPv4 only -> A query
        - gethostbyname2(AF_INET) - if af == AF_INET, IPv4 only -> A query
        - gethostbyname2(AF_INET6) - see RFC2133
        - getipnodebyname(AF_INET) - see RFC2553, IPv4 only -> A query
        - getipnodebyname(AF_INET6) - see RFC2553
        (not sure if the answer is relevant for your library suite)

itojun
--------------------------------------------------------------------
IETF IPng Working Group Mailing List
IPng Home Page:                      http://playground.sun.com/ipng
FTP archive:                      ftp://playground.sun.com/pub/ipng
Direct all administrative requests to [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to