diff --git a/Doxyfile b/Doxyfile index 068b785..6875e05 100644 --- a/Doxyfile +++ b/Doxyfile @@ -48,7 +48,7 @@ PROJECT_NAME = DNScode # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 1.6.3 +PROJECT_NUMBER = 1.6.4 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/docs/html/README_8md.html b/docs/html/README_8md.html index d3065ff..fc0a25e 100644 --- a/docs/html/README_8md.html +++ b/docs/html/README_8md.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/____init_____8py.html b/docs/html/____init_____8py.html index 19b14ea..9d8d7e4 100644 --- a/docs/html/____init_____8py.html +++ b/docs/html/____init_____8py.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/annotated.html b/docs/html/annotated.html index b7312d4..7aea7e9 100644 --- a/docs/html/annotated.html +++ b/docs/html/annotated.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1A-members.html b/docs/html/classdnscode_1_1dnscode_1_1A-members.html index 5f31045..02acd12 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1A-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1A-members.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1A.html b/docs/html/classdnscode_1_1dnscode_1_1A.html index 5e7f6af..bd7666a 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1A.html +++ b/docs/html/classdnscode_1_1dnscode_1_1A.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1AAAA-members.html b/docs/html/classdnscode_1_1dnscode_1_1AAAA-members.html index 2587ac6..7616789 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1AAAA-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1AAAA-members.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1AAAA.html b/docs/html/classdnscode_1_1dnscode_1_1AAAA.html index 4d7fe82..627f7eb 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1AAAA.html +++ b/docs/html/classdnscode_1_1dnscode_1_1AAAA.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1CNAME-members.html b/docs/html/classdnscode_1_1dnscode_1_1CNAME-members.html index 581eedf..34a4992 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1CNAME-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1CNAME-members.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1CNAME.html b/docs/html/classdnscode_1_1dnscode_1_1CNAME.html index d4e0ab7..7a80ea6 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1CNAME.html +++ b/docs/html/classdnscode_1_1dnscode_1_1CNAME.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1InvalidDataException-members.html b/docs/html/classdnscode_1_1dnscode_1_1InvalidDataException-members.html index aa98bf9..c4c37a5 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1InvalidDataException-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1InvalidDataException-members.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1InvalidDataException.html b/docs/html/classdnscode_1_1dnscode_1_1InvalidDataException.html index 715bd18..4661a21 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1InvalidDataException.html +++ b/docs/html/classdnscode_1_1dnscode_1_1InvalidDataException.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1MX-members.html b/docs/html/classdnscode_1_1dnscode_1_1MX-members.html index 0bce7be..9caf989 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1MX-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1MX-members.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1MX.html b/docs/html/classdnscode_1_1dnscode_1_1MX.html index fb948d5..6d97216 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1MX.html +++ b/docs/html/classdnscode_1_1dnscode_1_1MX.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1NS-members.html b/docs/html/classdnscode_1_1dnscode_1_1NS-members.html index e2ca462..f14f59f 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1NS-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1NS-members.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1NS.html b/docs/html/classdnscode_1_1dnscode_1_1NS.html index 7e1974d..6b1abcc 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1NS.html +++ b/docs/html/classdnscode_1_1dnscode_1_1NS.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1PTR-members.html b/docs/html/classdnscode_1_1dnscode_1_1PTR-members.html index 5684f27..076e715 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1PTR-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1PTR-members.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1PTR.html b/docs/html/classdnscode_1_1dnscode_1_1PTR.html index 3960536..d60f71a 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1PTR.html +++ b/docs/html/classdnscode_1_1dnscode_1_1PTR.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1Record-members.html b/docs/html/classdnscode_1_1dnscode_1_1Record-members.html index 6a1bda2..24efea1 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1Record-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1Record-members.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1Record.html b/docs/html/classdnscode_1_1dnscode_1_1Record.html index 19aa62d..b7e1690 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1Record.html +++ b/docs/html/classdnscode_1_1dnscode_1_1Record.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1SOA-members.html b/docs/html/classdnscode_1_1dnscode_1_1SOA-members.html index 021926b..b4a6b60 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1SOA-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1SOA-members.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1SOA.html b/docs/html/classdnscode_1_1dnscode_1_1SOA.html index 0d9bbff..879e747 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1SOA.html +++ b/docs/html/classdnscode_1_1dnscode_1_1SOA.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1SRV-members.html b/docs/html/classdnscode_1_1dnscode_1_1SRV-members.html index 0606a39..f9607e7 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1SRV-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1SRV-members.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1SRV.html b/docs/html/classdnscode_1_1dnscode_1_1SRV.html index 64d4cf3..e449677 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1SRV.html +++ b/docs/html/classdnscode_1_1dnscode_1_1SRV.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1TXT-members.html b/docs/html/classdnscode_1_1dnscode_1_1TXT-members.html index 70a9884..78cb059 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1TXT-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1TXT-members.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/classdnscode_1_1dnscode_1_1TXT.html b/docs/html/classdnscode_1_1dnscode_1_1TXT.html index 2dd0535..1c0c239 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1TXT.html +++ b/docs/html/classdnscode_1_1dnscode_1_1TXT.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
@@ -126,7 +126,7 @@ Public Member Functions - + @@ -218,7 +218,7 @@ Additional Inherited Members

