Hello,
I am trying to configure DNS on my machine. My machine in on network
but not in domain.
my machine ip is static and I configured it like this
IP 192.168.0.197
S/M 255.2555.255.0
D/G 192.168.0.1
P/DNS 192.168.0.197
I configure "/etc/named.conf" file like this
zone "vir.com" IN {
type master;
file "virfor";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "virrev";
allow-update { none; };
};
I copied localhost.zone into virfor, and named.local to virrev
virfor configuration is
$TTL 86400
@ IN SOA
www.vir.com.
www.vir.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS
www.vir.com.
www IN A 192.168.0.197
IN AAAA ::1
and virrev configuration is
$TTL 86400
@ IN SOA
www.vir.com.
www.vir.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS
www.vir.com.
197 IN PTR
www.vir.com.
my /etc/hosts file configuration is
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.197
www.vir.com www
but when i put dig -x 192.168.0.197 it shows
; <<>> DiG 9.2.4 <<>> -x 192.168.0.197
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 31291
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;197.0.168.192.in-addr.arpa. IN PTR
;; Query time: 1 msec
;; SERVER: 192.168.0.197#53(192.168.0.197)
;; WHEN: Tue Nov 20 12:54:59 2007
;; MSG SIZE rcvd: 44
I am new to linux
pls help wether there is something wrong in configuration