DNS server.

Hello,

I have a sagonet box with nodeworkx suite on it. I want to run the box as a dns server but I did a mistake (I think) before I knew nondworkx had it’s own dns server I executed the command “yum install bind” and I also executed yum install for bind’s needed util’s. to run. I went ahead and registered my nameservers and sent in a ticket to reverse dns the ip’s of the nameservers to my nameserver entrys. Under server setup in nodeworkx I went ahead and gave my nameservers instead of sago’s. I went ahead and added a domain I had pointed to the nameservers and the dns entrys wont resolve, so im pretty sure by me installing bind it messed up something for noneworkx not run the dns server. If someone could please help me get back on track much would be apreciated.

Thanks!
Tom

Tom,

I’d disable bind from starting up (i.e. chkconfig --level 345 named off) and turn off the caching-nameserver too if it exists in /etc/init.d/. Then just do a:


service djbdns restart

That should get tinydns going again.

You’ll know if a DNS server is listening locally if you do the following and see similar output (substitute an IP on your box for the one I use):


[root@firebll fireroot]# nslookup
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> server localhost
Default server: localhost
Address: 127.0.0.1#53
> server 66.118.152.98
Default server: 66.118.152.98
Address: 66.118.152.98#53
>

Chris

Thanks for the reply chris.

I executed all the commands you told me to. I checked the nameserver cache.

[root@server1 init.d]# service djbdns restart
Stopping djbdns: [ OK ]
Starting djbdns: [ OK ]
[root@server1 init.d]# dig

; <<>> DiG 9.2.1 <<>>
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55991
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;. IN NS

;; ANSWER SECTION:
. 436738 IN NS B.ROOT-SERVERS.NET.
. 436738 IN NS C.ROOT-SERVERS.NET.
. 436738 IN NS D.ROOT-SERVERS.NET.
. 436738 IN NS E.ROOT-SERVERS.NET.
. 436738 IN NS F.ROOT-SERVERS.NET.
. 436738 IN NS G.ROOT-SERVERS.NET.
. 436738 IN NS H.ROOT-SERVERS.NET.
. 436738 IN NS I.ROOT-SERVERS.NET.
. 436738 IN NS J.ROOT-SERVERS.NET.
. 436738 IN NS K.ROOT-SERVERS.NET.
. 436738 IN NS L.ROOT-SERVERS.NET.
. 436738 IN NS M.ROOT-SERVERS.NET.
. 436738 IN NS A.ROOT-SERVERS.NET.

;; ADDITIONAL SECTION:
J.ROOT-SERVERS.NET. 523138 IN A 192.58.128.30

;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Aug 26 19:40:39 2004
;; MSG SIZE rcvd: 244

Make sure you do the nslookup on an external IP. The dig shows output for 127.0.0.1 but tinydns is very specific about what ports/IPs it listens on. Once you’re convinced that tinydns is running (a ps should show this) try to lookup a local domain via nslookup, but do so by using the “server you.local.ip” command. You can obviously use dig as well for this if you like.

Chris

Okay, tinydns is running, now, I got another problem… every 12 hours interworkx gives in me an invalid license error, how can I prevent this? Also! how do I get DNS to show up in the system service for the interworkx control panel? Thanks for your help so much chris!

every 12 hours interworkx gives in me an invalid license error, how can I prevent this?

I’ve seen this a few times. Can you send me the output of the following command:


grep license /home/interworx/var/log/iworx.log

Also! how do I get DNS to show up in the system service for the interworkx control panel?

You can’t at the moment, but if you want to turn off iterative queries you can do it via the comand line by either doing service djbdns stop (this however also turns off recursive lookup as well) so better would be to do:


svc -d /service/tinydns-XXXXX

Where XXXXX is the IP of the DNS server you want to turn off.

Chris

[root@server1 init.d]# grep license /home/interworx/var/log/iworx.log
Aug 23 23:58:46 license.php [info] script begin
Aug 23 23:58:46 license.php [debug] license.php --sync
Aug 23 23:58:48 license.php [info] license syncd successfully
Aug 23 23:58:48 license.php [info] script end
Aug 25 01:20:42 license.php [info] script begin
Aug 25 01:20:42 license.php [debug] license.php --sync
Aug 25 01:20:43 license.php [info] license syncd successfully
Aug 25 01:20:43 license.php [info] script end
Aug 26 20:00:55 license.php [info] script begin
Aug 26 20:00:55 license.php [debug] license.php --sync
Aug 26 20:00:56 license.php [info] license syncd successfully
Aug 26 20:00:56 license.php [info] script end

Thanks again.

ok, and finally, could you paste the output of:


cat /var/spool/cron/iworx

Thanks,

Chris

Output:

[root@server1 init.d]# cat /var/spool/cron/iworx

DO NOT EDIT THIS FILE - edit the master and reinstall.

(/tmp/crongoMyE9 installed on Thu Aug 19 16:22:00 2004)

(Cron version – $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)

SHELL=/bin/bash
MAILTO=root
38,43,48,53,58,3,8,13,18,23,28,33 * * * * cd /home/interworx/cron ; ./iworx.pex --fively
39,54,9,24 * * * * cd /home/interworx/cron ; ./iworx.pex --fifteenly
49 * * * * cd /home/interworx/cron ; ./iworx.pex --hourly
30 16,22,4,10 * * * cd /home/interworx/cron ; ./iworx.pex --quad_daily
40 3 * * * cd /home/interworx/cron ; ./iworx.pex --daily
44 8 * * 5 cd /home/interworx/cron ; ./iworx.pex --weekly
38 0 15 * * cd /home/interworx/cron ; ./iworx.pex --monthly

Tom

Tom,

Can you mail me your iworx.log pls:


mail clwells@nexcess.net < /home/interworx/var/log/iworx.log

Thanks,

Chris

Mailed Chris

Thanks
Tom

Tom,

It doesn’t look like any of the administrative cron jobs are running and I’d like access to your server if it’s ok with you to investigate further via ssh.

Chris

Thats fine chris, i’d like to get in direct contact with you… maybe IRC, or msn?
Or just keep talking through email?