Public Attributes

str rtype = 'CNAME'
str rtype = 'TXT'
 
 name = str(name)
 
- +
str dnscode.dnscode.TXT.rtype = 'CNAME'str dnscode.dnscode.TXT.rtype = 'TXT'
diff --git a/docs/html/classdnscode_1_1dnscode_1_1Zone-members.html b/docs/html/classdnscode_1_1dnscode_1_1Zone-members.html index 2705505..35e2e1c 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1Zone-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1Zone-members.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
@@ -122,6 +122,7 @@ $(function(){initNavTree('classdnscode_1_1dnscode_1_1Zone.html',''); initResizab recordsdnscode.dnscode.Zonestatic recordsdnscode.dnscode.Zone save_file(self, str filepath)dnscode.dnscode.Zone + save_stdout(self)dnscode.dnscode.Zone
diff --git a/docs/html/classdnscode_1_1dnscode_1_1Zone.html b/docs/html/classdnscode_1_1dnscode_1_1Zone.html index 7153da8..4f6edf6 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1Zone.html +++ b/docs/html/classdnscode_1_1dnscode_1_1Zone.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
@@ -136,6 +136,8 @@ Public Member Functions    add (self, Record record)   + save_stdout (self) +   save_file (self, str filepath)   @@ -592,6 +594,23 @@ Static Public Attributes
Saves the zone records to a file.
+
+
+ +

◆ save_stdout()

+ +
+
+ + + + + + + +
dnscode.dnscode.Zone.save_stdout ( self)
+
+

Member Data Documentation

diff --git a/docs/html/classdnscode_1_1dnscode_1_1Zone.js b/docs/html/classdnscode_1_1dnscode_1_1Zone.js index 52b9583..5280769 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1Zone.js +++ b/docs/html/classdnscode_1_1dnscode_1_1Zone.js @@ -14,5 +14,6 @@ var classdnscode_1_1dnscode_1_1Zone = [ "new_SRV", "classdnscode_1_1dnscode_1_1Zone.html#a9b7c828acb3d62f8c677efb4a858ef97", null ], [ "new_TXT", "classdnscode_1_1dnscode_1_1Zone.html#a602dd6071a6c3d1017e155c7ca2512a2", null ], [ "save_file", "classdnscode_1_1dnscode_1_1Zone.html#adfe5442ed2137a324f1c5ba676ba2043", null ], + [ "save_stdout", "classdnscode_1_1dnscode_1_1Zone.html#a9c2c7f534d5ab0f841bf4ad2fb62f188", null ], [ "records", "classdnscode_1_1dnscode_1_1Zone.html#a1e958c8be9cf4cc7c0f30bd227e15c5a", null ] ]; \ No newline at end of file diff --git a/docs/html/classes.html b/docs/html/classes.html index 2c0fc27..d5d6638 100644 --- a/docs/html/classes.html +++ b/docs/html/classes.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html b/docs/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html index e418214..b1f2962 100644 --- a/docs/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html +++ b/docs/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/dir_9064fec3e9ce615219688699dadf995c.html b/docs/html/dir_9064fec3e9ce615219688699dadf995c.html index af6bac2..95a8b70 100644 --- a/docs/html/dir_9064fec3e9ce615219688699dadf995c.html +++ b/docs/html/dir_9064fec3e9ce615219688699dadf995c.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/dnscode_8py.html b/docs/html/dnscode_8py.html index 910852f..792f2bb 100644 --- a/docs/html/dnscode_8py.html +++ b/docs/html/dnscode_8py.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/doxygen_crawl.html b/docs/html/doxygen_crawl.html index 0b7d1fd..5471746 100644 --- a/docs/html/doxygen_crawl.html +++ b/docs/html/doxygen_crawl.html @@ -167,6 +167,7 @@ + diff --git a/docs/html/files.html b/docs/html/files.html index 38719c2..14c4204 100644 --- a/docs/html/files.html +++ b/docs/html/files.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
diff --git a/docs/html/functions.html b/docs/html/functions.html index b68fb1a..e634809 100644 --- a/docs/html/functions.html +++ b/docs/html/functions.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
@@ -173,6 +173,7 @@ $(function(){initNavTree('functions.html',''); initResizable(true); });

- s -

diff --git a/docs/html/functions_func.html b/docs/html/functions_func.html index 2e02e53..2133418 100644 --- a/docs/html/functions_func.html +++ b/docs/html/functions_func.html @@ -29,7 +29,7 @@ -
DNScode 1.4.1 +
DNScode 1.6.3
Simplifying DNS configuration
@@ -115,6 +115,7 @@ $(function(){initNavTree('functions_func.html',''); initResizable(true); });
  • new_SRV() : dnscode.dnscode.Zone
  • new_TXT() : dnscode.dnscode.Zone
  • save_file() : dnscode.dnscode.Zone
  • +
  • save_stdout() : dnscode.dnscode.Zone
  • diff --git a/docs/html/functions_vars.html b/docs/html/functions_vars.html index 1dbf667..2a310ba 100644 --- a/docs/html/functions_vars.html +++ b/docs/html/functions_vars.html @@ -29,7 +29,7 @@ -
    DNScode 1.4.1 +
    DNScode 1.6.3
    Simplifying DNS configuration
    diff --git a/docs/html/hierarchy.html b/docs/html/hierarchy.html index 30c96a8..30046c3 100644 --- a/docs/html/hierarchy.html +++ b/docs/html/hierarchy.html @@ -29,7 +29,7 @@ -
    DNScode 1.4.1 +
    DNScode 1.6.3
    Simplifying DNS configuration
    diff --git a/docs/html/index.html b/docs/html/index.html index 47126de..de78158 100644 --- a/docs/html/index.html +++ b/docs/html/index.html @@ -29,7 +29,7 @@ -
    DNScode 1.4.1 +
    DNScode 1.6.3
    Simplifying DNS configuration
    diff --git a/docs/html/namespacednscode.html b/docs/html/namespacednscode.html index fd7bd83..4bfbbbf 100644 --- a/docs/html/namespacednscode.html +++ b/docs/html/namespacednscode.html @@ -29,7 +29,7 @@ -
    DNScode 1.4.1 +
    DNScode 1.6.3
    Simplifying DNS configuration
    diff --git a/docs/html/namespacednscode_1_1dnscode.html b/docs/html/namespacednscode_1_1dnscode.html index 6e459a1..bcda8ac 100644 --- a/docs/html/namespacednscode_1_1dnscode.html +++ b/docs/html/namespacednscode_1_1dnscode.html @@ -29,7 +29,7 @@ -
    DNScode 1.4.1 +
    DNScode 1.6.3
    Simplifying DNS configuration
    diff --git a/docs/html/namespaces.html b/docs/html/namespaces.html index cd2f2b2..dc5b59c 100644 --- a/docs/html/namespaces.html +++ b/docs/html/namespaces.html @@ -29,7 +29,7 @@ -
    DNScode 1.4.1 +
    DNScode 1.6.3
    Simplifying DNS configuration
    diff --git a/docs/html/navtreeindex0.js b/docs/html/navtreeindex0.js index d804b1e..5f0d01c 100644 --- a/docs/html/navtreeindex0.js +++ b/docs/html/navtreeindex0.js @@ -152,8 +152,8 @@ var NAVTREEINDEX0 = "classdnscode_1_1dnscode_1_1TXT.html#afa4964ab5586285b6e80af2a4dad4dc0":[5,0,0,0,10,1], "classdnscode_1_1dnscode_1_1Zone.html":[4,0,0,0,11], "classdnscode_1_1dnscode_1_1Zone.html":[5,0,0,0,11], -"classdnscode_1_1dnscode_1_1Zone.html#a1e958c8be9cf4cc7c0f30bd227e15c5a":[4,0,0,0,11,14], -"classdnscode_1_1dnscode_1_1Zone.html#a1e958c8be9cf4cc7c0f30bd227e15c5a":[5,0,0,0,11,14], +"classdnscode_1_1dnscode_1_1Zone.html#a1e958c8be9cf4cc7c0f30bd227e15c5a":[4,0,0,0,11,15], +"classdnscode_1_1dnscode_1_1Zone.html#a1e958c8be9cf4cc7c0f30bd227e15c5a":[5,0,0,0,11,15], "classdnscode_1_1dnscode_1_1Zone.html#a231de844d4fb88390d37a0be6dbc962e":[4,0,0,0,11,3], "classdnscode_1_1dnscode_1_1Zone.html#a231de844d4fb88390d37a0be6dbc962e":[5,0,0,0,11,3], "classdnscode_1_1dnscode_1_1Zone.html#a2718e32544f9310ce721bce73082bb97":[4,0,0,0,11,5], @@ -172,6 +172,8 @@ var NAVTREEINDEX0 = "classdnscode_1_1dnscode_1_1Zone.html#a6ff7d4cb63c08a7d06fc47c341e3bba4":[5,0,0,0,11,9], "classdnscode_1_1dnscode_1_1Zone.html#a9b7c828acb3d62f8c677efb4a858ef97":[4,0,0,0,11,11], "classdnscode_1_1dnscode_1_1Zone.html#a9b7c828acb3d62f8c677efb4a858ef97":[5,0,0,0,11,11], +"classdnscode_1_1dnscode_1_1Zone.html#a9c2c7f534d5ab0f841bf4ad2fb62f188":[4,0,0,0,11,14], +"classdnscode_1_1dnscode_1_1Zone.html#a9c2c7f534d5ab0f841bf4ad2fb62f188":[5,0,0,0,11,14], "classdnscode_1_1dnscode_1_1Zone.html#aabed9788e2e4be4c6b0628214492fdbe":[4,0,0,0,11,10], "classdnscode_1_1dnscode_1_1Zone.html#aabed9788e2e4be4c6b0628214492fdbe":[5,0,0,0,11,10], "classdnscode_1_1dnscode_1_1Zone.html#ad696206776c2c68471126d950fa178d1":[4,0,0,0,11,0], diff --git a/docs/html/search/all_c.js b/docs/html/search/all_c.js index 50dd30b..792d47f 100644 --- a/docs/html/search/all_c.js +++ b/docs/html/search/all_c.js @@ -1,9 +1,10 @@ var searchData= [ ['save_5ffile_0',['save_file',['../classdnscode_1_1dnscode_1_1Zone.html#adfe5442ed2137a324f1c5ba676ba2043',1,'dnscode::dnscode::Zone']]], - ['serial_1',['serial',['../classdnscode_1_1dnscode_1_1SOA.html#add157e2edf998925f74a55fc672616c2',1,'dnscode::dnscode::SOA']]], - ['service_2',['service',['../classdnscode_1_1dnscode_1_1SRV.html#a365a2b7ffaf0bdc718c49e20940213a0',1,'dnscode::dnscode::SRV']]], - ['simplifying_20dns_20zone_20management_3',['Simplifying DNS Zone management',['../index.html#autotoc_md1',1,'']]], - ['soa_4',['SOA',['../classdnscode_1_1dnscode_1_1SOA.html',1,'dnscode::dnscode']]], - ['srv_5',['SRV',['../classdnscode_1_1dnscode_1_1SRV.html',1,'dnscode::dnscode']]] + ['save_5fstdout_1',['save_stdout',['../classdnscode_1_1dnscode_1_1Zone.html#a9c2c7f534d5ab0f841bf4ad2fb62f188',1,'dnscode::dnscode::Zone']]], + ['serial_2',['serial',['../classdnscode_1_1dnscode_1_1SOA.html#add157e2edf998925f74a55fc672616c2',1,'dnscode::dnscode::SOA']]], + ['service_3',['service',['../classdnscode_1_1dnscode_1_1SRV.html#a365a2b7ffaf0bdc718c49e20940213a0',1,'dnscode::dnscode::SRV']]], + ['simplifying_20dns_20zone_20management_4',['Simplifying DNS Zone management',['../index.html#autotoc_md1',1,'']]], + ['soa_5',['SOA',['../classdnscode_1_1dnscode_1_1SOA.html',1,'dnscode::dnscode']]], + ['srv_6',['SRV',['../classdnscode_1_1dnscode_1_1SRV.html',1,'dnscode::dnscode']]] ]; diff --git a/docs/html/search/functions_3.js b/docs/html/search/functions_3.js index 56ee4d1..10f86c4 100644 --- a/docs/html/search/functions_3.js +++ b/docs/html/search/functions_3.js @@ -1,4 +1,5 @@ var searchData= [ - ['save_5ffile_0',['save_file',['../classdnscode_1_1dnscode_1_1Zone.html#adfe5442ed2137a324f1c5ba676ba2043',1,'dnscode::dnscode::Zone']]] + ['save_5ffile_0',['save_file',['../classdnscode_1_1dnscode_1_1Zone.html#adfe5442ed2137a324f1c5ba676ba2043',1,'dnscode::dnscode::Zone']]], + ['save_5fstdout_1',['save_stdout',['../classdnscode_1_1dnscode_1_1Zone.html#a9c2c7f534d5ab0f841bf4ad2fb62f188',1,'dnscode::dnscode::Zone']]] ]; diff --git a/pyproject.toml b/pyproject.toml index e39d550..5b504d1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "dnscode" -version = "1.6.3" +version = "1.6.4" authors = [ { name="Minecraftchest1", email="me@minec1.us" }, ] diff --git a/src/dnscode/dnscode.py b/src/dnscode/dnscode.py index 3acd094..c6cfa2e 100644 --- a/src/dnscode/dnscode.py +++ b/src/dnscode/dnscode.py @@ -275,9 +275,12 @@ class Zone: """Adds a record to the zone.""" self.records.append(record) + def save_stdout(self): + for record in self.records: + print(str(record)) + def save_file(self, filepath: str): """Saves the zone records to a file.""" with open(filepath, 'w') as file: for record in self.records: - file.write(str(record) + '\n') - print(str(record)) + file.write(str(record) + '\n') \ No newline at end of file