From the DNS server (the fedora box) the command "service named status" will tell if the named is running or not. If it is not running you will get something like that:
Code:
[root@babylon5 ~]# service named status
rndc: connect failed: 127.0.0.1#953: connection refused
[root@babylon5 ~]#
and if it is running...
Code:
[root@babylon5 ~]# service named status
number of zones: 17
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running
[root@babylon5 ~]#
You can control the service using "service named start" or "service named stop".
This command start/stops named in the current running session only.
To set named to run or not, in the next boot, use "chkconfig named on" (or off), and "chkconfig --list named" to see in what run levels it will run.
and to test it,
Code:
[root@babylon5 ~]# dig @localhost www.google.com
; <<>> DiG 9.4.0 <<>> @localhost www.google.com
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55232
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 7, ADDITIONAL: 0
;; QUESTION SECTION:
;www.google.com. IN A
;; ANSWER SECTION:
www.google.com. 604800 IN CNAME www.l.google.com.
www.l.google.com. 300 IN A 72.14.205.103
www.l.google.com. 300 IN A 72.14.205.104
www.l.google.com. 300 IN A 72.14.205.99
www.l.google.com. 300 IN A 72.14.205.147
;; AUTHORITY SECTION:
l.google.com. 86399 IN NS f.l.google.com.
l.google.com. 86399 IN NS e.l.google.com.
l.google.com. 86399 IN NS a.l.google.com.
l.google.com. 86399 IN NS c.l.google.com.
l.google.com. 86399 IN NS g.l.google.com.
l.google.com. 86399 IN NS b.l.google.com.
l.google.com. 86399 IN NS d.l.google.com.
;; Query time: 1114 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jun 5 18:00:20 2007
;; MSG SIZE rcvd: 228
[root@babylon5 ~]#
note the SERVER line near to end. It tells you what server answered your question. The result of question itself is in the output, and the general status is in "status: NOERROR" in the header.