daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Sep 23rd, 2018 52 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. >>> from noc.dns.models import *
  2. >>> z=DNSZone.objects.get(name="gnc.am")
  3. >>> print z.get_records()
  4. [(u'@', <DNSZoneRecordType: A>, u'46.19.96.22', 3600, None), (u'@', <DNSZoneRecordType: NS>, u'ns1.gnc.am.', 3600, None), (u'@', <DNSZoneRecordType: NS>, u'ns2.gnc.am.', 3600, None), (u'@', <DNSZoneRecordType: MX>, u'10 ns2.gnc.am.', 3600, None), (u'@', <DNSZoneRecordType: MX>, u'5 mx.gnc.am.', 3600, None), (u'@', <DNSZoneRecordType: AAAA>, u'2a02:2a50:6::80', 3600, None), (u'AS49800', 'A', '46.19.96.1', 3600, None), (u'AS49800', 'A', '46.19.96.4', 3600, None), (u'AS49800-ipv6', 'AAAA', '2a02:2a50::1', 3600, None), (u'as196709', 'A', '46.19.96.3', 3600, None), (u'as196709', 'AAAA', '2a02:2a50::3', 3600, None), (u'as6682', 'A', '46.19.96.2', 3600, None), (u'as6682', 'AAAA', '2a02:2a50::2', 3600, None), (u'asr', 'AAAA', '2a02:2a50::4', 3600, None), (u'asr-services-yerevan', 'A', '46.19.96.49', 3600, None), (u'aua', 'A', '46.19.96.94', 3600, None), (u'aua-gw', 'A', '46.19.96.93', 3600, None), (u'blind', 'A', '46.19.96.46', 3600, None), (u'cacti', <DNSZoneRecordType: CNAME>, u'ns1.gnc.am.', 3600, None), (u'crm', 'A', '46.19.96.22', 3600, None), (u'cs', 'A', '46.19.96.45', 3600, None), (u'dir-harkadir-management', 'A', '10.0.1.104', 3600, None), (u'dlink-pashtonakan-taghekagir-management', 'A', '10.0.1.113', 3600, None), (u'dvr-managament', 'A', '46.19.96.37', 3600, None), (u'emerald', <DNSZoneRecordType: A>, u'192.168.0.126', 3600, None), (u'gitc-gw', 'A', '46.19.100.137', 3600, None), (u'gw-arlis', 'A', '46.19.100.113', 3600, None), (u'gw-biline', 'A', '31.47.194.193', 3600, None), (u'gw-helvesys', 'A', '46.19.96.97', 3600, None), (u'gw-legal', 'A', '31.47.194.153', 3600, None), (u'ipcam-management', 'A', '46.19.96.38', 3600, None), (u'ipv6', <DNSZoneRecordType: CNAME>, u'ns1.gnc.am.', 3600, None), (u'lg', <DNSZoneRecordType: CNAME>, u'ns1.gnc.am.', 3600, None), (u'mail', <DNSZoneRecordType: CNAME>, u'mx.gnc.am.', 3600, None), (u'management', 'IN NS', u'ns1.gnc.am.'), (u'management', 'IN NS', u'ns2.gnc.am.'), (u'mashtoc-garden-wifi-1-management', 'A', '10.0.1.117', 3600, None), (u'mashtoc-garden-wifi-2-management', 'A', '10.0.1.118', 3600, None), (u'mc', 'A', '10.0.6.14', 3600, None), (u'microsoft', 'A', '46.19.100.1', 3600, None), (u'mikayel', 'A', '46.19.96.35', 3600, None), (u'misak', <DNSZoneRecordType: AAAA>, u'2a02:2a50:6:1::2', 3600, None), (u'misak', <DNSZoneRecordType: A>, u'46.19.96.34', 3600, None), (u'misak', 'A', '46.19.96.34', 3600, None), (u'monitoring', <DNSZoneRecordType: A>, u'46.19.96.20', 3600, None), (u'monitoring', 'A', '46.19.96.20', 3600, None), (u'mx', <DNSZoneRecordType: AAAA>, u'2a02:2a50:6::25', 3600, None), (u'mx', 'A', '46.19.96.21', 3600, None), (u'mx', 'AAAA', '2a02:2a50:6::25', 3600, None), (u'netmgmt', 'A', '46.19.96.33', 3600, None), (u'noc', <DNSZoneRecordType: A>, u'10.0.6.11', 3600, None), (u'ns1', <DNSZoneRecordType: AAAA>, u'2a02:2a50:6::53', 3600, None), (u'ns1', <DNSZoneRecordType: PTR>, u'46.19.96.18', 3600, None), (u'ns1', <DNSZoneRecordType: A>, u'46.19.96.18', 3600, None), (u'ns1', 'A', '46.19.96.18', 3600, None), (u'ns1', 'A', '46.19.96.18', 3600, None), (u'ns1', 'AAAA', '2a02:2a50:6::53', 3600, None), (u'ns2', <DNSZoneRecordType: A>, u'46.19.96.50', 3600, None), (u'ns2', <DNSZoneRecordType: PTR>, u'46.19.96.50', 3600, None), (u'ns2', 'A', '46.19.96.50', 3600, None), (u'ns2', 'A', '46.19.96.50', 3600, None), (u'ns2', 'AAAA', '2a02:2a50:1::53', 3600, None), (u'office', 'A', '46.19.96.19', 3600, None), (u'pasha', 'A', '46.19.96.39', 3600, None), (u'pasha1', 'A', '46.19.96.40', 3600, None), (u'sip', 'A', '46.19.96.23', 3600, None), (u'sip-gw1', 'A', '46.19.98.46', 3600, None), (u'sip-gw2', 'A', '46.19.98.86', 3600, None), (u'srx-abovyan', 'A', '10.0.6.254', 3600, None), (u'srx-abovyan', 'AAAA', '2a02:2a50:6::1', 3600, None), (u'www', <DNSZoneRecordType: A>, u'46.19.96.22', 3600, None), (u'www', <DNSZoneRecordType: AAAA>, u'2a02:2a50:6::80', 3600, None), (u'zeppelin-gw', 'A', '46.19.100.153', 3600, None)]
  5.  
  6.  
  7.  
  8. >>> z=DNSZone.objects.get(name="alfalumen.am")
  9. >>>
  10. >>>
  11. >>> print z.get_records()
  12. [(u'@', <DNSZoneRecordType: NS>, u'ns1.alfalumen.am.', 3600, None), (u'@', <DNSZoneRecordType: NS>, u'ns2.alfalumen.am.', 3600, None), (u'@', <DNSZoneRecordType: A>, u'46.19.96.22', 3600, None), (u'@', <DNSZoneRecordType: MX>, u'10 ns2.alfalumen.am.', 3600, None), (u'@', <DNSZoneRecordType: MX>, u'5 mx.alfalumen.am.', 3600, None), (u'gnc', <DNSZoneRecordType: A>, u'46.19.96.22', 3600, None), (u'mail', <DNSZoneRecordType: CNAME>, u'mx.alfalumen.am.', 3600, None), (u'mx', <DNSZoneRecordType: AAAA>, u'2a02:2a50:6::25', 3600, None), (u'mx', <DNSZoneRecordType: A>, u'46.19.96.21', 3600, None), (u'ns1', <DNSZoneRecordType: PTR>, u'46.19.96.18', 3600, None), (u'ns1', <DNSZoneRecordType: AAAA>, u'2a02:2a50:6::53', 3600, None), (u'ns1', <DNSZoneRecordType: A>, u'46.19.96.18', 3600, None), (u'ns2', <DNSZoneRecordType: A>, u'46.19.96.50', 3600, None), (u'ns2', <DNSZoneRecordType: PTR>, u'46.19.96.50', 3600, None), (u'www', <DNSZoneRecordType: CNAME>, u'alfalumen.am.', 3600, None)]
  13. >>>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top