DiscoDNSHelperSchema.cfg configuration file

The DiscoDNSHelperSchema.cfg configuration file defines access to DNS, which enables the discovery to do domain name lookups, by configuring the DNS helper.

Database tables used

The DiscoDNSHelperSchema.cfg configuration file can be used to configure inserts into the following database tables:
  • DNSHelper.configuration
  • DNShelper.methods

Sample: configuring the DNS helper

The following example inserts configure the DNS helper using the information in the DNSHelper.configuration database table and the DNShelper.methods database table. The example shows inserts into the DNShelper.methods database table corresponding to the following method types:
  • 0 - System
  • 1 - DNS using m_NameDomain to specify a domain suffix to append to all discovered device names.
  • 1 - DNS using m_NameDomainList to specify a list of expected domain suffixes.
  • 2 - File
insert into DNSHelper.configuration
(
     m_NumThreads, m_MethodList, m_TimeOut
)
values
(
     1, ['HostsFile'] , 5
);

insert into DNSHelper.methods
(
     m_MethodName, m_MethodType
)
values
(
     "HostService", 0
);

insert into DNSHelper.methods
(
     m_MethodName, m_MethodType, m_NameServerAddr, m_TimeOut, m_NameDomain
)
values
(
     "abcIPv6DNS", 1, "2222:15f8:106:203:250:4ff:fee8:6d75", 3, "tivlab.raleigh.ibm.com"
);

insert into DNSHelper.methods
(
     m_MethodName, m_MethodType, m_TimeOut, m_NameServerAddr, m_NameDomainList
)
values
(
     "defIPv6DNS", 1, 3, "2222:15f8:106:203:250:4ff:fee8:6d75",
     ['uk.eu.org',
     'fra.eu.org',
     'de.eu.org',
     'it.eu.org',
     'sp.eu.org']
);

insert into DNSHelper.methods
(
     m_MethodName, m_MethodType, m_FileName, m_FileOrder
)
values
(
     'HostsFile', 2, 'etc/hosts', 1
);