Does bind read /etc/hosts?

2014-07-15 Thread houguanghua
Dear sir/madam, Before Bind consults authority NS, does it access /etc/hosts? In my testing, it does not even seem to access /etc/hosts. But someone tells me Bind can access /etc/hosts first. Can you pls tell me how to config Bind to access /etc/hosts fist? Thanks, Guanghua

Re: Does bind read /etc/hosts?

2014-07-15 Thread Mark Andrews
In message bay173-w11d824e324939a1bb89852bb...@phx.gbl, houguanghua writes: Dear sir/madam, Before Bind consults authority NS, does it access /etc/hosts? In my testing, it does not even seem to access /etc/hosts. But someone tells me Bind can access /etc/hosts first. Can you pls tell

Re: Does bind read /etc/hosts?

2014-07-15 Thread Niall O'Reilly
At Tue, 15 Jul 2014 10:28:30 +, houguanghua wrote: Before Bind consults authority NS, does it access /etc/hosts? In my testing, it does not even seem to access /etc/hosts. That's right. BIND tools (dig, ...) are DNS tools. Local files aren't part of the DNS. For more information,

RE: Does bind read /etc/hosts?

2014-07-15 Thread Lightner, Jeff
of nsswitch.conf setting. -Original Message- From: bind-users-boun...@lists.isc.org [mailto:bind-users-boun...@lists.isc.org] On Behalf Of Niall O'Reilly Sent: Tuesday, July 15, 2014 6:57 AM To: houguanghua Cc: bind-users@lists.isc.org Subject: Re: Does bind read /etc/hosts? At Tue, 15

RE: Does bind read /etc/hosts?

2014-07-15 Thread houguanghua
will be returned to the client? Can the LDNS return 10.10.10.1 defined in the /etc/hosts to the client? maybe some special configuration in named can support this feature. Thanks, Guanghua To: houguang...@hotmail.com CC: bind-us...@isc.org From: ma...@isc.org Subject: Re: Does bind read

Re: Does bind read /etc/hosts?

2014-07-15 Thread Mark Andrews
? maybe some special configuration in named can support this feature. Thanks, Guanghua To: houguang...@hotmail.com CC: bind-us...@isc.org From: ma...@isc.org Subject: Re: Does bind read /etc/hosts? Date: Tue, 15 Jul 2014 20:38:12 +1000 In message bay173

RE: Does bind read /etc/hosts?

2014-07-15 Thread houguanghua
Thanks a lot. To: houguang...@hotmail.com CC: bind-us...@isc.org From: ma...@isc.org Subject: Re: Does bind read /etc/hosts? Date: Wed, 16 Jul 2014 11:33:00 +1000 In message bay173-w26f0d751d9e56ffda14b15bb...@phx.gbl, houguanghua writes: Sorry for what I said isn't very clear. I

Re: Does bind read /etc/hosts?

2014-07-15 Thread Karl Auer
What I want to know is whether the named access the hosts file. I wonder if the OP is actually asking for a way to have BIND return specific values for specific host names, without having them looked up in the real DNS. Guanghua, can you tell us the result you wish to achieve? From your

Re: Does bind read /etc/hosts?

2014-07-15 Thread Reindl Harald
Am 16.07.2014 03:27, schrieb houguanghua: Sorry for what I said isn't very clear you wheer clear I did know when the /etc/hosts is accessed in the OS agreed What I want to know is whether the named access the hosts file The /etc/hosts file isn't in the client's system, for bind applies

Re: Does bind read /etc/hosts?

2014-07-15 Thread Mark Andrews
In message 53c5e714.5080...@thelounge.net, Reindl Harald writes: Can the LDNS return 10.10.10.1 defined in the /etc/hosts to the client? maybe some special configuration in named can support this feature wrong tool - dnsmasq can but on the other hand has no bind-like zonefiles Neither

Re: Does bind read /etc/hosts?

2014-07-15 Thread Fajar A. Nugraha
On Wed, Jul 16, 2014 at 9:55 AM, Mark Andrews ma...@isc.org wrote: In message 53c5e714.5080...@thelounge.net, Reindl Harald writes: Can the LDNS return 10.10.10.1 defined in the /etc/hosts to the client? maybe some special configuration in named can support this feature wrong tool -

Re: Does bind read /etc/hosts?

2014-07-15 Thread Reindl Harald
Am 16.07.2014 04:55, schrieb Mark Andrews: In message 53c5e714.5080...@thelounge.net, Reindl Harald writes: Can the LDNS return 10.10.10.1 defined in the /etc/hosts to the client? maybe some special configuration in named can support this feature wrong tool - dnsmasq can but on the other

Re: Does bind read /etc/hosts?

2014-07-15 Thread Mark Andrews
Ok, I stand corrected. That said both named and dnsmasq as well as other products can override data from outside. -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org