サービスのSRVレコードを作成する
-
サービスとプロトコルの名前
-
ドメイン名
-
TTL
-
DNS クラス
-
ターゲットの優先度
-
優先度が同じレコードのウェイト
-
サービスのポート
-
サービスのホスト名。
CLI を使用して SRV レコードを追加する
- add dns srvRec <domain> <target> -priority <positive_integer> -weight <positive_integer> -port <positive_integer> [-TTL <secs>]
- sh dns srvRec <domain>
> add dns srvRec _http._tcp.example.com nameserver1.com -priority 1 -weight 1 -port 80
Done
> show dns srvRec _http._tcp.example.com
1) Domain Name : _http._tcp.example.com
Target Host : nameserver1.com
Priority : 1 Weight : 1
Port : 80 TTL : 3600 secs
Done
CLI を使用して SRV レコードを変更または削除する
-
SRV レコードを変更するには、次のように入力します。
-
set dns srvRecコマンド -
SRV レコードが設定されているドメインの名前
-
関連サービスをホストするターゲットホストの名前
-
変更するパラメータと新しい値
-
-
SRV レコードを削除するには、次のように入力します。
-
rm dns srvRecコマンド -
SRV レコードが設定されているドメインの名前
-
関連サービスをホストするターゲットホストの名前
-