DNScode 0.1.9
Simplifying DNS configuration
Loading...
Searching...
No Matches
dnscode.dnscode.SRV Class Reference
Inheritance diagram for dnscode.dnscode.SRV:
dnscode.dnscode.Record

Public Member Functions

 __init__ (self, str name='@', int ttl=3600, str service="service", str protocol='proto', int priority=10, int weight=10, int port=0, str host='example.com')
 
- Public Member Functions inherited from dnscode.dnscode.Record
 __str__ (self)
 

Public Attributes

str rtype = 'SRV'
 
str name = f"_{service}._{protocol}.{name}"
 
 ttl = ttl
 
 service = service
 
 protocol = protocol
 
 priority = priority
 
 weight = weight
 
 port = port
 
 target = target
 
str data = f"{self.priority} {self.weight} {self.port} {self.target}"
 

Additional Inherited Members

- Static Public Attributes inherited from dnscode.dnscode.Record
str rclass = 'IN'
 
str rtype = 'A'
 
str name = '@'
 
str data = '0.0.0.0'
 
int ttl = 3600
 

Detailed Description

Represents an 'SRV' (Service) record.

Constructor & Destructor Documentation

◆ __init__()

dnscode.dnscode.SRV.__init__ ( self,
str name = '@',
int ttl = 3600,
str service = "service",
str protocol = 'proto',
int priority = 10,
int weight = 10,
int port = 0,
str host = 'example.com' )

Member Data Documentation

◆ data

str dnscode.dnscode.SRV.data = f"{self.priority} {self.weight} {self.port} {self.target}"

◆ name

str dnscode.dnscode.SRV.name = f"_{service}._{protocol}.{name}"

◆ port

dnscode.dnscode.SRV.port = port

◆ priority

dnscode.dnscode.SRV.priority = priority

◆ protocol

dnscode.dnscode.SRV.protocol = protocol

◆ rtype

str dnscode.dnscode.SRV.rtype = 'SRV'

◆ service

dnscode.dnscode.SRV.service = service

◆ target

dnscode.dnscode.SRV.target = target

◆ ttl

dnscode.dnscode.SRV.ttl = ttl

◆ weight

dnscode.dnscode.SRV.weight = weight

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