0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RHEL resolv.confの設定方法

Posted at

resolv.confとは?

・DNSサーバの情報が書いてあるファイル
・リゾルバ=IPアドレスからドメイン名を探すソフトウェア

resolv.confを設定するには?

viコマンドの利用

設定するにはviコマンドを利用し、catコマンドで確認します。

# vi /etc/resolv.conf
# cat /etc/resolv.conf

書き方

[書くもの]
nameserver ネームサーバのIPアドレス
domain   ドメイン名
search   検索リスト

確認するには?

catコマンド、nslookupコマンドの利用

# cat /etc/resolv.conf
# nslookup IPアドレス

catコマンドはファイルを参照するときに使用します。
nslookupコマンドは名前解決出来ているのかどうかを確かめるコマンドです。

引用

Linux初心者の基礎知識

http://linux-beginner.com/linux_setei2.html

Linuxのリゾルバとは何か?

https://www.itmedia.co.jp/help/tips/linux/l0351.html

今すぐ実践!Linuxシステム管理

http://www.usupi.org/sysad/021.html

以上がresolv.confの設定方法でした。
最後までご覧いただきありがとうございました!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?