-- ----------------------------------------------------------------------------- -- MIB NAME : DNSResolver Common mib -- FILE NAME: DNSResolver.mib -- DATE : 2009/05/15 -- VERSION : 0.01 -- PURPOSE : To define MIB objects for DNS Resolver. -- ----------------------------------------------------------------------------- -- MODIFICTION HISTORY: -- ----------------------------------------------------------------------------- -- Version, Date, Author -- Description: -- [New Object] -- [Modification] -- Notes: (Requested by who and which project) -- -- Version , 2010/7/12, Garnet Tang -- Description: -- [Modification] -- [1]delete table swDNSResolverDynamicNameServerTable -- Notes: Requested by Garnet Tang for DES3526/50 R6. -- -- Version 0.01, 2009/05/15, Mark Luo -- This is the initial draft for universal MIB definition. -- ----------------------------------------------------------------------------- DNSResolver-MIB DEFINITIONS ::= BEGIN IMPORTS MODULE-IDENTITY, OBJECT-TYPE FROM SNMPv2-SMI RowStatus FROM SNMPv2-TC IpAddress FROM RFC1155-SMI InetAddressIPv4 FROM INET-ADDRESS-MIB dlink-common-mgmt FROM DLINK-ID-REC-MIB; swDNSResolverMIB MODULE-IDENTITY LAST-UPDATED "0905150000Z" ORGANIZATION "D-Link Corp." CONTACT-INFO "http://support.dlink.com" DESCRIPTION "This MIB module defining objects for the management of DNS Resolver." ::= { dlink-common-mgmt 90 } -- Textual conventions DnsName ::= TEXTUAL-CONVENTION -- A DISPLAY-HINT would be nice, but difficult to express. STATUS current DESCRIPTION "A DNS name is a sequence of labels. When DNS names are displayed, the boundaries between labels are typically indicated by dots (e.g. `Acme' and `COM' are labels in the name `Acme.COM'). In the DNS protocol, however, no such separators are needed because each label is encoded as a length octet followed by the indicated number of octets of label. For example, `Acme.COM' is encoded as the octet sequence { 4, 'A', 'c', 'm', 'e', 3, 'C', 'O', 'M', 0 } (the final 0 is the length of the name of the root domain, which appears implicitly at the end of any DNS name). This MIB uses the same encoding as the DNS protocol. A DnsName must always be a fully qualified name. It is an error to encode a relative domain name as a DnsName without first making it a fully qualified name." REFERENCE "RFC-1034 section 3.1." SYNTAX OCTET STRING (SIZE (0..255)) DnsTime ::= TEXTUAL-CONVENTION DISPLAY-HINT "d" STATUS current DESCRIPTION "DnsTime values are 32-bit unsigned integers which measure time in seconds." REFERENCE "RFC-1035." SYNTAX Integer32 (1..2147483647) swDNSResolver OBJECT IDENTIFIER ::= { swDNSResolverMIB 1 } -- ----------------------------------------------------------------------------- -- swDNSResolverState -- ----------------------------------------------------------------------------- swDNSResolverState OBJECT-TYPE SYNTAX INTEGER { enabled(1), disabled(2) } MAX-ACCESS read-write STATUS current DESCRIPTION "This object indaicates the DNS Resolver state. default, the state is enabled" DEFVAL {1} ::={swDNSResolver 1} -- ----------------------------------------------------------------------------- -- swDNSResolverNameServerTimeOut -- ----------------------------------------------------------------------------- swDNSResolverNameServerTimeOut OBJECT-TYPE SYNTAX INTEGER (1..60) MAX-ACCESS read-write STATUS current DESCRIPTION "This object indaicates the DNS Resolver name server time out. The default value is 3 seconds." DEFVAL {3} ::={swDNSResolver 2} -- ----------------------------------------------------------------------------- -- swDNSResolverStaticNameServerTable -- ----------------------------------------------------------------------------- swDNSResolverStaticNameServerTable OBJECT-TYPE SYNTAX SEQUENCE OF SwDNSResolverStaticNameServerEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "The table specifies DNS resolver static name server information." ::= { swDNSResolver 3} swDNSResolverStaticNameServerEntry OBJECT-TYPE SYNTAX SwDNSResolverStaticNameServerEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This entry includes all DNS resolver static name server information." INDEX { swDNSResolverStaticNameServerIndex } ::= { swDNSResolverStaticNameServerTable 1 } SwDNSResolverStaticNameServerEntry ::= SEQUENCE { swDNSResolverStaticNameServerIndex INTEGER, swDNSResolverStaticNameServerRowStatus RowStatus, swDNSResolverStaticNameServer IpAddress, swDNSResolverStaticNameServerType INTEGER } swDNSResolverStaticNameServerIndex OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS not-accessible STATUS current DESCRIPTION "This object indicates the DNS resolver static name server table index." ::= { swDNSResolverStaticNameServerEntry 1 } swDNSResolverStaticNameServerRowStatus OBJECT-TYPE SYNTAX RowStatus MAX-ACCESS read-create STATUS current DESCRIPTION "This object manages this entry." ::= { swDNSResolverStaticNameServerEntry 2 } swDNSResolverStaticNameServer OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-create STATUS current DESCRIPTION "This object indicates the the DNS resolver static name server." ::= { swDNSResolverStaticNameServerEntry 3 } swDNSResolverStaticNameServerType OBJECT-TYPE SYNTAX INTEGER { normal(1), primary(2) } MAX-ACCESS read-create STATUS current DESCRIPTION "This object indicates the DNS resolver static name server is primary name server or normal name server." ::= { swDNSResolverStaticNameServerEntry 4 } -- ----------------------------------------------------------------------------- -- swDNSResolverStaticHostNameTable -- ----------------------------------------------------------------------------- swDNSResolverStaticHostNameTable OBJECT-TYPE SYNTAX SEQUENCE OF SwDNSResolverStaticHostNameEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "The table specifies DNS resolver static host name information." ::= { swDNSResolver 5} swDNSResolverStaticHostNameEntry OBJECT-TYPE SYNTAX SwDNSResolverStaticHostNameEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This entry includes all DNS resolver static host name information." INDEX { swDNSResolverStaticHostNameIndex } ::= { swDNSResolverStaticHostNameTable 1 } SwDNSResolverStaticHostNameEntry ::= SEQUENCE { swDNSResolverStaticHostNameIndex INTEGER, swDNSResolverStaticHostNameRowStatus RowStatus, swDNSResolverStaticHostName DnsName, swDNSResolverStaticHostNameIPAddr IpAddress } swDNSResolverStaticHostNameIndex OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS not-accessible STATUS current DESCRIPTION "This object indicates the DNS resolver static domain name index" ::= { swDNSResolverStaticHostNameEntry 1 } swDNSResolverStaticHostNameRowStatus OBJECT-TYPE SYNTAX RowStatus MAX-ACCESS read-create STATUS current DESCRIPTION "This object manages this entry." ::= { swDNSResolverStaticHostNameEntry 2 } swDNSResolverStaticHostName OBJECT-TYPE SYNTAX DnsName MAX-ACCESS read-create STATUS current DESCRIPTION "This object indicates the DNS resolver static host name." ::= { swDNSResolverStaticHostNameEntry 3 } swDNSResolverStaticHostNameIPAddr OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-create STATUS current DESCRIPTION "This object indicates the the DNS resolver static host name IP address." ::= { swDNSResolverStaticHostNameEntry 4 } -- ----------------------------------------------------------------------------- -- swDNSResolverDynamicHostNameTable -- ----------------------------------------------------------------------------- swDNSResolverDynamicHostNameTable OBJECT-TYPE SYNTAX SEQUENCE OF SwDNSResolverDynamicHostNameEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "The table specifies DNS resolver dynamic host name information." ::= { swDNSResolver 6} swDNSResolverDynamicHostNameEntry OBJECT-TYPE SYNTAX SwDNSResolverDynamicHostNameEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This entry includes all DNS resolver dynamic host name information." INDEX { swDNSResolverDynamicHostNameIndex } ::= { swDNSResolverDynamicHostNameTable 1 } SwDNSResolverDynamicHostNameEntry ::= SEQUENCE { swDNSResolverDynamicHostNameIndex INTEGER, swDNSResolverDynamicHostName DnsName, swDNSResolverDynamicHostNameIPAddr IpAddress, swDNSResolverDynamicHostNameTTL DnsTime } swDNSResolverDynamicHostNameIndex OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS not-accessible STATUS current DESCRIPTION "This object indicates the DNS resolver dynamic host name index." ::= { swDNSResolverDynamicHostNameEntry 1 } swDNSResolverDynamicHostName OBJECT-TYPE SYNTAX DnsName MAX-ACCESS read-only STATUS current DESCRIPTION "This object indicates the DNS resolver host domain name." ::= { swDNSResolverDynamicHostNameEntry 2 } swDNSResolverDynamicHostNameIPAddr OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION "This object indicates the the DNS resolver dynamic host name IP address." ::= { swDNSResolverDynamicHostNameEntry 3 } swDNSResolverDynamicHostNameTTL OBJECT-TYPE SYNTAX DnsTime MAX-ACCESS read-only STATUS current DESCRIPTION "This object indicates the time of a DNS RR remained in caches to live." ::= { swDNSResolverDynamicHostNameEntry 4 } END