I'm getting EINVAL when trying to resolve dns
By changing bind ip
|
node.bind('127.0.0.1', () => { |
from
127.0.0.1 to external interface ip I'm able to resolve dns without errors
Possible solutions I see:
- pass bind_ip parameter to lookup method as override
- on dns module load save LO_DNS_BIND_IP environment variable as default override
- on dns module load use ioctl to find all interface' ips (something like https://stackoverflow.com/a/4139811, https://stackoverflow.com/a/4267204), try to resolve and bind to all ips, save ip that resolved as default override
- all/some of the above (
priority: 1 > 2 > 3)
I'm getting EINVAL when trying to resolve dns
By changing bind ip
lo/lib/dns/dns.js
Line 131 in 4356cdb
127.0.0.1to external interface ip I'm able to resolve dns without errorsPossible solutions I see:
priority: 1 > 2 > 3)