how can i set default dns records, "smtp" and "pop"

6 posts / 0 new
Last post
#1 Mon, 08/01/2011 - 23:06
appui

how can i set default dns records, "smtp" and "pop"

Virtualmin 1.556
CentOS5.6
installed from install.sh interface address is private, and NAT env.
checked "Automatically detect external address" : (Virtualmin>SystemSetting>>NetworkingSetting>>Default IP address for DNS records)

how can i set default dns records, "smtp" and "pop" EXTERNAL_ip A record.

set "BIND DNS records for new domains" : (Vritualmin>ServerTemplate>>DefaultSetting>>DNS)
smtp IN A ${IP}
pop IN A ${IP}

result: ip = private

how can i set external_ip??

-sato..

Tue, 08/02/2011 - 13:56
andreychek

Howdy,

Try the variable "DNS_IP", and see if that does the trick for you.

-Eric

Tue, 08/02/2011 - 22:37 (Reply to #2)
appui

Eric

GREATE!!
Solved this matter.
Thank you so much to tell me the trick.

${DNS_IP} = EXTERNAL_ip

Thanx a lot.
-sato

Wed, 08/03/2011 - 04:09
Locutus

I think the documentation badly needs a really complete list of those variables, or at least a link to some file where they're all listed. This useful one here e.g. is missing in the documentation.

Wed, 08/03/2011 - 09:13
andreychek

Yeah, the docs do have a lack of variables... I didn't know that variable off the top of my head or anything, I had to go digging for it... if you look at /etc/webmin/virtual-server/domains/DOMAIN_ID, all the parameters in the various "DOMAIN_ID" files there can be used as variables.

-Eric

Wed, 08/03/2011 - 17:11
Locutus

Right, now I recall. I vaguely remembered that the variables could be extracted from some "component" of Virtualmin, but I couldn't remember what it was. I was already grepping the source files for some keywords like "webalizer", hoping that there was some kind of "keyword switching" statement in the code. :)

I reiterate... The information where to find these variable names BADLY needs to go in the documentation. Because I'm fairly sure that when I need them again in three weeks, I'll have forgotten both the domain files and this forum post. ;)

Topic locked