Hi Ever since i ran this step update-rc.d dnsctl defaults Adding system startup for /etc/init.d/dnsctl ... /etc/rc0.d/K20dnsctl -> ../init.d/dnsctl /etc/rc1.d/K20dnsctl -> ../init.d/dnsctl /etc/rc6.d/K20dnsctl -> ../init.d/dnsctl /etc/rc2.d/S20dnsctl -> ../init.d/dnsctl /etc/rc3.d/S20dnsctl -> ../init.d/dnsctl /etc/rc4.d/S20dnsctl -> ../init.d/dnsctl /etc/rc5.d/S20dnsctl -> ../init.d/dnsctl i get the following errors on startup and shutdown This error starts on line 5 upto 160 /etc/init.d/dnsctl: line 5: head: No such file or directory /etc/init.d/dnsctl: line 6: title: No such file or directory /etc/init.d/dnsctl: line 7: style: No such file or directory : command not found line 8: td : command not found line 9: { /etc/init.d/dnsctl: line 10: font-size:: command not found : command not found line 10: /etc/init.d/dnsctl: line 11: font-family:: command not found : command not found line 11: /etc/init.d/dnsctl: line 12: color:: command not found /etc/init.d/dnsctl: line 13: font-weight:: command not found : command not found line 13: : command not found line 14: } /etc/init.d/dnsctl: line 15: p: command not found : command not found line 16: { /etc/init.d/dnsctl: line 17: font-size:: command not found : command not found line 17: /etc/init.d/dnsctl: line 18: font-family:: command not found : command not found line 18: /etc/init.d/dnsctl: line 19: color:: command not found /etc/init.d/dnsctl: line 20: font-weight:: command not found : command not found line 20: : command not found line 21: } : command not found line 22: .expbox : command not found line 23: { /etc/init.d/dnsctl: line 24: border:: command not found : command not found line 25: } /etc/init.d/dnsctl: line 26: .domain: command not found : command not found line 27: { /etc/init.d/dnsctl: line 28: font-size:: command not found : command not found line 28: /etc/init.d/dnsctl: line 29: font-family:: command not found : command not found line 29: /etc/init.d/dnsctl: line 30: color:: command not found /etc/init.d/dnsctl: line 31: font-weight:: command not found : command not found line 31: : command not found line 32: } : command not found line 33: .courtesy : command not found line 34: { /etc/init.d/dnsctl: line 35: font-size:: command not found : command not found line 35: /etc/init.d/dnsctl: line 36: font-family:: command not found : command not found line 36: /etc/init.d/dnsctl: line 37: line-height:: command not found : command not found line 37: /etc/init.d/dnsctl: line 38: font-weight:normal: command not found : command not found line 38: : command not found line 39: } : command not found line 40: .search : command not found line 41: { /etc/init.d/dnsctl: line 42: font-size:: command not found : command not found line 42: /etc/init.d/dnsctl: line 43: font-family:: command not found : command not found line 43: /etc/init.d/dnsctl: line 44: font-weight:: command not found : command not found line 44: /etc/init.d/dnsctl: line 45: color:: command not found : command not found line 46: } : command not found line 47: .domprice : command not found line 48: { /etc/init.d/dnsctl: line 49: font-size:: command not found : command not found line 49: /etc/init.d/dnsctl: line 50: line-height:18px: command not found : command not found line 50: /etc/init.d/dnsctl: line 51: font-family:: command not found : command not found line 51: /etc/init.d/dnsctl: line 52: font-weight:: command not found : command not found line 52: /etc/init.d/dnsctl: line 53: color:: command not found : command not found line 54: } /etc/init.d/dnsctl: line 55: .expired: command not found : command not found line 56: { /etc/init.d/dnsctl: line 57: font-size:: command not found : command not found line 57: /etc/init.d/dnsctl: line 58: font-family:: command not found : command not found line 58: /etc/init.d/dnsctl: line 59: color:: command not found /etc/init.d/dnsctl: line 60: font-weight:: command not found : command not found line 60: : command not found line 61: } /etc/init.d/dnsctl: line 62: .dop: command not found : command not found line 63: { /etc/init.d/dnsctl: line 64: font-size:: command not found : command not found line 64: /etc/init.d/dnsctl: line 65: font-family:: command not found : command not found line 65: /etc/init.d/dnsctl: line 66: color:: command not found /etc/init.d/dnsctl: line 67: font-weight:: command not found : command not found line 67: : command not found line 68: } : command not found line 69: a.tlds_bgDk:link : command not found line 70: { /etc/init.d/dnsctl: line 71: font-size:: command not found : command not found line 71: /etc/init.d/dnsctl: line 72: font-family:: command not found : command not found line 72: /etc/init.d/dnsctl: line 73: font-weight:: command not found : command not found line 73: /etc/init.d/dnsctl: line 74: color:: command not found /etc/init.d/dnsctl: line 75: line-height:: command not found : command not found line 75: : command not found line 76: } : command not found line 77: .try : command not found line 78: { /etc/init.d/dnsctl: line 79: font-size:: command not found : command not found line 79: /etc/init.d/dnsctl: line 80: font-family:: command not found : command not found line 80: /etc/init.d/dnsctl: line 81: color:: command not found /etc/init.d/dnsctl: line 82: line-height:: command not found : command not found line 82: /etc/init.d/dnsctl: line 83: font-weight:normal: command not found : command not found line 83: /etc/init.d/dnsctl: line 84: text-decoration:underline: command not found : command not found line 84: : command not found line 85: } : command not found line 86: .copyright : command not found line 87: { /etc/init.d/dnsctl: line 88: font-size:: command not found : command not found line 88: /etc/init.d/dnsctl: line 89: font-family:: command not found /etc/init.d/dnsctl: line 159: /style: No such file or directory /etc/init.d/dnsctl: line 160: syntax error near unexpected token `<' /etc/init.d/dnsctl: line 160: `<script language="JavaScript" src="http://as.casa 'emedia.com/sd?s=73040&f=1"></script> DO you have any ideas on why this is happening
Hope this helps HI Falko I've managed to upload a page with the DNSCTL info http://www.testingnxa.homelinux.com/help.htm I hope that this can be of assistance and another thing i found was that the page that it is pointing to www.servershak.com is no longer available and it also has this This domain name expired on 07/29/06 and is pending renewal or deletion Another Error i run into when i try to dig @SECOND IP www.yahoo.com it sometimes resolves it but yet again sometimes it say it cannot be reached and when i run /etc/init.d/networking restart it says Reconfiguring network interfaces... ifup: interface lo already configured SIOCADDRT: Network is unreachable Failed to bring up eth0:0. Please help Me
You've replaced the contents of /etc/init.d/dnsctl with an HTML page... Of course this doesn't work. Do you have a backup of the original dnsctl file?
Hi Falko I ran this wget http://www.servershak.com/dns/dnsctl and when ns1:/tmp# wget http://www.servershak.com/dns/dnsctl --09:11:58-- http://www.servershak.com/dns/dnsctl => `dnsctl' Resolving www.servershak.com... 68.178.232.99 Connecting to www.servershak.com[68.178.232.99]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 47,467 [text/html] 100%[====================================>] 47,467 14.19K/s ETA 00:00 command and placed the DNSCTL on /tmp and used WINSCP3 to access it and it still has the same info as the one on my ../init.d/dnsctl is there any way then i can get the actual DNSCTL original
When you go to http://www.servershak.com/dns/dnsctl you see that the domain servershak.com has expired, that's why it doesn't work for you. Here's the contents of /usr/local/sbin/dnsctl: Code: #!/bin/sh # Don Walters # [email protected] # # chkconfig: # description: the djbdns DNS PATH=/bin:/usr/bin:/usr/local/bin:/usr/local/sbin export PATH case "$1" in start) echo "Starting dns" if svok /service/dnscache ; then svc -u /service/dnscache else echo dnscache service not running fi if svok /service/tinydns ; then svc -u /service/tinydns else echo tinydns service not running fi if [ -d /var/lock/subsys ]; then touch /var/lock/subsys/dns fi ;; stop) echo "Stopping dns ..." echo " dnscache" svc -d /service/dnscache echo " tinydns" svc -d /service/tinydns if [ -f /var/lock/subsys/dns ]; then rm /var/lock/subsys/dns fi ;; stat) svstat /service/dnscache svstat /service/dnscache/log echo "--" svstat /service/tinydns svstat /service/tinydns/log ;; reload|hup) echo "Sending HUP signal to dns." svc -h /service/dnscache svc -h /service/tinydns ;; pause) echo "Pausing dnscache" svc -p /service/dnscache echo "Pausing tinydns" svc -p /service/tinydns ;; cont) echo "Continuing dnscache" svc -c /service/dnscache echo "Continuing tinydns" svc -c /service/tinydns ;; restart) echo "Restarting dns:" echo "* Stopping dnscache." svc -d /service/dnscache echo "* Stopping tinydns." svc -d /service/tinydns echo "* Restarting dnscache." svc -u /service/dnscache echo "* Restarting tinydns." svc -u /service/tinydns ;; help) cat <<HELP start -- starts dns service (dns connections allowed. queries can go out) stop -- stops dns service (dns connections refused, nothing goes out) pause -- temporarily stops dns service (dns connections accepted, nothing leaves) cont -- continues paused dns service stat -- displays status of mail service restart -- stops and restarts dns reload -- sends dns HUP hup -- same as reload HELP ;; *) echo "Usage: $0 {start|stop|restart|reload|stat|pause|cont|help}" exit 1 ;; esac exit 0
thanks again Hi Falko thanks again for all your help the DNSCTL thing has been sorted after i have pasted the right info now what i want to know do you have any idea this is the current situation i've got 2 nameservers 1 first nameserver has two IP addresses my eth0 Public ip and internal DNS eth0:0 Public IP and ISP DNS (Virtual IP) now how come if i try and use these (eth0 and eth0:0) as my primary and alternate DNS on my windows Based Machine it does not route out to the internet and sometimes when i dig a website using my virtual IP like dig @xxx.xxx.xxx www.google.com it says it cannot be reached but after a couple of seconds i do the same thing and i get a reply what causes this the only time that it works is when i use my webserver as an alternate DNS but i don't really wanna do this is there any way that i can use my et0:0 as a primary dns and my eth0 as a secondary i can use my webserver as a primary and it routes fine to the internet but now i don't wanna bring strain on my webserver so i have dedicated 2 machines for dns now i wanna use those on my 2 Nameservers i've installed 1st server eth0 Public IP own IP as DNS and eth0:0 Public IP and ISP DNS server 2nd server eth0 Public IP and ISP DNS oh and i've finally decided to add another network card on instead of using a virtual-ip but now i'm not able to assign the second ip on my dns server whenever i do that i get a eth0 Setting full-duplex based on MII #1 link partner capability of 45e1 done eth1 Setting full-duplex based on MII #1 link partner capability of 45e1 (and then it stops it does not take me back to the command line) and if i try pinging both ip's i do not get a reply so right now i've haven't configured eth1 do you have any idea why this happens or how i can stop it from happening
I guess there's something wrong with the network configuration on your DNS server. Before you make things more complicated: Don't add eth1 for now and try to get a working internet connection on the server. Then DNS should work as well. And please check if you have valid DNS servers in /etc/resolv.conf.
Falko Why is it that when after i've booted my 1st nameserver machine and i try dig @second IP www.google.co.za, i don't get a reply the only time i do get a response is after i ping that specific server's first IP its like i kinda have to remind my network card that it resolves IP's
Are you talking of two different machines, or of two IP addresses on the same machine? In the latter case I'd say you should check your network settings.
Hope this makes sense i was meaning that i have to use another machine to ping the machine with the secondary Public IP and only after that can i start dig @second IP www.google.com
Please check the network configuration of your first machine. Maybe there's something wrong with the configuration of the second NIC. Also check the logs.