[Samba] Set a special DNS server for samba!

Hamid Reza Hasani hr.hasani at gmail.com
Tue Oct 12 08:00:18 MDT 2010

Yes you are right, but this is not correct at all.
Assume we have a gateway that is connected to an AD and the Internet, so we
should have two DNS server, one for AD and one for Internet.
We can set both in resolve.conf but it slows down the gateway because in
this case some DNS request should be resolved by two DNS server (a timeout
and a success hit!!), otherwise according to my experience  if AD DNS server
was not set as a first DNS server in resolve.conf, it could not join to
But if there was a way to set DNS server for samba separately, then we would
be able to solve this problem.

Hamid Reza Hasani
Ya Ali

On Tue, Oct 12, 2010 at 4:38 PM, Chris Weiss <cweiss at gmail.com> wrote:

> On Tue, Oct 12, 2010 at 4:57 AM, Hamid Reza Hasani <hr.hasani at gmail.com>
> wrote:
> > Hi,
> > I want to set a special DNS server for samba (net join) and I don't want
> to
> > use resolve.conf!
> > Is there any solution for me?
> you can make it not use DNS at all with the "name resolve order"
> option, but using a different dns I don't think is possible, and also
> sounds like a faulty network design.  All AD members really need to
> use AD's DNS, or at least be able to reach it via dns zoning and
> forwarding.  And if you aren't using AD, you don't require DNS.

More information about the samba mailing list