adding dns in named db file directly
For Directadmin
| ||
SRV records provide a standard way of allowing services to use different values, and for a program to determine what those connection values are. Related Wikipedia page: http://en.wikipedia.org/wiki/SRV_record As per the Wikipedia page, the format will look like this: _service._proto.name TTL class SRV priority weight port target We'll use their example: _sip._tcp.example.com. 86400 IN SRV 0 5 5060 sipserver.example.com. The red portion goes onto the left side of the SRV record in DA, and the blue portion goes onto the right side (DA sets the TTL automatically for you)The Red portion of the contains the service, protocol, and name, in that order, separated by the period '.' character. In the above example, the values match up as follows: service: _sip Note that the "name" value will always match the name of the zone. As such, these 2 left-side values are equivalent, and either could be used: _sip._tcp.example.com. The "target" value can be any domain value, but should resolve using an A or CNAME record. The same rule about the value ending in a period applies, and would be mandatory if the target is on a different domain name. |
Using SRV and TXT records
The DNS lookup routine looks for SRV records first. If one or more servers are found, this server information is used and the second algorithm, which is based on TXT records that emulate SRV records, is not used. The use of SRV records for finding the address of servers is described in RFC 2052. Proper use of SRV records permits the administrator to distribute a service across multiple hosts within a domain, to move the service from host to host without disruption, and to designate certain hosts as primary and others as alternates.
TXT records are simply character strings that are associated with a DNS resource name. LDAP uses TXT records to associate LDAP server information with a DNS host name. To implement the technique that is described in RFC 2052, the DNS name server must support both SRV and TXT records.
- service
- Symbolic name of the service. The service name is formed by concatenating the service key and the eNetwork domain name (if any). The LDAP client accepts either
ldap
or_ldap
for the service key. The latest version of RFC 2052 recommends the use of_ldap
instead ofldap
. - protocol
- Protocol used to access the service. The LDAP client accepts either
tcp
or_tcp
. The latest version of RFC 2052 recommends the use of_tcp
instead oftcp
. - domain
- Domain name associated with the resource record.
- ttl
- Time-to-live in seconds.
- class
- Class (must be
IN
for internet). - SRV
- Indicates this is an SRV record.
- priority
- Service priority. LDAP servers are ordered by priority with the lower priority numbers ordered before the higher priority numbers. Set the priority to
0
if priority ordering is not wanted. - weight
- Load balancing within the same priority. A higher weight number indicates that the server can handle more requests than a lower weight number. The probability that a server is ordered early in the list increases as the weight increases. Set the weight to
0
if load balancing is not wanted. Otherwise, use nonzero values for all the weights within the same priority. (An SRV record with a weight of0
has a low probability of being ordered before an SRV record with a nonzero weight). - port
- The port assigned to the LDAP server. This value is ignored if the target address record has a
service
TXT record. If the port number is0
, the port is set to389
. - target
- The name of the target address resource record (
A
,AAAA
, orA6
). The host name used to connect to the LDAP server is obtained from theservice
TXT record associated with this resource name. If there is noservice
TXT record defined for the target, the IP address is obtained from the address record.
- name
- Resource name associated with the TXT record.
- TXT
- Indicates this is a TXT record.
- string
- Text value.
389
if it is not specified. A naming context can be specified to allow server entries to be selectively filtered based upon a distinguished name. Multiple service
TXT records must be defined if more than one naming context is defined for a single LDAP server or if the LDAP server supports both SSL and non-SSL connections.636
if it is not specified. A naming context can be specified to allow server entries to be selectively filtered based upon a distinguished name. Multiple service
TXT records must be defined if more than one naming context is defined for a single LDAP server or if the LDAP server supports both SSL and non-SSL connections.ldaptype
TXT record encountered is used if more than one ldaptype
TXT record is defined for the same target.ldaptype
TXT record encountered is used if more than one ldaptype
TXT record is defined for the same target.ldapvendor
TXT record encountered is used if more than one ldapvendor
TXT record is defined for the same target.ldapinfo
TXT record encountered is used if more than one ldapinfo
TXT record is defined for the same target.Example of DNS resource records
endicott.ibm.com
.Note that there are two service
TXT records for sysa.endicott.ibm.com
and backup.endicott.ibm.com
, one for the non-SSL port and one for the SSL port. Similarly, there are two service
TXT records for sysb.endicott.ibm.com
and replica.endicott.ibm.com
: one for naming context "dc=ibm,dc=com"
and one for naming context "o=ibm,c=us"
.
service
TXT record for each resource name. In this case, multiple SRV and host address records are needed. While it is preferable to use a single SRV record for each LDAP server, some implementations of the LDAP DNS support might require multiple SRV records with a single service
TXT record for each resource name. The definitions would then be as follows:
Comments
Post a Comment