From: phonedph1 <20867105+phonedph1@users.noreply.github.com> Date: Wed, 1 Jun 2022 21:42:28 +0000 (-0600) Subject: rec: make rec zone files with trailing dot X-Git-Tag: rec-4.8.0-alpha1~56^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53b4e7ae135f436a00bd1461b2b4159968c47316;p=thirdparty%2Fpdns.git rec: make rec zone files with trailing dot --- diff --git a/pdns/ws-recursor.cc b/pdns/ws-recursor.cc index 688718b695..dd49293e41 100644 --- a/pdns/ws-recursor.cc +++ b/pdns/ws-recursor.cc @@ -212,10 +212,10 @@ static void doCreateZone(const Json document) throw ApiException("Could not open '" + zonefilename + "' for writing: " + stringerror()); } ofzone << "; Generated by pdns-recursor REST API, DO NOT EDIT" << endl; - ofzone << zonename << "\tIN\tSOA\tlocal.zone.\thostmaster." << zonename << " 1 1 1 1 1" << endl; + ofzone << zonename.toString() << "\tIN\tSOA\tlocal.zone.\thostmaster." << zonename.toString() << " 1 1 1 1 1" << endl; if (!singleIPTarget.empty()) { - ofzone << zonename << "\t3600\tIN\tA\t" << singleIPTarget << endl; - ofzone << "*." << zonename << "\t3600\tIN\tA\t" << singleIPTarget << endl; + ofzone << zonename.toString() << "\t3600\tIN\tA\t" << singleIPTarget << endl; + ofzone << "*." << zonename.toString() << "\t3600\tIN\tA\t" << singleIPTarget << endl; } ofzone.close();