+ if not domain:
+ print " No such domain, use 'pdns show \
+ domains' to get a list of all \
+ available domains."
+
+ return
+
+ # Print message if no records have been configured yet.
+ if not domain.has_records():
+ print " Domain has no records yet."
+
+ else:
+ print " Showing records \
+ for: %s \n" % self.args.domain
+
+ soa = domain.SOA
+
+ # Check if the domain has a SOA record.
+ if not soa:
+ print " No Start of Authority \
+ (SOA record) created yet. \
+ Your domain will not work \
+ correctly. \n"
+
+ else:
+ # Define table layout for SOA table..
+ FORMAT = " %-8s: %s"
+ print FORMAT % ("MName", soa.mname)
+ print FORMAT % ("E-Mail",soa.email)
+ print FORMAT % ("Serial", soa.serial)
+ print FORMAT % ("Refresh", soa.refresh)
+ print FORMAT % ("Retry", soa.retry)
+ print FORMAT % ("Expire", soa.expire)
+ print FORMAT % ("Minimum", soa.minimum)
+
+ print "" #Just an emtpy line.
+