Resolver a uri to ip address without DNS server? #2417
-
Hi, I have a question, I want to use https and need to use an uri for this otherwise the server certificate will not be accepted. However the uri I want to use is local and not in the google dns server. I already saw an earlier discussion which suggested changing the dns server in the mg_mgr struct, however is it also possible to configure resolving to an IP without specifying the DNS server, so basically overriding the default DNS server? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
If I understand you correctly, you want the equivalent of the /etc/hosts ? |
Beta Was this translation helpful? Give feedback.
-
Please DO NOT paste screen captures, I can't copy from them and I'm too lazy to write. |
Beta Was this translation helpful? Give feedback.
If I understand you correctly, you want the equivalent of the /etc/hosts ?
If that is the case, no, Mongoose resolves names to addresses by using a DNS server; you either provide an IP or a name + a DNS server.