Ubuntu Pastebin

Paste from mpontillo at Fri, 21 Apr 2017 18:29:05 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
root@maas:~# maas $PROFILE dnsresources create fqdn=dns.maas ip_addresses='8.8.8.8 8.8.4.4'Success.
Machine-readable output follows:
{
    "resource_records": [],
    "resource_uri": "/MAAS/api/2.0/dnsresources/15/",
    "fqdn": "dns.maas",
    "ip_addresses": [
        {
            "subnet": null,
            "alloc_type_name": "User reserved",
            "resource_uri": "/MAAS/api/2.0/ipaddresses/",
            "ip": "8.8.8.8",
            "alloc_type": 4,
            "created": "2017-03-29T22:46:06.035",
            "interface_set": [],
            "owner": {
                "email": "admin@example.com",
                "resource_uri": "/MAAS/api/2.0/users/mpontillo/",
                "is_superuser": true,
                "username": "mpontillo"
            }
        },
        {
            "subnet": null,
            "alloc_type_name": "User reserved",
            "resource_uri": "/MAAS/api/2.0/ipaddresses/",
            "ip": "8.8.4.4",
            "alloc_type": 4,
            "created": "2017-03-29T22:48:21.610",
            "interface_set": [],
            "owner": {
                "email": "admin@example.com",
                "resource_uri": "/MAAS/api/2.0/users/mpontillo/",
                "is_superuser": true,
                "username": "mpontillo"
            }
        }
    ],
    "id": 15,
    "address_ttl": null
}
root@maas:~# dig @127.0.0.1 dns.maas

; <<>> DiG 9.10.3-P4-Ubuntu <<>> @127.0.0.1 dns.maas
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42519
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;dns.maas.     IN  A

;; ANSWER SECTION:
dns.maas.  30  IN  A   8.8.4.4
dns.maas.  30  IN  A   8.8.8.8

;; AUTHORITY SECTION:
maas.  30  IN  NS  maas.

;; ADDITIONAL SECTION:
maas.  30  IN  A   172.16.42.2

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Apr 21 18:27:52 UTC 2017
;; MSG SIZE  rcvd: 112
Download as text