from typing import List


def parse_resolv_conf(contents: str) -> List[str]:
    """
    Try to extract nameserver, search path, and ndots info from the pod's
    resolv.conf file.
    """
    res = []
    for line in contents.splitlines():
        line = line.strip()
        if not line:
            continue
        tokens = line.split()
        keyword = tokens[0].lower()
        args = tokens[1:]

        if keyword == "nameserver":
            res.append("--dns={}".format(args[0]))
        elif keyword == "search":
            for arg in args:
                res.append("--dns-search={}".format(arg))
        elif keyword == "options":
            for arg in args:
                res.append("--dns-opt={}".format(arg))
        else:
            pass  # Ignore the rest
    return res