I have this script that I wrote to make named.conf and db.domain.com files automatically here what I have so far that where the problem is
Code:
function make_dns {
cat <<- _EOF_
`$ORIGIN` .
`$TTL` 1d
$dname IN SOA $nameserver. $USER.$dname. (
2007080801 ; Serial
1h ; Refresh
1h ; Retry
1d ; Expire
1h ) ; Negative Cache TTL
IN NS $namesvr.
IN A $IP
IN MX 1 mail.$dname.
IN MX 5 mail.$dname.
IN MX 5 mail.$dname.
IN MX 10 mail.$dname.
`$ORIGIN` $dname.
www IN A $HOSTIP
mail IN CNAME www
ftp IN CNAME www
_EOF_
}
You see $ORIGIN an $TTL are suppose to be $ORIGIN and $TTL and Idea how to output them not as a Variable like Bash Thinks there are?