[操作疑難] Arch systemd-networkd.service DNS setting 問題

本帖最後由 twaiho2003 於 2016-1-6 16:24 編輯

https://wiki.archlinux.org/index ... r_using_a_static_IP

點解明明/etc/systemd/network/*.network  入面有個setting 係dns
但係set完都ping 唔到 www.google.com

一定要係/etc/resolv.conf 入面打nameserver 8.8.8.8 先ping 到

問題已解決
原來/etc/systemd/network/*.network 入面dns setting 會create左一個file係/run/systemd/resolve/resolv.conf
之後需要create一個symbolic link由/etc/resolv.conf 去/run/systemd/resolve/resolv.conf
個教學有寫, 我get錯佢意思以為唔洗

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

did you reload systemd afterwards ?

TOP

回覆 2# toylet


    搵左好耐, 淨係知要set /etc/resolv.conf ,  但係搵極都搵唔到networkd 果個network file入面dns setting有乜用

TOP

回覆 3# 929962616


有打systemctl restart systemd-networkd.service
systemctl restart systemd-resolved.service

重新開機都試過

TOP