diladele / dnssafety

DNS Safety is simple and fast DNS filtering server for your local network
https://www.diladele.com/dnssafety/
29 stars 8 forks source link

/opt/dnssafety-ui/var/console/utils.py --network=debian10 does not work #344

Closed ra-at-diladele-com closed 5 years ago

ra-at-diladele-com commented 5 years ago

Error:

Traceback (most recent call last):
  File "/opt/dnssafety-ui/var/console/node/views/network.py", line 89, in form_valid
    NetAdvanced.objects.first()
  File "/opt/dnssafety-ui/var/console/node/blogic.py", line 39, in generate
    return self.generate_linux_ubuntu16(devices, advanced)
  File "/opt/dnssafety-ui/var/console/node/blogic.py", line 142, in generate_linux_ubuntu16
    self.generate_linux_ubuntu16_manual(advanced.manual_text)
  File "/opt/dnssafety-ui/var/console/node/blogic.py", line 185, in 
generate_linux_ubuntu16_manual
    with open(new_file, "w") as fout:
FileNotFoundError: [Errno 2] No such file or directory: 
    '/opt/dnssafety-ui/etc/node/etc_network_interfaces.manual.new'
ra-at-diladele-com commented 5 years ago

See the feature-network-debian10 branch and try to debug. Especially DNS search and DNS servers settings. I got the impression it might work the same on Debian 10 as on Ubuntu 16. And it is good.

ra-at-diladele-com commented 5 years ago

Nope, on Debian 10 we must write DNS servers to the /etc/resolv.conf. Need to implement.

ra-at-diladele-com commented 5 years ago

Done, seems to work.