有没有办法为使用 juju machine 或可在 bundle 中使用的注释添加的机器选择 DNS A 记录?
例如,我需要“dns-name: 10.146.xx”而不是“dnsname: 10.127.0.1”。
model: test
machines:
"0":
juju-status:
current: started
since: 18 Dec 2018 13:08:21-08:00
version: 2.4.7
dns-name: 10.127.0.1
ip-addresses:
- 10.127.0.1
- 10.146.x.x
instance-id: 73mrn7
machine-status:
current: running
message: Deployed
since: 18 Dec 2018 13:07:41-08:00
series: bionic
network-interfaces:
eno1:
ip-addresses:
- 10.146.x.x
mac-address: 7c:d3:0a:x:x:x:
gateway: 10.146.x.x
dns-nameservers:
- 172.27.x.x
space: primary
is-up: true
eno4:
ip-addresses:
- 10.127.0.1
mac-address: 7c:d3:0a:x:x:x
space: tunspace
is-up: true
hardware: arch=amd64 cores=40 mem=98304M tags=compute,int-bind availability-zone=default