mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:57:35 +00:00
LookupServer: Store /etc/hosts as Vector<DNSAnswer>
...just like we store m_lookup_cache, in other words. This immediately lets us match on types: for instance we will now only resolve 1.0.0.127.in-addr.arpa to localhost if asked for type PTR, not for type A. In the future, this could also let us have the same /etc/hosts name resolve to *multiple* addresses.
This commit is contained in:
parent
e9387e43db
commit
af6aac8c55
2 changed files with 26 additions and 6 deletions
|
@ -52,7 +52,7 @@ private:
|
|||
|
||||
RefPtr<Core::LocalServer> m_local_server;
|
||||
Vector<String> m_nameservers;
|
||||
HashMap<DNSName, String, DNSName::Traits> m_etc_hosts;
|
||||
HashMap<DNSName, Vector<DNSAnswer>, DNSName::Traits> m_etc_hosts;
|
||||
HashMap<DNSName, Vector<DNSAnswer>, DNSName::Traits> m_lookup_cache;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue