mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
ORiON suggested a better way to check FQDN records
This commit is contained in:
parent
76bf9030c1
commit
3587976f2a
2 changed files with 2 additions and 4 deletions
|
@ -54,8 +54,7 @@ if [ "$TYPE" != 'MX' ] && [ "$TYPE" != 'SRV' ]; then
|
|||
fi
|
||||
|
||||
# Add trailing dot at the end of NS/CNAME/MX/PTR/SRV record
|
||||
fqdn_type=$(echo $TYPE | grep "NS\|CNAME\|MX\|PTR\|SRV")
|
||||
if [ ! -z "$fqdn_type" ]; then
|
||||
if [[ $TYPE =~ NS|CNAME|MX|PTR|SRV ]]; then
|
||||
trailing_dot=$(echo $dvalue | grep "\.$")
|
||||
if [ -z $trailing_dot ]; then
|
||||
dvalue="$dvalue."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue