Random Bob
February 12th, 2009, 08:34 PM
I've installed and configured bind + dnsutils but I'm unable to connect to my webserver. I registered a domain name (www.terulia.com) with godaddy.com and I have the DNS servers set as NS1.TERULIA.COM and NS2.TERULIA.COM. I've set up apache and everything on the server, so I can connect to it using the IP address, but when I type www.terulia.com, it won't direct me to the computer. I have no experience in setting up DNS, and I was wondering if someone could tell me what I did wrong? I copied down all of the changes/commands step by step in case I need to repeat them later, and I've listed them below:
sudo apt-get install bind9 dnsutils
sudo nano /etc/bind/named.conf/local
add the following lines:
zone "terulia.com" {
type master;
file "/etc/bind/zones/terulia.com.db";
};
# replace with network address in reverse notation
# e.g 192.168.2.x => 2.168.192
zone "2.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.2.168.192.in-addr.arpa";
};
save
sudo nano /etc/bind/named.conf/options
uncomment/edit:
forwarders {
IP for ISP's DNS server
};
save
sudo mkdir /etc/bind/zones
sudo nano /etc/bind/zones/terulia.com.db
add lines:
terulia.com. IN SOA ns1.terulia.com. admin.terulia.com. (
2007031001
28800
3600
604800
38400
)
terulia.com. IN NS ns1.terulia.com.
terulia.com. IN MX 10 mail.terulia.com.
www IN A 192.168.2.5
mta IN A 192.168.2.5
ns1 IN A 192.168.2.5
save
sudo nano /etc/bind/zones/rev.2.168.192.in-addr.arpa
for "# IN PTR", # = address of the DNS server
e.g. 5 if 192.168.2.5
add lines:
@ IN SOA ns1.terulia.com. admin.terulia.com. (
2007031001;
28800;
604800;
604800;
86400
)
IN NS ns1.terulia.com.
5 IN PTR terulia.com
save
sudo /etc/init.d/bind9 restart
sudo nano /etc/resolv.conf
edit:
search terulia.com
nameserver 192.168.2.5
save
sudo apt-get install bind9 dnsutils
sudo nano /etc/bind/named.conf/local
add the following lines:
zone "terulia.com" {
type master;
file "/etc/bind/zones/terulia.com.db";
};
# replace with network address in reverse notation
# e.g 192.168.2.x => 2.168.192
zone "2.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.2.168.192.in-addr.arpa";
};
save
sudo nano /etc/bind/named.conf/options
uncomment/edit:
forwarders {
IP for ISP's DNS server
};
save
sudo mkdir /etc/bind/zones
sudo nano /etc/bind/zones/terulia.com.db
add lines:
terulia.com. IN SOA ns1.terulia.com. admin.terulia.com. (
2007031001
28800
3600
604800
38400
)
terulia.com. IN NS ns1.terulia.com.
terulia.com. IN MX 10 mail.terulia.com.
www IN A 192.168.2.5
mta IN A 192.168.2.5
ns1 IN A 192.168.2.5
save
sudo nano /etc/bind/zones/rev.2.168.192.in-addr.arpa
for "# IN PTR", # = address of the DNS server
e.g. 5 if 192.168.2.5
add lines:
@ IN SOA ns1.terulia.com. admin.terulia.com. (
2007031001;
28800;
604800;
604800;
86400
)
IN NS ns1.terulia.com.
5 IN PTR terulia.com
save
sudo /etc/init.d/bind9 restart
sudo nano /etc/resolv.conf
edit:
search terulia.com
nameserver 192.168.2.5
save