My dns setting go bad (unable to connect via domain name and unable to ping from local machine) since i put SPF line into it:
rachot.info. IN TXT "v=spf1 a mx a:debian1.rachot.info include:rcn.com ~all"
so i gues it is wrong. when i comment it (;;) and reboot the bind everything is ok as of this moment (able to dig, dig mx rachot.info etc..). domain and subdomains works. (www.rachot.info
, ruby.rachot.info; my isp sometimes blocks port 80 so i change it to 8000 but now port 80 works)
Moreover i changed MX line from debian1.rachot.info to "mx 10 rachot.info"
i'll look at it in more details what it means.
my primary dns settings:
debian1:/var/lib/named/etc/bind# cat pri.rachot.info
@ IN SOA debian1.rachot.info. marblabla.yahoo.com (
2007091107 ; serial, todays date + todays serial #
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
;; rachot.info. IN TXT "v=spf1 a mx a:debian1.rachot.info include:rcn.com ~all"
IN NS debian1.rachot.info. ; Inet Address of name server
IN NS ns1.xname.org.
MX 10 rachot.info. ; Primary Mail Exchanger
rachot.info. A 18.104.22.168
www A 22.214.171.124
debian1 A 126.96.36.199
;;debian2 A 188.8.131.52
ftp CNAME www
*.rachot.info. A 184.108.40.206
when i have more time i'll redo SPF line but if you see anything obvious wrong please let me know.
UPDATE: i sent email to yahoo and gmail account and it is there! so it works as supposed without spf record?
or i guess changing mx line in my primary dns settings to domain (instead of subdomain fixed the problem)