lookyloo/lookyloo.py
def _build_cname_chain(self, known_cnames: Dict[str, Optional[str]], hostname) -> List[str]:
        '''Returns a list of CNAMEs starting from one hostname.
        The CNAMEs resolutions are made in `_resolve_dns`. A hostname can have a CNAME entry
        and the CNAME entry can have an other CNAME entry, and so on multiple times.
        This method loops over the hostnames until there are no CNAMES.'''
        cnames: List[str] = []
        to_search = hostname
        while True:
            if known_cnames.get(to_search) is None:
                break
            # At this point, known_cnames[to_search] must exist and be a str
            cnames.append(known_cnames[to_search])  # type: ignore
            to_search = known_cnames[to_search]
        return cnames
Returns a list of CNAMEs starting from one hostname.
        The CNAMEs resolutions are made in `_resolve_dns`. A hostname can have a CNAME entry
        and the CNAME entry can have an other CNAME entry, and so on multiple times.
        This method loops over the hostnames until there are no CNAMES.
Returns a list of CNAMEs starting from one hostname.
The CNAMEs resolutions are made in `_resolve_dns`. A hostname can have a CNAME entry
and the CNAME entry can have an other CNAME entry, and so on multiple times.
This method loops over the hostnames until there are no CNAMES.
Returns a list of CNAMEs starting from one hostname . The CNAMEs resolutions are made in ` _resolve_dns ` . A hostname can have a CNAME entry and the CNAME entry can have an other CNAME entry and so on multiple times . This method loops over the hostnames until there are no CNAMES .
def _build_cname_chain(self, known_cnames: Dict[str, Optional[str]], hostname) -> List[str]:
        cnames: List[str] = []
        to_search = hostname
        while True:
            if known_cnames.get(to_search) is None:
                break
            cnames.append(known_cnames[to_search])  
            to_search = known_cnames[to_search]
        return cnames
def _build_cname_chain ( self , known_cnames : Dict [ str , Optional [ str ] ] , hostname ) -> List [ str ] : cnames : List [ str ] = [ ] to_search = hostname while True : if known_cnames . get ( to_search ) is None : break cnames . append ( known_cnames [ to_search ] ) to_search = known_cnames [ to_search ] return cnames
Returns a list of CNAMEs starting from one hostname.
Returns a list of CNAMEs starting from one hostname .
'''Returns a list of CNAMEs starting from one hostname.
        The CNAMEs resolutions are made in `_resolve_dns`. A hostname can have a CNAME entry
        and the CNAME entry can have an other CNAME entry, and so on multiple times.
        This method loops over the hostnames until there are no CNAMES.''' # At this point, known_cnames[to_search] must exist and be a str # type: ignore
self
known_cnames
Dict[str, Optional[str]]
hostname