Solved

How to disable DNS via prompt

Posted on 2001-08-30
5
233 Views
Last Modified: 2013-12-16
How do I disable DNS via a terminal prompt?
0
Comment
Question by:0biwan
5 Comments
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 6440444
What do you mean by "disable DNS?"

Do you want to no longer resolve names through DNS?  In that case, you simply remove the nameserver entries from /etc/resolv.conf (or remove references to DNS from /etc/nsswitch.conf if your system has it).

Or do you want to no longer have your machine act as a DNS server?  In that case you disable the startup script for it (probably under /etc/rc.?/*bind)
0
 
LVL 1

Expert Comment

by:auther_bin
ID: 6440586
shutdown DNS from prompt:
        killall named
disable DNS startup when bootup
        mv /etc/rc.d/rc?.d/S??named /etc/rc.d/rc?.d/K??named

0
 
LVL 2

Expert Comment

by:ksemat
ID: 6461226
Depending on your distribution, you can kill the named process by using
killall named as already mentioned, in Redhat you can run linuxconf go to control service activity look for named (or bind?) and select it and uncheck the box that has automatic.
For SuSE depending on distribution edit /etc/rc.config and set
START_NAMED="no"
Any other distro, you need to cd /etc/rc.d/init.d
rm named
you can then depending on which runlevel you boot into e.g if it is runlevel 3 cd /etc/rc.d/rc3.d
rm S??named where ?? represents a number that ls in the directory will show.
0
 
LVL 1

Expert Comment

by:auther_bin
ID: 6491509
Many ways:
1. [root@yousrhost]# killall named
2. [root@yousrhost]# /etc/rc.d/init.d/named stop
3. [root@yousrhost]# kill `pidof named`
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8276337
All,
I am unlocking this question in preparation for cleanup.  I will return in 7 days to finalize this question.  Please leave any recommendations for the final state of this question, I will take all recommendations into consideration.  Failing any feedback, I may decide in 7 days to delete or PAQ this question with no refund.  Thanks.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now