「DNSの名前解決をテスト」の版間の差分
ページの作成:「<noinclude> = Introduction = </noinclude> To verify that your DNS settings are correct and your client or server is able to resolve IP addresses and host names use the <…」 |
|||
| (同じ利用者による、間の3版が非表示) | |||
| 1行目: | 1行目: | ||
<noinclude> | <noinclude> | ||
= | = はじめに = | ||
</noinclude> | </noinclude> | ||
DNS設定が正しく、クライアントまたはサーバーがIPアドレスとホスト名を解決できることを確認するには、<code> nslookup </code>コマンドを使用します。 このコマンドはLinuxとWindowsで利用可能です。 | |||
| 9行目: | 9行目: | ||
== | == 前方参照 == | ||
ホスト名を、そのIPアドレスに解決するには: | |||
# nslookup DC1.samdom.example.com | # nslookup DC1.samdom.example.com | ||
| 24行目: | 24行目: | ||
== | == 後方参照 == | ||
IPアドレスをそのホスト名に解決するには: | |||
# nslookup 10.99.0.1 | # nslookup 10.99.0.1 | ||
| 34行目: | 34行目: | ||
1.0.99.10.in-addr.arpa name = DC1.samdom.example.com. | 1.0.99.10.in-addr.arpa name = DC1.samdom.example.com. | ||
Samba ADでは、リバースゾーンは自動的には設定されません。 逆ゾーンを設定するには、[[DNSの管理|DNSの管理]]を参照してください。 | |||
| 40行目: | 40行目: | ||
== | == SRVレコードの解決 == | ||
Active | Active Directory(AD)はSRVレコードを使用してKerberosやLDAPなどのサービスを見つけます。 SRVレコードが正しく解決されたことを確認するには、<code> nslookup </code>インタラクティブシェルを使用します: | ||
# nslookup | # nslookup | ||
| 59行目: | 59行目: | ||
svr hostname = dc1.samdom.example.com | svr hostname = dc1.samdom.example.com | ||
samdom.example.com nameserver = dc1.samdom.example.com | samdom.example.com nameserver = dc1.samdom.example.com | ||
dc1.samdom.example.com internet address = 10.99.0.1 | dc1.samdom.example.com internet address = 10.99.0.1 | ||
== エラーメッセージ == | |||
* DNSサーバーはホスト名を解決できません: | |||
* | |||
** server can't find DC1.samdom.example.com: NXDOMAIN | ** server can't find DC1.samdom.example.com: NXDOMAIN | ||
* | * DNSサーバーはIPアドレスを解決できません: | ||
** server can't find 1.0.99.10.in-addr.arpa: NXDOMAIN | ** server can't find 1.0.99.10.in-addr.arpa: NXDOMAIN | ||
* | * 使用されているDNSサーバーが利用できません: | ||
;; connection timed out; no servers could be reached | ;; connection timed out; no servers could be reached | ||
2019年2月28日 (木) 18:04時点における最新版
はじめに
DNS設定が正しく、クライアントまたはサーバーがIPアドレスとホスト名を解決できることを確認するには、 nslookup コマンドを使用します。 このコマンドはLinuxとWindowsで利用可能です。
前方参照
ホスト名を、そのIPアドレスに解決するには:
# nslookup DC1.samdom.example.com Server: 10.99.0.1 Address: 10.99.0.1#53 Name: DC1.samdom.example.com Address: 10.99.0.1
後方参照
IPアドレスをそのホスト名に解決するには:
# nslookup 10.99.0.1 Server: 10.99.0.1 Address: 10.99.0.1#53 1.0.99.10.in-addr.arpa name = DC1.samdom.example.com.
Samba ADでは、リバースゾーンは自動的には設定されません。 逆ゾーンを設定するには、DNSの管理を参照してください。
SRVレコードの解決
Active Directory(AD)はSRVレコードを使用してKerberosやLDAPなどのサービスを見つけます。 SRVレコードが正しく解決されたことを確認するには、 nslookup インタラクティブシェルを使用します:
# nslookup
Default Server: 10.99.0.1
Address: 10.99.0.1
> set type=SRV
> _ldap._tcp.samdom.example.com.
Server: UnKnown
Address: 10.99.0.1
_ldap._tcp.samdom.example.com SRV service location:
priority = 0
weight = 100
port = 389
svr hostname = dc1.samdom.example.com
samdom.example.com nameserver = dc1.samdom.example.com
dc1.samdom.example.com internet address = 10.99.0.1
エラーメッセージ
- DNSサーバーはホスト名を解決できません:
** server can't find DC1.samdom.example.com: NXDOMAIN
- DNSサーバーはIPアドレスを解決できません:
** server can't find 1.0.99.10.in-addr.arpa: NXDOMAIN
- 使用されているDNSサーバーが利用できません:
;; connection timed out; no servers could be reached