Could not browse local dns
Could not browse local dns
My box is centos 5.3 x86. I followed dynamic dns at "http://www.howtoforge.com/fedora_dynamic_dns ". Ping 192.168.0.4 in and out works, and browses webpage. But my-server.dyndns.org can't make ping and browsing. Here are my dns configuration files. 1. named.conf; Code:
options { Code:
$TTL 86400 Code:
$TTL 86400 Many thanks in advance. |
Both your zone files have errors. You miss some trailing dots and the NS record (my-server) does not have an A record. The forward zone file my-server.dyndns.org.zone should do:
Code:
$TTL 86400 Same goes for the reverse: Code:
$TTL 86400 Cheers |
Check your named.conf error using
#named-checkconf Check your zone files sysntax using #named-checkzone my-server.dyndns.org <path of my-server.dyndns.org zone file> thnks |
bathory/ Thanks for your kind reply and code.
I want to ask you is this right? Quote:
Quote:
vishesh/ Thank you for your kind advise and tips. With this my-server.dyndns.org.zone file, "named-checkzone my-server.dyndns.org.zone /var/named/chroot/var/named" has endless error; my-server.dyndns.org.zone; Quote:
Quote:
|
Quote:
|
Quote:
I changed "my-server.dyndns.org.zone" to this. Quote:
Quote:
|
Quote:
Code:
named-checkzone my-server.dyndns.org -t /var/named/chroot /var/named/my-server.dyndns.org.zone |
Quote:
I got these errors with named.conf you gave. Code:
[root:localhost]# named-checkconf -t /var/named/chroot/var/named my-server.dyndns.org.zone Quote:
Quote:
Quote:
|
These are 2 different command named-checkzone and named-checkconf.
The syntax for named-checkzone, is: Code:
named-checkzone -t /var/named/chroot my-server.dyndns.org /var/named/my-server.dyndns.org.zone Code:
named-checkconf -t /var/named/chroot /etc/named.conf |
bathory/ Your new commands got this results ;
Code:
[root:localhost]# named-checkconf -t /var/named/chroot /etc/named.conf |
So named-checkconf is OK. That is the meaning of no output. You can use "-z" to see the zones bind is authoritative for.
Regarding named-checkzone, it is also OK. Just note that I've never seen the "file does not end with newline", but I guess if you add a newline at the end of the file it will go away. You should increase the serial after making any changes in the zone files, otherwise bind will not be aware of these changes. |
bathory/
I did not add any new lines, I just change my-server to my dns name. my-server.dyndns.org still could not browse and answer ping. And, ping and dig's result is here; Quote:
|
Quote:
|
Quote:
192.168.0.1 is router machine, and 192.168.0.15 is this centos's ip. I forgot posting dhcpd.conf. Quote:
|
So you have to use 192.168.0.15 in the NS record of your zone file (forward and reverse)
|
All times are GMT -5. The time now is 06:28 AM. |