1832751 Members
2811 Online
110045 Solutions
New Discussion

Getting rid off an DNS

 
SOLVED
Go to solution
Oscar Garcia
Regular Advisor

Getting rid off an DNS

Hi everybody!

I have an old production server running HP-UX 10.20. In the last weeks I have been trying to tide it up, finding day by day nasty surprises...
The latest one: I found out it is a DNS, and it keeps filling the syslog file with messages like:
Sep 12 07:06:07 myserver-A named-xfer[4148]: [XXX.XXX.XXX.X] not authoritative for myserver.mydomain.co.uk, SOA query got rcode 0, aa 0, ancount 1, aucount 0

I know that there are many things wrong with the DNS configuration files, and they are quite out of date, but I'm not interested to used it as DNS (We have never intended to!).

Is there any way to switch off named forever and ever? I have read a lot about configuring but not disabling it... and in sam the only available thing is to stopped it, but at boot time I imagine it will come back...

Thanks in Advance

BIND version named 4.9.7
5 REPLIES 5
Uday_S_Ankolekar
Honored Contributor

Re: Getting rid off an DNS


If named process is running
try killing it by

sig_named kill

You can also disable it by while booting..

in file /etc/rc.config.d/namesvrs
put 0 infront of NAMED

-USA..
Good Luck..
steven Burgess_2
Honored Contributor

Re: Getting rid off an DNS

Hi

The config file you are after is /etc/rc.config.d/namesvrs

/sbin/init.d/named stop

set

NAMED=0

HTH

Steve



take your time and think things through
unixdaddy
Trusted Contributor

Re: Getting rid off an DNS

you could remove your /etc/nsswitch.conf and resolv.conf and if sendmail starts to complain about FQDN then put a '.' after your hostname in /etc/hosts.
Sean OB_1
Honored Contributor

Re: Getting rid off an DNS

This will kill it immediately.

ps -ef | grep named

kill -9 pid-of-named

To remove it from startup edit /etc/rc.config.d/namesvrs and change NAMED=1 to NAMED=0.


HTH,

Sean
Anil C. Sedha
Trusted Contributor
Solution

Re: Getting rid off an DNS

Oscar,

The default startup parameter is in /etc/rc.config.d/namesvrs

You must edit the file and make the parameter "named"=0
I believe it would be currently "1" as it starts up after a reboot.

Also, the system startup files are placed in /sbin/init.d/ and you may remove links from /sbin/rc2.d & rc3.d like /sbin/rc2.d/S370named & /sbin/rc1.d/K630named

This will resolve your issue. Don't forget to assign points to answers which are valuable to you.
If you need to learn, now is the best opportunity