Solved

How to disable DNS via prompt

Posted on 2001-08-30
5
240 Views
Last Modified: 2013-12-16
How do I disable DNS via a terminal prompt?
0
Comment
Question by:0biwan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

617 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