How do I lookup an ipv6 address using the host command?



  • Also see Man page for host.

           -t type
               Query type: The type argument can be any recognized query type:
               CNAME, NS, SOA, TXT, DNSKEY, AXFR, etc.
    
               When no query type is specified, host automatically selects an
               appropriate query type. By default, it looks for A, AAAA, and MX
               records. If the -C option is given, queries will be made for SOA
               records. If name is a dotted-decimal IPv4 address or
               colon-delimited IPv6 address, host will query for PTR records.
    
               If a query type of IXFR is chosen the starting serial number can be
               specified by appending an equal followed by the starting serial
               number (like -t IXFR=12345678).
    

    An excellent write up on DNS records: https://en.wikipedia.org/wiki/List_of_DNS_record_types

    $ host -t AAAA www.netflix.com
    www.netflix.com is an alias for www.geo.netflix.com.
    www.geo.netflix.com is an alias for www.eu-west-1.prodaa.netflix.com.
    www.eu-west-1.prodaa.netflix.com has IPv6 address xxxx:xxx:x::xxxx:xxxx
    www.eu-west-1.prodaa.netflix.com has IPv6 address xxxx:xxx:x::xxxx:xxxx
    ...
    ...
    ...
    

Log in to reply
 

© Lightnetics 2024