[Bug 13470] DFS mounted shares do not allow to go subdirectories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--- Comment #3 from Aurélien Aptel <aaptel@xxxxxxxxx> ---
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.



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux