diff --git a/patchman/hosts/utils.py b/patchman/hosts/utils.py index e27da0fc..730c7a82 100644 --- a/patchman/hosts/utils.py +++ b/patchman/hosts/utils.py @@ -31,7 +31,7 @@ def update_rdns(host): except (gaierror, herror): reversedns = 'None' - host.reversedns = reversedns + host.reversedns = reversedns.lower() try: host.save() except DatabaseError as e: diff --git a/patchman/reports/models.py b/patchman/reports/models.py index bb78a444..4f3a9dff 100644 --- a/patchman/reports/models.py +++ b/patchman/reports/models.py @@ -75,6 +75,7 @@ def parse(self, data, meta): setattr(self, attr, data.get(attr)) if self.host is not None: + self.host = self.host.lower() fqdn = self.host.split('.', 1) if len(fqdn) == 2: self.domain = fqdn.pop()