# deployed 2 ubuntu units; get their FQDNs
ubuntu@stilson-02:~⟫ juju run --all 'hostname -f'
- MachineId: "0"
Stdout: |
juju-9960ca-0.localdomain
- MachineId: "1"
Stdout: |
juju-9960ca-1.localdomain
# Fail to resolve ubuntu/1 from ubuntu/0 using the fqdn
ubuntu@stilson-02:~⟫ juju run --unit ubuntu/0 'host juju-9960ca-1.localdomain'
Host juju-9960ca-1.localdomain not found: 3(NXDOMAIN)
# Succeed resolving ubuntu/1 from ubuntu/0 using the shortname+.lxd
ubuntu@stilson-02:~⟫ juju run --unit ubuntu/0 'host juju-9960ca-1.lxd'
juju-9960ca-1.lxd has address 10.44.139.147
# Succeed resolving ubuntu/1 from ubuntu/0 using the shortname
ubuntu@stilson-02:~⟫ juju run --unit ubuntu/0 'host juju-9960ca-1'
juju-9960ca-1.lxd has address 10.44.139.147