LoginSignup
0
1

More than 5 years have passed since last update.

Ubuntu XenialのDNSを設定する

Last updated at Posted at 2017-04-19

これが正しいやりかたかわからないけど……

1./etc/resolvconf/resolv.conf.d/baseに以下の一文を追加

nameserver 8.8.8.8

2.変更を反映する

$ sudo resolvconf -u

3.試す

$ ping www.google.com
PING www.google.com (216.58.221.4) 56(84) bytes of data.
64 bytes from nrt13s38-in-f4.1e100.net (216.58.221.4): icmp_seq=1 ttl=52 time=5.41 ms
64 bytes from nrt13s38-in-f4.1e100.net (216.58.221.4): icmp_seq=2 ttl=52 time=8.75 ms

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1