Skip to content

Overriding/bypassing DNS lookups #8

@vshymanskyy

Description

@vshymanskyy

Similar to #7, many systems have means of assigning the IP manually (i.e. /etc/hosts or %systemroot%\system32\drivers\etc\hosts).

We could add a hostname database like this:

hosts = {
    "localhost": ("127.0.0.1","::1"),
    "ip6-localnet": "fe00::0",
}

It could easily be extended by the developer if needed:

aiodns.hosts.update({"myhost.org": "1.2.3.4"})

Comments and ideas are welcome!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions