1
Our network setup until recently was that we had a Samba4 server acting as a DNS server for a few internal names, and forwarding to our main router for everything else (i.e. stuff on the internet.) Our main router, a Dlink DI-624, was happy to forward these requests to the appropriate DNS servers, which it would obtain from our modem.
Well, that worked great, without hiccups, until the DI-624 died. Our new router does not have DNS forwarding, so for the moment I took the primary DNS server from our internet connection and put that in smb.conf on the dns forwarder =
line where our D-Link's address used to be.
My main beef with this is if our ISP changes that primary DNS server, which they have been known to do a few times a year, we have internet downtime and general confusion until this is figured out, and even once it is, we have to restart Samba which interrupts our fileshare in the process (more downtime). All this for something our old router just neatly took care of.
Unfortunately whether with spaces or commas dns forwarder
in smb.conf
doesn't seem to take more than one argument. I don't want to run BIND if I don't have to, but if it's simple enough I wouldn't mind switching from Samba's built-in internal DNS if it helps with this issue.
Is there some way to have CentOS grab current DNS server settings from our router and update smb.conf with them? Or at least let me list a bunch of DNS servers to try? Or better yet handle things automagically like our D-Link used to?
Re: sol1, yeah, I'm surprised our ISP's standard router+modem combo (2701hg-g) doesn't support DNS forwarding. Re: sol2, That's an interesting page...8.8.8.8 sounds like a nice option, but what's with all the errors it reports? – Kev – 2013-11-26T18:01:59.000
Also it gets my primary DNS wrong and doesn't allow me to change it, so I'm not sure I trust the numbers... – Kev – 2013-11-26T18:12:16.247
I don't see what errors are you referring to. if you talk about the namebench it's just a wrong header in that page and you have to scroll a little bit down to see the results. – Costin Gușă – 2013-11-27T20:37:32.457
Yes, the namebench--it's in the header but also in the results, numerous "incorrect" entries. – Kev – 2013-11-27T23:52:56.787
Went with Solution 1 here. – Kev – 2014-01-04T02:01:08.583