summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/scripting/bin/samba_dnsupdate10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate
index 0384dd9aff..1b21216b53 100755
--- a/source4/scripting/bin/samba_dnsupdate
+++ b/source4/scripting/bin/samba_dnsupdate
@@ -152,15 +152,15 @@ class dnsobj(object):
raise Exception("Received unexpected DNS reply of type %s: %s" % (self.type, string_form))
def __str__(self):
- if d.type == "A":
+ if self.type == "A":
return "%s %s %s" % (self.type, self.name, self.ip)
- if d.type == "AAAA":
+ if self.type == "AAAA":
return "%s %s %s" % (self.type, self.name, self.ip)
- if d.type == "SRV":
+ if self.type == "SRV":
return "%s %s %s %s" % (self.type, self.name, self.dest, self.port)
- if d.type == "CNAME":
+ if self.type == "CNAME":
return "%s %s %s" % (self.type, self.name, self.dest)
- if d.type == "NS":
+ if self.type == "NS":
return "%s %s %s" % (self.type, self.name, self.dest)