summaryrefslogtreecommitdiff
path: root/project2/proj2_s4498062/dns/zone.py
diff options
context:
space:
mode:
authorCamil Staps2016-05-30 15:47:13 +0200
committerCamil Staps2016-05-30 15:47:13 +0200
commitf194d597422d2092578701d0f7ed2bf6958dd14c (patch)
treef264f8a6a577a12e9d961f0989d3083406977a3a /project2/proj2_s4498062/dns/zone.py
parentAssignment 7 (diff)
Remove old project 2
Diffstat (limited to 'project2/proj2_s4498062/dns/zone.py')
-rw-r--r--project2/proj2_s4498062/dns/zone.py54
1 files changed, 0 insertions, 54 deletions
diff --git a/project2/proj2_s4498062/dns/zone.py b/project2/proj2_s4498062/dns/zone.py
deleted file mode 100644
index accea99..0000000
--- a/project2/proj2_s4498062/dns/zone.py
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/usr/bin/env python2
-
-""" Zones of domain name space
-
-See section 6.1.2 of RFC 1035 and section 4.2 of RFC 1034.
-Instead of tree structures we simply use dictionaries from domain names to
-zones or record sets.
-
-These classes are merely a suggestion, feel free to use something else.
-"""
-
-
-class Catalog(object):
- """ A catalog of zones """
-
- def __init__(self):
- """ Initialize the catalog """
- self.zones = {}
-
- def add_zone(self, name, zone):
- """ Add a new zone to the catalog
-
- Args:
- name (str): root domain name
- zone (Zone): zone
- """
- self.zones[name] = zone
-
-
-class Zone(object):
- """ A zone in the domain name space """
-
- def __init__(self):
- """ Initialize the Zone """
- self.records = {}
-
- def add_node(self, name, record_set):
- """ Add a record set to the zone
-
- Args:
- name (str): domain name
- record_set ([ResourceRecord]): resource records
- """
- self.records[name] = record_set
-
- def read_master_file(self, filename):
- """ Read the zone from a master file
-
- See section 5 of RFC 1035.
-
- Args:
- filename (str): the filename of the master file
- """
- pass