diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index e7387bd4b..3f3cf95f9 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -3709,7 +3709,7 @@ message HealthCheckResponse { ) { let hostname = this.monitor.hostname.trim(); - if (this.monitor.type === "dns" && isIP(hostname)) { + if (this.monitor.type === "dns" && this.monitor.dns_resolve_type !== "PTR" && isIP(hostname)) { toast.error(this.$t("hostnameCannotBeIP")); return false; }