diff --git a/CHANGELOG.md b/CHANGELOG.md index c802fd71..d8307c08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,9 @@ - Allow ports 143 and 993 to be used by `dovecot` process ([#639](https://github.com/chatmail/relay/pull/639)) +- Add `--skip-dns-check` argument to `cmdeploy run` command, which disables DNS record checking before installation. + ([#661](https://github.com/chatmail/relay/pull/661)) + ## 1.7.0 2025-09-11 - Make www upload path configurable diff --git a/cmdeploy/src/cmdeploy/cmdeploy.py b/cmdeploy/src/cmdeploy/cmdeploy.py index 145c4bf6..180296a9 100644 --- a/cmdeploy/src/cmdeploy/cmdeploy.py +++ b/cmdeploy/src/cmdeploy/cmdeploy.py @@ -63,6 +63,12 @@ def run_cmd_options(parser): dest="ssh_host", help="specify an SSH host to deploy to; uses mail_domain from chatmail.ini by default", ) + parser.add_argument( + "--skip-dns-check", + dest="dns_check_disabled", + action="store_true", + help="disable checks nslookup for dns", + ) def run_cmd(args, out): @@ -70,9 +76,10 @@ def run_cmd(args, out): sshexec = args.get_sshexec() require_iroh = args.config.enable_iroh_relay - remote_data = dns.get_initial_remote_data(sshexec, args.config.mail_domain) - if not dns.check_initial_remote_data(remote_data, print=out.red): - return 1 + if not args.dns_check_disabled: + remote_data = dns.get_initial_remote_data(sshexec, args.config.mail_domain) + if not dns.check_initial_remote_data(remote_data, print=out.red): + return 1 env = os.environ.copy() env["CHATMAIL_INI"] = args.inipath