I would like to setup my own dns servers ns1.myhostingdomain.com and ns2.myhostingdomain.com
I have two seperate servers to use, one as primary and the other as a slave. My goal is to set it up for a web hosting setup. I would like to be able to add new domains (zones) and then have the newly purchased (hosted) domain point to ns1.myhostingdomain.com and ns2.myhostingdomain.com
I figured I would start with the primary first without the slave added and then once I have the primary working I would try to get the slave working.
I have bind9 installed on ubuntu 9.10 (karmic)
It comes partially configured I guess. So far I have done the following:
Modified: /etc/bind/named.conf.options - Changed forwarders to the name servers that are above my ns1.myhostingdomain.com server (the hostname is not actually ns1, it is poseidon.*, if that matters at all)
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// 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 {
69.20.95.4;
65.61.188.4;
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
I added a zone to /etc/bind/named.conf.local
#start_zone myhostingdomain.com
zone "myhostingdomain.com" {
type master;
file "/etc/bind/zones/myhostingdomain.com.db";
};
then I created the zone file /etc/bind/zones/myhostingdomain.com.db
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1.myhostingdomain.com. dnsadmin.myhostingdomain.com. (
20100809001 ; Serial
1H ; Refresh
15M ; Retry
4W ; Expire
1H ; Negative Cache TTL
)
;
@ IN NS ns1.myhostingdomain.com.
@ IN NS ns2.myhostingdomain.com.
@ IN A 184.106.207.45
ns1 IN A 184.106.207.45
ns2 IN A 184.106.229.136
is there something I am missing or am I doing this completely wrong?
Answer
Do you have the zone pointed to your DNS server at the registrar level? A dig +trace ns1.myhostingdomain.com
should give you some more information as well as the output from cat /etc/resolv.conf
No comments:
Post a Comment