Skip to content

[Feature request] make seperating domainName and tld optional #2

@nsrderooy

Description

@nsrderooy

It would be nice to not have to specify the domainName and tld seperate.

Currently I have created a function as follows;

get_MijnDomeinReseller(){
  if [ -z "${1}" ]
  then
    echo "Missing domainName, correct syntax is;"
    echo "${FUNCNAME[0]} google.com"
  else
    # split dns
    tld=$(awk '{ print $(NF) }' FS=\\. <<<"${1}")
    domainName=$(awk '{ print $(NF-1) }' FS=\\. <<<"${1}")
    mdr dns info --domain "${domainName}" --tld "${tld}"
  fi
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions