Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to disable DNS via prompt

Posted on 2001-08-30
5
Medium Priority
?
242 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

705 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