Hi,
I can only get to my domain by using the ip address of my dns server in the address bar on browser.
These are my config files - running rh 7.1 bind9.1
// named.conf - configuration for bind
options {
directory "/var/named/";
};
key rndc_key {
algorithm hmac-md5;
secret "WpmzrVa55MEzL10swxsBVg==";
};
controls {inet 172.25.47.98 port 953 allow {localhost;} keys {rndc_key;};
};
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa.zone";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone " {
type master;
file "};
// localhost.zone
$TTL 86400
@ IN SOA @ root.localhost (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS localhost.
@ IN A 127.0.0.1
// $TTL 86400
@ IN SOA @ root.localhost (
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS ns1.mydomain.com
@ IN NS ns2.mydomain.com
@ IN MX 20 myhostman.com
//httpd vhost section
NameVirtualHost 172.25.47.98
<VirtualHost 172.25.47.98>
Servername DocumentRoot /home/domain/www
</VirtualHost>
thks
I can only get to my domain by using the ip address of my dns server in the address bar on browser.
These are my config files - running rh 7.1 bind9.1
// named.conf - configuration for bind
options {
directory "/var/named/";
};
key rndc_key {
algorithm hmac-md5;
secret "WpmzrVa55MEzL10swxsBVg==";
};
controls {inet 172.25.47.98 port 953 allow {localhost;} keys {rndc_key;};
};
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa.zone";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone " {
type master;
file "};
// localhost.zone
$TTL 86400
@ IN SOA @ root.localhost (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS localhost.
@ IN A 127.0.0.1
// $TTL 86400
@ IN SOA @ root.localhost (
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS ns1.mydomain.com
@ IN NS ns2.mydomain.com
@ IN MX 20 myhostman.com
//httpd vhost section
NameVirtualHost 172.25.47.98
<VirtualHost 172.25.47.98>
Servername DocumentRoot /home/domain/www
</VirtualHost>
thks