How to create DNS zones containing relative names

1 post / 0 new
#1 Sun, 12/13/2015 - 11:46
softins

How to create DNS zones containing relative names

Hi, not a major issue, but one that niggles me, and I haven't been able to find an option to control the behaviour.

When I create a new virtual site including DNS zone, the zone file it creates has all the names in it as absolute names:

$ttl 38400
@       IN      SOA     ns3.softins.co.uk. root.ns3.softins.co.uk. (
                        2015121300
                        10800
                        3600
                        604800
                        38400 )
@       IN      NS      ns3.softins.co.uk.
@       IN      NS      ns1.softins.co.uk.
xyzzy.com.      IN      A       217.160.239.96
www.xyzzy.com.  IN      A       217.160.239.96
<!--break-->
ftp.xyzzy.com.  IN      A       217.160.239.96
localhost.xyzzy.com.    IN      A       127.0.0.1
webmail.xyzzy.com.      IN      A       217.160.239.96
admin.xyzzy.com.        IN      A       217.160.239.96
mail.xyzzy.com. IN      A       217.160.239.96
xyzzy.com.      IN      MX      5 mail.xyzzy.com.
xyzzy.com.      IN      TXT     "v=spf1 a mx a:xyzzy.com ip4:217.160.239.96 ?all"

Which I find to have a lot of unnecessary repetition of the zone name.

Is there an option to make Virtualmin/Webmin always use relative names in the file so that it instead looks like this? (which in my opinion is clearer and less cluttered)

$ttl 38400
@       IN      SOA     ns3.softins.co.uk. root.ns3.softins.co.uk. (
                        2015121300
                        10800
                        3600
                        604800
                        38400 )
@         IN      NS      ns3.softins.co.uk.
@         IN      NS      ns1.softins.co.uk.
xyzzy     IN      A       217.160.239.96
www       IN      A       217.160.239.96
ftp       IN      A       217.160.239.96
localhost IN      A       127.0.0.1
webmail   IN      A       217.160.239.96
admin     IN      A       217.160.239.96
mail      IN      A       217.160.239.96
@         IN      MX      5 mail.xyzzy.com.
@         IN      TXT     "v=spf1 a mx a:xyzzy.com ip4:217.160.239.96 ?all"

Thanks in advance! Tony