mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
Update some knowledge around ip and network
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#! /bin/bash -eu
|
||||
|
||||
|
||||
# For fixing the following dns issue in k8s
|
||||
# Nameserver limits were exceeded, some nameservers have been omitted, the applied nameserver line is: 127.0.0.1 1.1.1.1 1.1.1.1
|
||||
|
||||
# Update dns
|
||||
|
||||
sudo vim /etc/systemd/resolved.conf
|
||||
sudo systemctl restart systemd-resolved
|
||||
|
||||
# Update ip
|
||||
|
||||
sudo vim /etc/netplan/01-netcfg.yaml
|
||||
sudo netplan apply
|
||||
|
||||
# Check DNS servers
|
||||
resolvectl status
|
||||
Reference in New Issue
Block a user