Hello.
I have a dedicated Centos5 64-bit server. Also, I have a domain name which I want to use to access the server using "server.mydomain.com". Currently, the server has apache running, however it is not reachable using any domain name (only by IP).
I have set up BIND and configured it using the tutorials I found on the net. If I run `host mydomain.com` on the server it returns the correct IP, however if I run it on my local machine it says "Host xxxx not found: 3(NXDOMAIN)". I called the ISP before and they told me that if I have a domain name (the domain names was not bought at the server provider) I have to set up my server's DNS server to that domain and all will work. Could someone explain me how such a thing can be done because I'm lost?
EDIT: If it changes anything, the server has ISPConfig3 running.
Thanks!
my named.conf
Code:
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { any; };
directory "/var/named/chroot/var/named";
dump-file "/var/named/chroot/var/named/data/cache_dump.db";
statistics-file "/var/named/chroot/var/named/data/named_stats.txt";
memstatistics-file "/var/named/chroot/var/named/data/named_mem_stats.txt";
allow-query { any; };
recursion yes;
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.root";
};
zone "mydomain.com" {
type master;
file "/var/named/chroot/var/named/mydomain.com.zone";
};
//The next is the reverse DNS entry.
zone "123.123.123.in-addr.arpa" {
type master;
file "/var/named/chroot/var/named/123.123.123.db";
};
include "/var/named/chroot/var/named/named.local";
mydomain.com.zone
Code:
$TTL 3h
@ IN SOA ns.mydomain.com. root.mydomain.com. (
2006120702 ; counter/ Serial ; in the format YYYYMMDDCC where CC - counter 1 to 99
20m ; refresh
15m ; Retry Interval
1w ; Expire
1h ) ; Negative Cache TTL
IN NS ns.mydomain.com.
IN MX 10 mail.mydomain.com.
ns IN A 123.123.123.123
mail IN A 123.123.123.123
www IN A 123.123.123.123
@ IN A 123.123.123.123
my 123.123.123.db
Code:
@ IN SOA mydomain.com. root.mydomain.com. (
3 ; counter/ Serial
15m ; refresh
15m ; Retry Interval
1w ; Expire
1h ) ; Negative Cache TTL
IN NS ns.mydomain.com.
250 IN PTR server.mydomain.com.
P.S. The real domain name is changed to
mydomain.com and the IP address to
123.123.123.123