All of lore.kernel.org
 help / color / mirror / Atom feed
From: samba-bugs@samba.org
To: cifs-qa@samba.org
Subject: [Bug 13470] DFS mounted shares do not allow to go subdirectories
Date: Tue, 28 Jul 2020 19:34:40 +0000	[thread overview]
Message-ID: <bug-13470-10630-B55hyfQKU4@https.bugzilla.samba.org/> (raw)
In-Reply-To: <bug-13470-10630@https.bugzilla.samba.org/>

https://bugzilla.samba.org/show_bug.cgi?id=13470

--- Comment #3 from Aurélien Aptel <aaptel@samba.org> ---
Regarding 1)

You can put multiple nameservers in /etc/resolv.conf but that might not have
the effect you want.

If you have 2 nameserver A and B, it will try to resolve by contacting A first.
But if A is *up* and replies that the the domain cannot be found it will stop
there.
The nameserver B will only be tried if A is down, not if A replies "doesn't
exist".

What I would suggest you do is setup dnsmasq. It's a tiny dns server proxy
daemon.

You can tell it to forward all domain request for epam.com and any subdomain
(e.g. a.epam.com, a.b.c.epam.com etc) to nameserver A, and forward all the
other request to nameserver B.

To use it, install dnsmasq, and put this in the config file (usually
/etc/dnsmasq.conf)

    # forward *.epam.com requests to 10.0.0.1
    server=/epam.com/10.0.0.1
    # forward the rest to 8.8.8.8
    server=/#/8.8.8.8

You will also need to set your system dns server to point to the local dnsmasq.
This can be done by putting 127.0.0.1 in /etc/resolv.conf (and only one). There
might be cleaner ways to do this depending on your distro as resolv.conf might
be overwritten by the system each time you connect to some Wifi network for
example.

----

Alternatively, if setting up dnsmasq is too much and you don't mind hardcoding
the IP of each host used in the DFS namespace, you can simply list them in
/etc/hosts

Regarding 2)

It should be possible to mount the dfs root yes. Once you have DNS working it
should all be ok, assuming your kernel is recent enough.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

  parent reply	other threads:[~2020-07-28 19:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-13470-10630@https.bugzilla.samba.org/>
2020-07-23 12:32 ` [Bug 13470] DFS mounted shares do not allow to go subdirectories samba-bugs
2020-07-28 18:09 ` samba-bugs
2020-07-28 19:34 ` samba-bugs [this message]
2020-07-28 19:50 ` samba-bugs
2020-07-29 13:25 ` samba-bugs
2020-07-31 15:07 ` samba-bugs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-13470-10630-B55hyfQKU4@https.bugzilla.samba.org/ \
    --to=samba-bugs@samba.org \
    --cc=cifs-qa@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.