Fix server Temporary failure in name resoltion
Page 1 of 1
Fix server Temporary failure in name resoltion
Vid
fix.sh
resolv.conf
fix.sh
- Code:
chmod +x *.sh
- Code:
#!/bin/bash
# server Temporary failure in name resoltion
#
#
#
# ./run.sh
#
echo "(c) J~Net 2019 Internet Fixer For Linux"
echo ""
#
# su
systemctl disable systemd-resolved.service
#Stop the service
systemctl stop systemd-resolved.service
#Then, remove the link to /run/systemd/resolve/stub-resolv.conf in /etc/resolv.conf
rm /etc/resolv.conf
#Add a manually created resolv.conf in /etc/
#gedit /etc/resolv.conf
#Add your prefered DNS server there
echo "nameserver 8.8.8.8" > /etc/resolv.conf
# 208.67.222.222
#I've tested this with success.
cat /etc/resolv.conf
echo "Fixed!"
ping google.com
resolv.conf
- Code:
nameserver 8.8.8.8
- Attachments
Similar topics
» Use cam as motion detection and temporary web based pics access
» do anything with images and linux web server
» your own mail server
» Pure FTP Server For Linux
» restart apache server
» do anything with images and linux web server
» your own mail server
» Pure FTP Server For Linux
» restart apache server
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum