Newly created DNS zones do not work? Help!
I'm trying to set up a DNS server (to manage local domain and hosts) on RHEL4ES. Actually, I followed the instructions here:
http://www.samspublishing.com/librar...eqNum=129&rl=1 However, unlike the instruction, I use icecastle.net as my local domain name instead of domain.cxm, and use the server name iceserver instead of mainserv. Also, my local network IP is 192.168.21.x instead of 192.168.100.x. (by the way, the iceserver's IP address is 192.168.21.239). First, I created two files: named.icecastle.net and named.192.168.21, then stored it in the directory /var/named/. Here's the content of named.icecastle.net. iceheart-winxp is the host name of my notebook, by the way. Code:
; should be stored as /var/named/named.icecastle.net Code:
; should be stored as /var/named/named.192.168.21 Code:
zone "icecastle.net" IN { #DNS for all host this domain I then restarted the named service without problems: Code:
[root@iceserver ~]# service named restart When I tried to ping iceserver, it worked. When I tried to ping iceserver.icecastle.net, it worked as well: Code:
[root@iceserver ~]# ping iceserver Code:
[root@iceserver ~]# ping iceserver.icecastle.net Also, when I tried to nslookup the iceserver, it failed as well, despite the ping was successful. Thus, I highly suspect that the ping was using the /etc/hosts file instead of the DNS. Code:
[root@iceserver ~]# nslookup iceserver Code:
[root@iceserver ~]# nslookup iceserver.icecastle.net What actually happens? Help! :( Here's the content of my /etc/resolv.conf file, by the way: Code:
[root@iceserver ~]# cat /etc/resolv.conf Code:
[root@iceserver ~]# cat /etc/named.conf |
Quote:
Code:
@ IN A 192.168.21.239 Quote:
Quote:
Code:
domain icecastle.net |
Quote:
Code:
; should be stored as /var/named/named.icecastle.net Code:
IN NS iceserver Quote:
Or maybe I was wrong? Maybe I should add one line at a time? So maybe I should put iceserver IN A 192.168.21.239 first, then restarting the 'named' service. Then I should re-edit the file, increase the serial, and only then I can add the www IN CNAME iceserver line? Is that the way it's supposed to work? I have to admit that I'm a total newbie when it goes to DNS stuff. Quote:
|
Quote:
Code:
@ IN A 192.168.21.239 |
Quote:
So I added the lines, and now I can nslookup iceserver.icecastle.net, www.icecastle.net, and iceheart-winxp.icecastle.net. Code:
[root@iceserver ~]# nslookup iceserver.icecastle.net However, I still have some problems: First, I cannot ping nor nslookup the domain name itself. So while I can ping (or nslookup) iceserver.icecastle.net, I just cannot ping (and nslookup) icecastle.net. Here's the message: Code:
[root@iceserver ~]# ping iceserver.icecastle.net The second problem is that the reverse zone (21.168.192.in-addr.arpa) doesn't seem to work. Here's what happen: Code:
[root@iceserver ~]# nslookup 192.168.21.239 Code:
; should be stored as /var/named/named.192.168.21 What could be wrong? Thanks, |
Quote:
Code:
icecastle.net. IN A 192.168.21.239 Code:
$ORIGIN 21.168.192.in-addr.arpa. |
Moved: This thread is more suitable in Linux Server and has been moved accordingly to help your thread/question get the exposure it deserves.
|
All times are GMT -5. The time now is 03:49 PM. |