Submitted by isdahlc on Fri, 11/18/2016 - 12:14 Pro Licensee
Guys,
We have a spam filtering service that requires domain name in the "abc-com" format rather than "abc.com" (e.g. {DOM}) format - hyphen rather than period. Can you "split" the {DOM} variable to {NAME} and {TLD}?
We can't create a hosting template (Bind) that will accommodate this requirement with the current "DOM" only variable.
Second, can you make those variables available as a pop-up/help screen inside virtualmin? Would be very handy to have those close at hand.
Thanks! -- Craig
Status:
Active
Comments
Submitted by JamieCameron on Fri, 11/18/2016 - 15:22 Comment #1
Sure, this could be done. But what about domain names that have multiple parts, like
abc.com.au
?Submitted by isdahlc on Mon, 11/21/2016 - 12:53 Pro Licensee Comment #2
In that case it would be abc-com-au, so we would need ability to handle the county tld too...
Submitted by JamieCameron on Mon, 11/21/2016 - 17:52 Comment #3
This gets tricky, because a domain name can have arbitrary number of parts.
However, I just noticed that variables for the split parts already exist - they are $DOMPART0 , $DOMPART1, etc..
Submitted by isdahlc on Thu, 01/11/2018 - 22:16 Pro Licensee Comment #4
Good lord, is there a place where all the variables are documented? This is format is standard for anyone using MS Office 365 mail (domain-tld). As in:
@ IN MX 0 abcxyz123-com.mail.protection.outlook.com.
So what is $DOMPART0?
$DOMPART1?
Are those the only 2 or is there a 3rd to handle .com.au domains (for example)?
Thanks!
Submitted by JamieCameron on Fri, 01/12/2018 - 00:29 Comment #5
In this case, $DOMPART0 would be
abcxyz123
and $DOMPART1 would becom