質問するログイン新規登録

質問編集履歴

2

写真修正

2018/06/14 10:07

投稿

cocytus
cocytus

スコア12

title CHANGED
File without changes
body CHANGED
@@ -33,9 +33,9 @@
33
33
 
34
34
  ### 試したこと
35
35
 
36
- 1.PTRに設定してみた。
36
+ 1.Aレコード追加してみた。
37
37
 
38
- ![イメージ説明](35628ebb3d9a645bfee07cc160635dee.png)
38
+ ![イメージ説明](4c6898066aa2c6267a3c71073ea01e82.png)
39
39
 
40
40
  2.コマンド入力
41
41
 

1

書式の改善

2018/06/14 10:07

投稿

cocytus
cocytus

スコア12

title CHANGED
@@ -1,1 +1,1 @@
1
- Azure 逆引きDNS設定につい
1
+ 逆引きDNS設定で、独自ドメインを設定しようとすると「サブスクリプション属しいないとエラーが表示され登録できない。」
body CHANGED
@@ -1,42 +1,55 @@
1
1
  お世話になっております。
2
- AzureでDNSの逆引き設定を行ったのですが、以下のエラーが表示され正しく設定できていない状況です。同じような現象に見舞われた方や、解決した方などいらっしゃいましたら解決策などご教示お願い致します。
2
+ AzureでDNSの逆引き設定を行ったのですが、以下のエラーが表示され正しく設定できていない状況です。
3
+ 解決策やアドバイスなどございましたらご教授お願いします。
3
4
 
4
- **設定値**
5
+ ### 設定値
5
6
 
6
- パブリックIP
7
+ **パブリックIP**
7
- |名前|値|
8
- |:--|:--:|
9
- |ipv4|13.78.39.105|
10
8
 
11
- DNSゾーン
12
- 39.78.13.in-addr.arpa
9
+ ![イメージ説明](6d45a37b5445bec80d485f9ff9cd355b.png)
13
10
 
14
- PTRレコード
11
+ **DNS名**
15
- |名前|値|
16
- |:--|:--:|
17
- |105|az-test.test.com|
18
12
 
13
+ ![イメージ説明](23d495ebcd0a6cbeb2b014cdc629b59c.png)
14
+
15
+
16
+
19
- **実行コマンド**
17
+ ### できたこと
18
+
19
+ DNSラベルを入力して、生成されるDNS名を使っての逆引き設定。
20
+
20
- ```powershell
21
+ ```shell
22
+ az login
21
- $pip = Get-AzureRmPublicIpAddress -Name "ipv4" -ResourceGroupName "CentOS74_resouce"
23
+ az network public-ip update --resource-group CentOS74_resouce --name ipv4 --reverse-fqdn azuretest.japaneast.cloudapp.azure.com.
22
- $pip.DnsSettings.ReverseFqdn = "az-test.test.com."
23
- Set-AzureRmPublicIpAddress -PublicIpAddress $pip
24
24
  ```
25
25
 
26
- **エラーッセージ**
27
- ```powershell
28
- `Set-AzureRmPublicIpAddress : ReverseFqdn az-test.test.com. that PublicIPAddress ipv4 is trying to use does not belong to subscription e38d0cda-3012-4b7b-9134-f49a829f8e98. One of the following conditions need to be met to establish ownership: 1) ReverseFqdn matches fqdn of any public ip resource under the subscription; 2) ReverseFqdn resolves to the fqdn (through CName records chain) of any public ip resource under the subcription; 3) It resolves to the ip address (through CName and A records chain) of a static public ip resource under the subscription.
29
- StatusCode: 400
30
- ReasonPhrase: Bad Request
31
- OperationID : '69003bd6-bab5-4a35-af19-33cd0bd804fe'
32
- At line:1 char:1
33
- + Set-AzureRmPublicIpAddress -PublicIpAddress $pip
34
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35
- + CategoryInfo : CloseError: (:) [Set-AzureRmPublicIpAddress], NetworkCloudException
36
- + FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.SetAzurePublicIpAddressCommand`
26
+ ![イメージ説明](8c7d26151c180bc3c3a47d640764ee45.png)
27
+
28
+
29
+ ### 実装したいこと
30
+
31
+ できたことに記載したDNSの値ではなく、自分で設定した任意の値「test.azure.com」などで逆引き設定を行いたい。
32
+ 「test.azure.com」はカスタムホストに追加済み。
33
+
34
+ ### 試したこと
35
+
36
+ 1.PTRに設定してみた。
37
+
38
+ ![イメージ説明](35628ebb3d9a645bfee07cc160635dee.png)
39
+
40
+ 2.コマンド入力
41
+
42
+ ```shell
43
+ az network public-ip update --resource-group CentOS74_resouce --name ipv4 --reverse-fqdn test.azure.com
37
44
  ```
38
45
 
39
- 参考URL
46
+ 3.以下エラー表示
40
- https://docs.microsoft.com/ja-jp/azure/dns/dns-reverse-dns-for-azure-services#validation-of-reverse-dns-records
41
47
 
42
- AzureのサポートTwitterにも質問してみましたが、上記のURLを掲示されるだけでした…
48
+ ```shell
49
+ ReverseFqdn test.azure.com that PublicIPAddress ipv4 is trying to use does not belong to subscription XXXXXXXXXXXXXXXX. One of the following conditions need to be met to establish ownership: 1) ReverseFqdn matches fqdn of any public ip resource under the subscription; 2) ReverseFqdn resolves to the fqdn (through CName records chain) of any public ip resource under the subcription; 3) It resolves to the ip address (through CName and A records chain) of a static public ip resource under the subscription.
50
+ ```
51
+ ![イメージ説明](eed725b954ed5713f85c5f44a8affbc3.png)
52
+
53
+ ---
54
+
55
+ 以上です。よろしくお願い致します(´・ω・`)