Ubuntu Pastebin

Paste from kwm at Thu, 13 Oct 2016 15:39:08 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# 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
Download as text