質問編集履歴

2

写真修正

2018/06/14 10:07

投稿

cocytus
cocytus

スコア12

test CHANGED
File without changes
test CHANGED
@@ -68,11 +68,11 @@
68
68
 
69
69
 
70
70
 
71
- 1.PTRに設定してみた。
71
+ 1.Aレコード追加してみた。
72
72
 
73
73
 
74
74
 
75
- ![イメージ説明](35628ebb3d9a645bfee07cc160635dee.png)
75
+ ![イメージ説明](4c6898066aa2c6267a3c71073ea01e82.png)
76
76
 
77
77
 
78
78
 

1

書式の改善

2018/06/14 10:07

投稿

cocytus
cocytus

スコア12

test CHANGED
@@ -1 +1 @@
1
- Azure 逆引きDNS設定に
1
+ 逆引きDNS設定で、独自ドメインを設定しようとすると「サブスクリプション属してないとエラーが表示され登録できない。」
test CHANGED
@@ -1,83 +1,109 @@
1
1
  お世話になっております。
2
2
 
3
- AzureでDNSの逆引き設定を行ったのですが、以下のエラーが表示され正しく設定できていない状況です。同じような現象に見舞われた方や、解決した方などいらっしゃいましたら解決策などご教示お願い致します。
3
+ AzureでDNSの逆引き設定を行ったのですが、以下のエラーが表示され正しく設定できていない状況です。
4
+
5
+ 解決策やアドバイスなどございましたらご教授お願いします。
4
6
 
5
7
 
6
8
 
7
- **設定値**
9
+ ### 設定値
8
10
 
9
11
 
10
12
 
11
- パブリックIP
13
+ **パブリックIP**
12
-
13
- |名前|値|
14
-
15
- |:--|:--:|
16
-
17
- |ipv4|13.78.39.105|
18
14
 
19
15
 
20
16
 
21
- DNSゾーン
22
-
23
- 39.78.13.in-addr.arpa
17
+ ![イメージ説明](6d45a37b5445bec80d485f9ff9cd355b.png)
24
18
 
25
19
 
26
20
 
27
- PTRレコード
21
+ **DNS名**
28
-
29
- |名前|値|
30
-
31
- |:--|:--:|
32
-
33
- |105|az-test.test.com|
34
22
 
35
23
 
36
24
 
37
- **実行コマンド**
25
+ ![イメージ説明](23d495ebcd0a6cbeb2b014cdc629b59c.png)
38
26
 
39
- ```powershell
40
27
 
41
- $pip = Get-AzureRmPublicIpAddress -Name "ipv4" -ResourceGroupName "CentOS74_resouce"
42
28
 
43
- $pip.DnsSettings.ReverseFqdn = "az-test.test.com."
44
29
 
30
+
31
+
32
+
33
+ ### できたこと
34
+
35
+
36
+
45
- Set-AzureRmPublicIpAddress -PublicIpAddress $pip
37
+ DNSラベルを入力して、生成されるDNS名を使っての逆引き設定。
38
+
39
+
40
+
41
+ ```shell
42
+
43
+ az login
44
+
45
+ az network public-ip update --resource-group CentOS74_resouce --name ipv4 --reverse-fqdn azuretest.japaneast.cloudapp.azure.com.
46
46
 
47
47
  ```
48
48
 
49
49
 
50
50
 
51
- **エラーッセージ**
51
+ ![イメージ説明](8c7d26151c180bc3c3a47d640764ee45.png)
52
52
 
53
- ```powershell
54
53
 
55
- `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.
56
54
 
57
- StatusCode: 400
58
55
 
59
- ReasonPhrase: Bad Request
60
56
 
61
- OperationID : '69003bd6-bab5-4a35-af19-33cd0bd804fe'
57
+ ### 実装したいこと
62
58
 
63
- At line:1 char:1
64
59
 
65
- + Set-AzureRmPublicIpAddress -PublicIpAddress $pip
66
60
 
67
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61
+ できたことに記載したDNSの値ではなく、自分で設定した任意の値「test.azure.com」などで逆引き設定を行いたい。
68
62
 
69
- + CategoryInfo : CloseError: (:) [Set-AzureRmPublicIpAddress], NetworkCloudException
63
+ test.azure.com」はカスタムホストに追加済み。
70
64
 
65
+
66
+
67
+ ### 試したこと
68
+
69
+
70
+
71
+ 1.PTRに設定してみた。
72
+
73
+
74
+
75
+ ![イメージ説明](35628ebb3d9a645bfee07cc160635dee.png)
76
+
77
+
78
+
79
+ 2.コマンド入力
80
+
81
+
82
+
83
+ ```shell
84
+
71
- + FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.SetAzurePublicIpAddressCommand`
85
+ az network public-ip update --resource-group CentOS74_resouce --name ipv4 --reverse-fqdn test.azure.com
72
86
 
73
87
  ```
74
88
 
75
89
 
76
90
 
77
- 参考URL
91
+ 3.以下エラー表示
78
-
79
- https://docs.microsoft.com/ja-jp/azure/dns/dns-reverse-dns-for-azure-services#validation-of-reverse-dns-records
80
92
 
81
93
 
82
94
 
83
- AzureのサポートTwitterにも質問してみましたが、上記のURLを掲示されるだけでした…
95
+ ```shell
96
+
97
+ 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.
98
+
99
+ ```
100
+
101
+ ![イメージ説明](eed725b954ed5713f85c5f44a8affbc3.png)
102
+
103
+
104
+
105
+ ---
106
+
107
+
108
+
109
+ 以上です。よろしくお願い致します(´・ω・`)