Skip to content

Commit

Permalink
Update default.sh to replace variable "qname" with "soa_qname" in pri…
Browse files Browse the repository at this point in the history
…ntf function for more accurate SOA record generation.
  • Loading branch information
nsouto committed Feb 2, 2024
1 parent 6ad21c5 commit dc4fed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/var/lib/powerdns/bin/default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ while IFS=$'#\t\n' read -r input; do
printf "DATA\t%s.\tIN\tMX\t60\t-1\t10\t%s\n" "$qname" "$default_mx"
;;&
SOA|ANY)
printf "DATA\t%s.\tIN\tSOA\t60\t-1\t%s.\t%s.\t1\t900\t900\t1080\t60\n" "$qname" "$default_ns" "$default_ns"
printf "DATA\t%s.\tIN\tSOA\t60\t-1\t%s.\t%s.\t1\t900\t900\t1080\t60\n" "${qname#*.}" "$default_ns" "$default_ns"
;;
esac
;;
Expand Down

0 comments on commit dc4fed2

Please sign in to comment.