patrzyłem w Bindzie. niestety nie znam się aż tak bardzo na tym bo dopiero się uczę. to mój pierwszy serwer.
mam wykupianą mojadomena.com.
vihost ustawione, że nazwa hostu jest: server1.mojadomena.com
adres mailowy ma być na domenę
(poczta@mojadomena.com.
mx dla server1.mojadomena.com
# dig server1.mojadomena.com MX
; <<>> DiG 9.6-ESV-R4 <<>> server1.mojadomena.com MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40910
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;server1.mojadomena.com. IN MX
;; Query time: 90 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Apr 13 18:30:01 2011
;; MSG SIZE rcvd: 41
mx dla mojadomena.com
dig mojadomena.com MX
; <<>> DiG 9.6-ESV-R4 <<>> mojadomena.com MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7125
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mojadomena.com. IN MX
;; ANSWER SECTION:
mojadomena.com. 2401 IN MX 10 mojadomena.com.
;; Query time: 20 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Apr 13 18:36:06 2011
;; MSG SIZE rcvd: 49
rekord A.
dig mojadomena.com
; <<>> DiG 9.6-ESV-R4 <<>> mojadomena.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23304
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mojadomena.com. IN A
;; ANSWER SECTION:
mojadomena.com. 2270 IN A 85.25.166.137
;; Query time: 22 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Apr 13 18:38:31 2011
;; MSG SIZE rcvd: 49
A w bindzie (/etc/bind/named.conf):
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
include "/etc/bind/named.conf.local";
// bind Data BEGIN.
// dmn [admin.server1.mojadomena.com] cfg entry BEGIN.
zone "admin.server1.mojadomena.com" {
type master;
file "/var/cache/bind/admin.server1.mojadomena.com.db";
notify YES;
};
// dmn [admin.server1.mojadomena.com] cfg entry END.
// dmn [mojadomena.com] cfg entry BEGIN.
zone "mojadomena.com" {
type master;
file "/var/cache/bind/mojadomena.com.db";
notify YES;
};
// dmn [bracedgirls.com] cfg entry END.
// dmn [{DMN_NAME}] cfg entry BEGIN.
// dmn [{DMN_NAME}] cfg entry END.
// bind Data END.
podam też zawartość dwóch plików db.
/var/cache/bind/admin.server1.mojadomena.com.db
$TTL 12H
$ORIGIN admin.server1.mojadomena.com.
@ IN SOA ns1.admin.server1.mojadomena.com. postmaster.admin.server1.mojadomena.com. (
; dmn [admin.server1.mojadomena.com] timestamp entry BEGIN.
2011041201 ; Serial
; dmn [admin.server1.mojadomena.com] timestamp entry END.
8H ; Refresh
15M ; Retry
4W ; Expire
3H ; Minimum TTL
)
IN NS ns1.admin.server1.mojadomena.com.
IN NS ns2.admin.server1.mojadomena.com.
IN MX 10 mail.admin.server1.mojadomena.com.
admin.server1.mojadomena.com. IN A 85.25.166.137
www IN A 85.25.166.137
admin.server1.mojadomena.com. IN TXT "v=spf1 a mx ip4:85.25.166.137 ip4:85.25.166.137 ~all"
localhost IN A 127.0.0.1
mail IN A 85.25.166.137
ns1 IN A 85.25.166.137
ns2 IN A 85.25.166.137
; CNAME for mail transfer
imap IN CNAME mail
pop IN CNAME mail
pop3 IN CNAME mail
relay IN CNAME mail
smtp IN CNAME mail
; CNAME for web transfer
ftp IN CNAME www
; sub [{SUB_NAME}] entry BEGIN.
; sub [{SUB_NAME}] entry END.
; ctm domain als entries BEGIN.
vu2001 IN A 85.25.166.137
; ctm domain als entries END.
oraz plik: /var/cache/bind/mojadomena.com.db
$TTL 12H
$ORIGIN mojadomena.com.
@ IN SOA ns1.mojadomena.com. postmaster.mojadomena.com. (
; dmn [bracedgirls.com] timestamp entry BEGIN.
2011041200 ; Serial
; dmn [bracedgirls.com] timestamp entry END.
8H ; Refresh
2H ; Retry
7D ; Expire
1D ; Minimum TTL
)
IN NS ns1.mojadomena.com.
IN NS ns2.mojadomena.com.
IN MX 10 mail.mojadomena.com.
mojadomena.com. IN A 85.25.166.137
www IN A 85.25.166.137
mojadomena.com. IN TXT "v=spf1 a mx ip4:85.25.166.137 ip4:85.25.166.137 ~all"
localhost IN A 127.0.0.1
mail IN A 85.25.166.137
ns1 IN A 85.25.166.137
ns2 IN A 85.25.166.137
; CNAME for VHCS compatibility
ns IN CNAME ns1
; CNAME for mail transfer
imap IN CNAME mail
pop IN CNAME mail
pop3 IN CNAME mail
relay IN CNAME mail
smtp IN CNAME mail
; CNAME for web transfer
ftp IN CNAME www
; sub [{SUB_NAME}] entry BEGIN.
; sub [{SUB_NAME}] entry END.
; dns [{MANUAL_DNS_ID}] entry BEGIN.
; dns [{MANUAL_DNS_ID}] entry END.
wszystko jest prawidłowo skonfigurowane?