I have setup a split DNS and most is working except when I do a dig (for mx record) I get a double domain answer.
dig +short mydomain.com mx:
Code:
10 mailserv.mydomain.com.mydomain.com.
This should be mailserv.mydomain.com shouldn't it? I have searched a bunch of posts and here is the info that is most often requested.
dig +short mydomain.com any:
Code:
mydomain.com. scott.mydomain.com. 70728 604800 86400 2419200 604800
192.168.7.101.mydomain.com.
192.168.7.101
10 mailserv.mydomain.com.mydomain.com.
/etc/hosts:
Code:
127.0.0.1 localhost.localdomain localhost
192.168.7.101 mailserv.mydomain.com mailserv
/etc/resolv.conf:
Code:
nameserver 192.168.7.101
host `hostname`:
Code:
Host mailserv not found: 3(NXDOMAIN)
/etc/bind/named.conf.options:
Code:
options {
auth-nxdomain no; # conform to RFC1035
query-source address * port 53;
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
forwarders { 24.226.1.93; 24.226.10.193; };
};
include "/etc/bind/rndc.key";
zone "mydomain.com" {
type master;
file "/var/named/db.mydomain.com";
}; /var/named/db.mydomain.com:
Code:
;
; BIND data file for mydomain.com
;
$TTL 604800
@ IN SOA mydomain.com. scott.mydomain.com. (
070729 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS 192.168.7.101
IN A 192.168.7.101
IN MX 10 mailserv.mydomain.com
mailserv IN A 192.168.7.101 nslookup:
Code:
Server: 192.168.7.101
Address: 192.168.7.101#53
Name: mailserv.mydomain.com
Address: 192.168.7.101
Any help would be greatly appreciated.
Regards,
Scott