对于我的应用程序,我需要创建MX和SRV记录。如果我只是在install.json中包含MX记录,则可以使用。如果还添加了我需要的SRV记录,则会出现错误代码为“ dns”和消息“错误保存DNS”。
以下是我的install.json中的“ dns”部分,其实际域名已更改:
"dns": [
{
"content": "mx.example.com.",
"name": "_mx._tcp.example.name",
"port": 25,
"priority": 10,
"type": "SRV",
"weight": 10
},
{
"content": "mx1.example.net",
"name": "example.org",
"priority": 1,
"type": "MX"
},
{
"content": "mx2.exmaple.net",
"name": "example.org",
"priority": 1,
"type": "MX"
}
],
我做错什么了吗,或者这是不可能的吗?
答案 0 :(得分:1)
这应该可行。相反,请尝试:
{
"type": "SRV",
"name": "_sip._tcp.example2.com.",
"content": "SRV 21 1 1 example2.com.",
"meta": {},
"data": {
"priority": 21,
"weight": 1,
"port": 1,
"target": "example2.com",
"service": "_sip",
"proto": "_tcp",
"name": "example2.com"
},
"priority": 21
}