DNScode 0.1.9
Simplifying DNS configuration
Loading...
Searching...
No Matches
main.Record Class Reference

Base Classes. More...

Inheritance diagram for main.Record:
main.A main.AAAA main.CNAME main.SOA

Public Member Functions

 __int__ (self, str name='@', str ttl=3600, str rtype='A', str data='0.0.0.0')
 
 __str__ (self)
 

Static Public Attributes

str rclass = 'IN'
 
str rtype = 'A'
 
str name = '@'
 
str data = '0.0.0.0'
 
int ttl = 6400
 

Detailed Description

Base Classes.

Base object to store records as.

Member Function Documentation

◆ __int__()

main.Record.__int__ ( self,
str name = '@',
str ttl = 3600,
str rtype = 'A',
str data = '0.0.0.0' )
Initalize object with values from arguments.

        Arguments:
        name    = Record name.
        ttl     = How long the record is valid for.
        rtype   = Record Type
        data    = Value to store in the dns record.

◆ __str__()

main.Record.__str__ ( self)

Reimplemented in main.SOA.

Member Data Documentation

◆ data

str main.Record.data = '0.0.0.0'
static

◆ name

str main.Record.name = '@'
static

◆ rclass

str main.Record.rclass = 'IN'
static

◆ rtype

str main.Record.rtype = 'A'
static

◆ ttl

int main.Record.ttl = 6400
static

The documentation for this class was generated from the following file: