.
We have hosted our website on an unmanaged vps server and have ordered the domain from a domainprovider.
Our aim is to setup smtp server on the site so as to enable sending of mails using the same vps server.
From the domain provider we have received 2 nameserver host and ip ex. ns1.domainprovider.com and ns2.domainprovider.com and their specific ips'
also we have been given a mail MX server ip and nameserver as mail.domainprovider.com
From the vps hosting we have received an ip for hosting which we have reflected in A TYPE in the domain provider and the domain now reflects the contents of the vps.
we are using bind9 for DNS and have installed postfix for mail transactions
on telneting the port 25 we get the following response
debian:/var/lib/named/etc# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Code: Select all
Escape character is '^]'.
220 mail.example.org ESMTP Postfix (Debian/GNU)
EHLO localhost
250-mail.example.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
Code: Select all
debian:/var/lib/named/etc# vim /etc/bind/zones/master/example.org.db
;
; BIND data file for example.org
;
$TTL 604800
@ IN SOA example.org. (
2008081001 ; Serial
7200 ; Refresh
120 ; Retry
2419200 ; Expire
604800) ; Default TTL
;
ns1.domainprovider.com IN A 208.71.129.33
ns2.domainprovider.com IN A 208.71.128.37
@ IN NS ns1.domainprovider.com.
@ IN NS ns2.domainprovider.com.
example.org. IN MX 10 mail.example.org.
example.org. IN A 209.9.217.227
www IN CNAME example.org.
mail IN A 209.9.217.227
ftp IN CNAME example.org.
example.org. IN TXT "v=spf1 ip4:209.9.217.227 a mx ~all"
mail IN TXT "v=spf1 a -all"
debian:/var/lib/named/etc# vim /etc/bind/zones/master/209.9.217.rev
$TTL 1d ;
$ORIGIN 217.9.209.IN-ADDR.ARPA.
@ IN SOA ns1.domainprovider.com. (
2008081001
7200
120
2419200
604800
)
IN NS ns1.domainprovider.com.
IN NS ns2.domainprovider.com.
1 IN PTR ns1.domainprovider.com.
2 IN PTR ns2.domainprovider.com.
http://linux.justinhartman.com/DNS_Inst ... troduction
But on cd /etc/bind/zones/master/
named-checkzone example.org example.org.db
We receive the following mesages
Code: Select all
debian:/etc/bind/zones/master# named-checkzone example.org example.org.db
dns_rdata_fromtext: example.org.db:10: near eol: unexpected end of input
example.org.db:12: unknown RR type 'ns1.domainprovider.com'
example.org.db:13: unknown RR type 'ns2.domainprovider.com'
example.org.db:14: unknown RR type '@'
example.org.db:15: unknown RR type '@'
example.org.db:16: unknown RR type 'example.org.'
example.org.db:17: unknown RR type 'example.org.'
example.org.db:18: unknown RR type 'www'
example.org.db:19: unknown RR type 'mail'
example.org.db:20: unknown RR type 'ftp'
example.org.db:21: unknown RR type 'example.org.'
dns_master_load: example.org.db:21: syntax error
dns_master_load: example.org.db:21: syntax error
example.org.db:22: unknown RR type 'mail'
dns_master_load: example.org.db:22: syntax error
dns_master_load: example.org.db:22: syntax error
zone example.org/IN: loading master file example.org.db: unexpected end of input
Waiting for your response
Regards,
Krishna Khanna