|
|
|
@ -9875,8 +9875,8 @@ record, 'cname' - canonical name record")
|
|
|
|
|
name)")
|
|
|
|
|
},
|
|
|
|
|
{'progAccess':(16,),
|
|
|
|
|
'longOption':"cn",
|
|
|
|
|
'optVal':"CNHOST",
|
|
|
|
|
'longOption':"cname",
|
|
|
|
|
'optVal':"CNAME",
|
|
|
|
|
'helpChapter':_("Common options"),
|
|
|
|
|
'help':_("canonical name (fully qualified host name) for CNAME record")
|
|
|
|
|
},
|
|
|
|
@ -17094,7 +17094,7 @@ is incompatible with option "--ip"')
|
|
|
|
|
%", ".join(supportTypes))
|
|
|
|
|
return False
|
|
|
|
|
if typeRec == "cname":
|
|
|
|
|
minKeys = ["cn","host"]
|
|
|
|
|
minKeys = ["cname","host"]
|
|
|
|
|
else:
|
|
|
|
|
minKeys = ["host","ip"]
|
|
|
|
|
if not set(minKeys)<=set(optKeys):
|
|
|
|
@ -17140,7 +17140,7 @@ incorrect, use "--autoptr on" or "--autoptr off"')%autoPtr)
|
|
|
|
|
cnDomainName = ""
|
|
|
|
|
cnHostName = ""
|
|
|
|
|
cnZoneName = ""
|
|
|
|
|
if options.has_key('cn'):
|
|
|
|
|
if options.has_key('cname'):
|
|
|
|
|
if options.has_key('ip'):
|
|
|
|
|
self.printERROR(_('Command line options "--ip" incompatible \
|
|
|
|
|
with type DNS record CNAME (options "-t")'))
|
|
|
|
@ -17150,7 +17150,7 @@ with type DNS record CNAME (options "-t")'))
|
|
|
|
|
with type DNS record CNAME (options "-t")'))
|
|
|
|
|
return False
|
|
|
|
|
# Доменное каноническое имя (имя включающее домен) для CNAME
|
|
|
|
|
cnDomainName = delDot(options['cn'].lower())
|
|
|
|
|
cnDomainName = delDot(options['cname'].lower())
|
|
|
|
|
# Имя хоста, имя зоны
|
|
|
|
|
cnHostName, spl, cnZoneName = cnDomainName.partition(".")
|
|
|
|
|
if not cnZoneName:
|
|
|
|
|