Re: [nodejs] dns.resolve only tries the first nameserver in /etc/resolv.conf??

2016-05-06 Thread Alain Mouette
What you are trying to do is against the rules. It will not work with any standard implementation! Read more about DNS - Alain Mouette A 6 de maio de 2016 01:04:54 Yun Feng Ma escreveu: 在此输入代码... 在 2016年5月6日星期五 UTC+8上午9:43:50,Ben Noordhuis写道: On Thu, May 5, 2016 at 9:00 AM, Yun F

Re: [nodejs] dns.resolve only tries the first nameserver in /etc/resolv.conf??

2016-05-06 Thread Denard Springle
Set the internal DNS to proxy to an external DNS - such that when a DNS record is requested that the internal DNS does not have, it fetches it from an external name server (and caches it for future use). -- Denny -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/

Re: [nodejs] dns.resolve only tries the first nameserver in /etc/resolv.conf??

2016-05-06 Thread Ben Noordhuis
On Fri, May 6, 2016 at 5:50 AM, Yun Feng Ma wrote: > 在此输入代码... > > > > 在 2016年5月6日星期五 UTC+8上午9:43:50,Ben Noordhuis写道: >> >> On Thu, May 5, 2016 at 9:00 AM, Yun Feng Ma wrote: >> > Hi everyone! >> > >> > The dns.resolve tries to send request to only the first nameserver in >> > /etc/resolv.conf, a

Re: [nodejs] dns.resolve only tries the first nameserver in /etc/resolv.conf??

2016-05-06 Thread Matt
Yes, make your internal nameserver also be recursive/caching and remove the second line. How you do that depends on what software you're using for DNS. On Thu, May 5, 2016 at 11:50 PM, Yun Feng Ma wrote: > 在此输入代码... > > > > 在 2016年5月6日星期五 UTC+8上午9:43:50,Ben Noordhuis写道: > >> On Thu, May 5, 2016

Re: [nodejs] dns.resolve only tries the first nameserver in /etc/resolv.conf??

2016-05-05 Thread Yun Feng Ma
在此输入代码... 在 2016年5月6日星期五 UTC+8上午9:43:50,Ben Noordhuis写道: > > On Thu, May 5, 2016 at 9:00 AM, Yun Feng Ma > wrote: > > Hi everyone! > > > > The dns.resolve tries to send request to only the first nameserver in > > /etc/resolv.conf, and if the first nameserver fails to resolve the name, > >

Re: [nodejs] dns.resolve only tries the first nameserver in /etc/resolv.conf??

2016-05-05 Thread Ben Noordhuis
On Thu, May 5, 2016 at 9:00 AM, Yun Feng Ma wrote: > Hi everyone! > > The dns.resolve tries to send request to only the first nameserver in > /etc/resolv.conf, and if the first nameserver fails to resolve the name, > dns.resolve just returns and doesn't try to send request to the second > nameserv

[nodejs] dns.resolve only tries the first nameserver in /etc/resolv.conf??

2016-05-05 Thread Yun Feng Ma
Hi everyone! The dns.resolve tries to send request to only the first nameserver in /etc/resolv.conf, and if the first nameserver fails to resolve the name, dns.resolve just returns and doesn't try to send request to the second nameserver. Is this work-as-design? Here is an example: the /etc/