-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDNSRecord.java
More file actions
49 lines (44 loc) · 1.05 KB
/
DNSRecord.java
File metadata and controls
49 lines (44 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* Represents a DNS Record: either a query or a response.
*
* @author Chris Blades
* @version 3/12/2010
*/
public interface DNSRecord extends DNSObject {
/**
* Returns the name of the record.
*
* @return the name of the record
*/
public DNSUrl getName();
/**
* Returns the type of the record.
*
* @return the type of the record.
*/
public DNSRecordType getType();
/**
* Returns the DNS class of the record.
*
* @return the DNS class of the record.
*/
public DNSRecordClass getRecordClass();
/**
* Changes the name of the record.
*
* @param name the new name of the record
*/
public void setName(DNSUrl name);
/**
* Changes the type of the record.
*
* @param type the new type of the record
*/
public void setType(DNSRecordType type);
/**
* Changes the class of the record.
*
* @param recordClass the new class of the record
*/
public void setClass(DNSRecordClass recordClass);
}