서버를 재시작 할 때 마다 resolv.conf 가 변경 되어서

변경되지 않는 방법을 적어 둔다.

 

1. /etc/systemd/resolved.conf 수정

[Resolve]
DNS=8.8.8.8 8.8.4.4

 

2. systemd-resolved 서비스 재시작

sudo systemctl restart systemd-resolved.service

+ Recent posts