Solved

How to disable DNS via prompt

Posted on 2001-08-30
5
234 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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 am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

867 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

12 Experts available now in Live!

Get 1:1 Help Now