LoginSignup
8
5

More than 5 years have passed since last update.

Raspberry Piに固定IPアドレスと一緒に複数DNSを設定する

Posted at

Raspberry Pi 3B(Raspbian Jessie)に固定IPアドレスを指定する方法はインターネット上にちらほら散見されるが、なぜか複数DNSを設定する方法が見つからなかったので共有する。
非常に単純であるが、以下のようにdomain_name_serversに半角スペースで区切って指定すれば良い。

/etc/dhcpcd.conf
interface eth0
static ip_address=12.34.56.78/24
static routers=12.34.56.1
static domain_name_servers=12.34.56.2 12.34.56.3
8
5
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
8
5