Question about the content of the /etc/resolv.conf

Kevin Darcy kcd at daimlerchrysler.com
Mon Nov 11 23:26:55 UTC 2002


John wrote:

> Hi all,
>
> Question about the content of the /etc/resolv.conf
>
> Our /etc/resolv.conf looks like that:
>
> # more /etc/resolv.conf
> domain amsterdam.nl berlin.de brussel.be vienna.at madrid.es helsinki.fi
>
> nameserver 194.229.188.24
> nameserver 194.229.188.25
>
> !!Note:
> The domain amsterdam.nl will be resolved by the local DNS's, but all the
> rest (berlin.de brussel.be vienna.at madrid.es helsinki.fi) are resolved
> by foreign DNS's. Because in the /etc/named.conf all the foreign domains
> use type forward.
>
> zone "berlin.de" {
>         type forward;
>         forwarders {
>               213.162.88.3;
>               213.162.88.4;
>               };
>         forward only;
> };
>
> I have ever followed the HP DNS course and they mention to put all the
> domains in the /etc/resolv.conf
> Is it necessary to put all the domains (berlin.de brussel.be vienna.at
> madrid.es helsinki.fi) behind the keyword domain?? If yes WHY?? If not
> can I remove them??

Somebody got something wrong somewhere, because "domain" only takes a
single domain name. Did somebody confuse "domain" with "search"?

In any case, you don't need all of those domains in your search path if you
educate your users to always use fully-qualified domain names.

And if your nameserver has access to the Internet DNS, you don't really
need all of those "type forward" zone definitions either.


- Kevin




More information about the bind-users mailing list