- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] ot: BIND setup, need it resolve to itself 1st ?
- From: Jobst Schmalenbach <jobst@xxxxxxxxxxxxxx>
- Date: Fri, 27 Jun 2003 10:35:18 +1000
- Organization: Barrett Consulting Group Pty Ltd
- User-agent: Mutt/1.2.5i
On Thu, Jun 26, 2003 at 11:58:14PM +0000, Voytek Eymont (voytek@xxxxxxxxxx) wrote:
> any BIND experts ?
>
> If I am setting up primary DNS server, it is supposed to resolve to itself
> first, like:
>
> 127.0.0.1
> <it's hostid>
> <slave DNS host>
<offtopic>
What about OS/2? Still using it? you should have my email in your newsletter file ... ;-)
</offtopic>
You have another option, in host.conf you specify:
order hosts,bind
which basically says that on *local* lookups it should first look in the
"hosts" file and if NOT found go ask the nameserver. So your "hosts"
file should have something like this:
127.0.0.1 localhost localhost.localdomain
EXTERNAL_IP your.external.domain.name.com its_external_shortname
INTERNALIP your.internal.domain.name.com its_internal_short_name
You could off course specify a few more machines in there to make
local lookups quicker.
With local I mean "any process running on the machine requesting a lookup".
jobst
--
Be gentle with the earth.
__, Jobst Schmalenbach, jobst@xxxxxxxxxxxxxx, Technical Director
_ _.--'-n_/ Barrett Consulting Group P/L & The Meditation Room P/L
-(_)------(_)= +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia