DNS record template

3 posts / 0 new
Last post
#1 Thu, 09/01/2005 - 13:27
KevinAngus

DNS record template

We are behind a firewall so I need to create a template for bind like (host and domain in place of my real host name and domain name - IP listed as xxx.xxx.xxx.xxx):

$ttl 38400 ${DOM}. IN SOA host.domain.com. webmaster.domain.com. ( 1125517101 10800 3600 604800 38400 ) @ IN A xxx.xxx.xxx.xxx www IN A xxx.xxx.xxx.xxx mail IN A xxx.xxx.xxx.xxx @ IN MX 5 mail ${DOM}. IN NS ns1.domain.com. ${DOM}. IN NS ns2.doamin.com.

But What I get is one 'word' per line:

$ttl 38400 ${DOM}. IN SOA host.domain.com. webmaster.domain.com. ( 1125517101 10800 3600 604800 38400 ) @ IN A xxx.xxx.xxx.xxx www IN A xxx.xxx.xxx.xxx mail IN A xxx.xxx.xxx.xxx @ IN MX 5 mail ${DOM}. IN NS ns1.domain.com. ${DOM}. IN NS ns2.doamin.com.

It appears that tabs are being replaced with n

Thu, 09/01/2005 - 13:31
JamesMiller

Try just using spaces instead of tab. If you want everything to line up, line it up manually with the space bar, but it doesn't really matter, especially if you plan to edit records from Webmin.

Thu, 09/01/2005 - 13:43
KevinAngus

That fixed it, thanks

Topic locked