hey guys!!(subha bijoya)
i was configuring a dns( ip - 192.168.0.152) server and found problems.
[EMAIL PROTECTED] ~]# host server2
Host server2 not found: 3(NXDOMAIN)
[EMAIL PROTECTED] ~]#
[EMAIL PROTECTED] ~]# host server2.example.com
Host server2.example.com not found: 2(SERVFAIL)
[EMAIL PROTECTED] ~]# host 192.168.0.152
Host 152.0.168.192.in-addr.arpa not found: 2(SERVFAIL)
[EMAIL PROTECTED] ~]#
[EMAIL PROTECTED] ~]# dig server2.example.com
; <<>> DiG 9.2.4 <<>> server2.example.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 5783
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;server2.example.com. IN A
;; Query time: 0 msec
;; SERVER: 192.168.0.152#53(192.168.0.152)
;; WHEN: Tue Oct 18 16:51:52 2005
;; MSG SIZE rcvd: 37
[EMAIL PROTECTED] ~]#
please help me..
thanks in advance.........
following are the contents of few files:
1> /etc/host:
=================================================================================
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 server2.example.com server2 localhost.localdomain
localhost
=================================================================================
2> /etc/resolve.conf
=================================================================================
search example.com
nameserver 192.168.0.152
3> /etc/named.conf
=================================================================================
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone
"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa"
IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
zone "example.com" IN {
type master;
file "example.com.zone";
};
zone "152.0.168.192.in-addr.arpa" {
type master;
file "192.168.0.152.zone";
};
include "/etc/rndc.key";
=========================================================================
4> /var/named/example.com.zone
=========================================================================
$TTL 86400
@ IN SOA server2.example.com.
root.server2.example.com. (
2001101100 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
0 ) ; Negative
@ IN NS server2.example.com.
@ IN A 192.168.0.254
server1.example.com. IN A 192.168.0.254
www IN A 192.168.0.152
@ IN MX 10 server1.example.com.
server1 IN MX 10 server1.example.com.
=============================================================================
5> /etc/named/192.168.0.152.zone
===========================================================================
$TTL 86400
@ IN SOA server2.example.com.
root.server2.example.com. (
4 10800 3600
604800 86400)
IN NS server2.example.com.
152.0.168.0.192.IN-ADDR.ARPA IN PTR server2.example.com.
--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3