Thanks for your help. Here's my latest.
I decided to try the procedure at Ubuntu install which seems to work for a lot of people. Here is how it went.
Here is the latest information:
Have DNS Bind9 on a computer named "mail". I wonder, should it be named "mail.domain.com"?
Our domain is planned to be bookpros.com, so I'm trying to get the MX and A records correct.
I installed Bind9 with no apparent errors, and it appears to be functioning as a DNS server.
Created a file called /etc/bind/named.conf.local and put this in it:
Code:
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "mail.bookpros.com" {
type master;
file "/etc/bind/zones/mail.bookpros.com.db";
}; Next I created edited the file /etc/bind/named.conf.options as follows:
Code:
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
// query-source address * port 53;
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
208.67.222.222;
208.67.220.220;
};
auth-nxdomain no; # conform to RFC1035
// By default, name servers should only perform recursive domain
// lookups for their direct clients. If recursion is left open
// to the entire Internet, your name server could be used to
// perform distributed denial of service attacks against other
// innocent computers. For more information on DDoS recursion:
// http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0987
allow-recursion { localnets; };
// If you have DNS clients on other subnets outside of your
// server's "localnets", you can explicitly add their networks
// without opening up your server to the Internet at large:
// allow-recursion { localnets; 192.168.0.0/24; };
// If your name server is only listening on 127.0.0.1, consider:
// allow-recursion { 127.0.0.1; };
}; Then I created a zone file called /etc/bind/zones/mail.bookpros.com.db and it looks like this:
Code:
; mail.bookpros.com
TTL 604800
@ IN SOA ns.mail.bookpros.com. root.mail.bookpros.com. (
2007022601
28800
3600
604800
38400
);
@ IN NS ns
IN MX 10 mail
IN A 192.168.0.5
ns IN A 192.168.0.5
mail IN A 192.168.0.5 My /etc/resolv.conf looks like this:
Code:
search mail.bookpros.com
nameserver 192.168.0.5
nameserver 208.67.222.222
nameserver 208.67.220.220
I restarted bind9 at this point and it restarted with no errors.
Now when I enter the commands you suggested?
tech@mail:/etc/bind$ host 'mail'
mail has address 208.67.219.130
Host mail not found: 3(NXDOMAIN)
tech@mail:/etc/bind$
and
Code:
tech@mail:/etc/bind$ dig bookpros.com any
; <<>> DiG 9.3.2 <<>> bookpros.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32970
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 0
;; QUESTION SECTION:
;bookpros.com. IN ANY
;; ANSWER SECTION:
bookpros.com. 10494 IN A 209.200.229.125
;; AUTHORITY SECTION:
. 513605 IN NS e.root-servers.net.
. 513605 IN NS f.root-servers.net.
. 513605 IN NS g.root-servers.net.
. 513605 IN NS h.root-servers.net.
. 513605 IN NS i.root-servers.net.
. 513605 IN NS j.root-servers.net.
. 513605 IN NS k.root-servers.net.
. 513605 IN NS l.root-servers.net.
. 513605 IN NS m.root-servers.net.
. 513605 IN NS a.root-servers.net.
. 513605 IN NS b.root-servers.net.
. 513605 IN NS c.root-servers.net.
. 513605 IN NS d.root-servers.net.
;; Query time: 2 msec
;; SERVER: 192.168.0.5#53(192.168.0.5)
;; WHEN: Tue Jun 5 15:37:31 2007
;; MSG SIZE rcvd: 257
tech@mail:/etc/bind$
So, that's where I am. The answers don't look right to me.
Thanks much.