在Ubuntu服务器上设置samba4时出现DNS错误

时间:2020-05-13 13:31:17

标签: samba

我们已在ubuntu 18.04服务器上安装了samba4,但出现DNS错误

Issue in DNS

请找到/etc/resolv.conf文件

resolv.conf

请找到/etc/samba/smb.conf

smb.conf file

请帮助我解决问题

谢谢

1 个答案:

答案 0 :(得分:0)

我认为您应该使用以下方法允许防火墙中的流量通过:

iptables -A INPUT -p tcp --dport 135 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 135 -j ACCEPT
iptables -A INPUT -p udp --dport 135 -j ACCEPT
iptables -A OUTPUT -p udp --dport 135 -j ACCEPT

如果不添加

browseable = yes

您可能看不到共享文件