C# 클래스 Ipop.Dns

A basic abstract Dns server. Must implement the translation process using NameLookUp and AddressLookUp.
파일 보기 프로젝트 열기: pstjuste/brunet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DomainName string

보호된 프로퍼티들

프로퍼티 타입 설명
_base_address MemBlock
_forward_queries bool
_name_server System.Net.EndPoint
_netmask MemBlock

공개 메소드들

메소드 설명
AddressLookUp ( String name ) : String

Called during LookUp to perform translation from hostname to IP

Dns ( MemBlock ip_address, MemBlock netmask, string name_server, bool forward_queries ) : Brunet

Default constructor

LookUp ( IPPacket in_ip ) : IPPacket

Look up a hostname given a Dns request in the form of IPPacket

NameLookUp ( String IP ) : String

Called during LookUp to perfrom a translation from IP to hostname.

Resolve ( EndPoint server, byte request ) : MemBlock

Sends Dns query to Dns Server and returns the response.

보호된 메소드들

메소드 설명
InRange ( String IP ) : bool

Determines if an IP Address is in the applicable range for the Dns server

메소드 상세

AddressLookUp() 공개 추상적인 메소드

Called during LookUp to perform translation from hostname to IP
public abstract AddressLookUp ( String name ) : String
name String The name to lookup
리턴 String

Dns() 공개 메소드

Default constructor
public Dns ( MemBlock ip_address, MemBlock netmask, string name_server, bool forward_queries ) : Brunet
ip_address MemBlock An IP Address in the range.
netmask MemBlock The netmask for the range.
name_server string The external name server to be queried.
forward_queries bool Set if queries are to be forwarded to external name server.
리턴 Brunet

InRange() 보호된 메소드

Determines if an IP Address is in the applicable range for the Dns server
protected InRange ( String IP ) : bool
IP String The IP Address to test.
리턴 bool

LookUp() 공개 메소드

Look up a hostname given a Dns request in the form of IPPacket
public LookUp ( IPPacket in_ip ) : IPPacket
in_ip NetworkPackets.IPPacket An IPPacket containing the Dns request
리턴 NetworkPackets.IPPacket

NameLookUp() 공개 추상적인 메소드

Called during LookUp to perfrom a translation from IP to hostname.
public abstract NameLookUp ( String IP ) : String
IP String The IP to look up.
리턴 String

Resolve() 공개 메소드

Sends Dns query to Dns Server and returns the response.
public Resolve ( EndPoint server, byte request ) : MemBlock
server System.Net.EndPoint
request byte
리턴 MemBlock

프로퍼티 상세

DomainName 공개적으로 정적으로 프로퍼티

Domain name is:
public static string DomainName
리턴 string

_base_address 보호되어 있는 프로퍼티

The base ip address to perfom lookups on
protected MemBlock _base_address
리턴 MemBlock

_forward_queries 보호되어 있는 프로퍼티

Is true if IPOP is asked to forward Dns queries to external nameserver
protected bool _forward_queries
리턴 bool

_name_server 보호되어 있는 프로퍼티

Dns Server
protected EndPoint,System.Net _name_server
리턴 System.Net.EndPoint

_netmask 보호되어 있는 프로퍼티

The mask for the ip address to perform lookups on.
protected MemBlock _netmask
리턴 MemBlock