Skip to content

Losnia

Random tech stuff

  • Home
  • Portal
  • CV
  • Telegram
  • About

Category: wsl

bookmark_borderWSL2 – Disable resolv.conf automatic generation / Update DNS servers

Posted on 20/10/2021 by Kael
echo -e "[network]
generateResolvConf = false" > /etc/wsl.conf

rm /etc/resolv.conf

echo -e "options timeout:1 attempts:1 rotate
nameserver 1.1.1.1
nameserver 1.0.0.1" > /etc/resolv.conf

chattr -f +i /etc/resolv.conf
Posted in debian, windows, wslLeave a Comment on WSL2 – Disable resolv.conf automatic generation / Update DNS servers

Categories

  • debian
  • docker
  • iptables
  • javascript
  • mysql
  • php
  • powershell
  • python
  • security
  • ssl
  • steam
  • windows
  • wpf
  • wsl
  • xslt
keyboard_arrow_up
Theme: Noto Simple