How to change SOA record template -> root.domain.tld
-
- Posts: 19
- Joined: Fri Jan 09, 2015 2:29 pm
How to change SOA record template -> root.domain.tld
Hello,
After editing my DNS zone, Vesta editing my soa record to root.mydomain.tld. I want to change this to admin.mydomain.tld because [email protected] is unroutable. I searched in dns template but i didn't found it.
Best regards and thanks for great Control Panel! I using it on 2 production servers and it works well.
After editing my DNS zone, Vesta editing my soa record to root.mydomain.tld. I want to change this to admin.mydomain.tld because [email protected] is unroutable. I searched in dns template but i didn't found it.
Best regards and thanks for great Control Panel! I using it on 2 production servers and it works well.
Re: How to change SOA record template -> root.domain.tld
You searched here?
/usr/local/vesta/data/templates/dns/
/usr/local/vesta/data/templates/dns/
-
- Posts: 19
- Joined: Fri Jan 09, 2015 2:29 pm
Re: How to change SOA record template -> root.domain.tld
Yes, i don't see where i should change SOA.
Code: Select all
ID='1' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns1%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='2' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns2%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='3' RECORD='@' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='4' RECORD='mail' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='5' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='6' RECORD='pop' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='7' RECORD='ftp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='8' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='mail.%domain%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='9' RECORD='@' TYPE='TXT' PRIORITY='' VALUE='"v=spf1 a mx ip4:%ip% ?all"' SUSPENDED='no' TIME='%time%' DATE='%date%'
Re: How to change SOA record template -> root.domain.tld
/etc/bind/ - ?
-
- Posts: 19
- Joined: Fri Jan 09, 2015 2:29 pm
Re: How to change SOA record template -> root.domain.tld
I found in /etc/bind: root.localhost. in db.X files. Which one should I change?
Code: Select all
list of files:
bind.keys db.empty named.conf.default-zones zones.rfc1918
db.0 db.local named.conf.local
db.127 db.root named.conf.options
db.255 named.conf rndc.key
Re: How to change SOA record template -> root.domain.tld
/home/user/conf/dns/domain.com.db
-
- Posts: 19
- Joined: Fri Jan 09, 2015 2:29 pm
Re: How to change SOA record template -> root.domain.tld
Finally...
I found solution here: viewtopic.php?t=9957
I found solution here: viewtopic.php?t=9957
skurudo wrote:I think you want change root.domain.com ?
Then /usr/local/vesta/func/domain.sh
Code: Select all
# Update domain zone
update_domain_zone() {
domain_param=$(grep "DOMAIN='$domain'" $USER_DATA/dns.conf)
eval $domain_param
SOA=$(idn --quiet -a -t "$SOA")
if [ -z "$SERIAL" ]; then
SERIAL=$(date +'%Y%m%d01')
fi
zn_conf="$HOMEDIR/$user/conf/dns/$domain.db"
echo "\$TTL $TTL
@ IN SOA $SOA. root.$domain_idn. (
$SERIAL
7200
3600
1209600
180 )