Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-01-2007, 08:26 PM   #1
Registered: Jan 2006
Location: Canada, AB
Distribution: Slackware 12.1
Posts: 70

Rep: Reputation: 18
setting up a custom nameserver

I would like to permanently set my nameserver to something I want.

Currently, my network is set by DHCP, and this controls my nameserver.

What I want is to pernanently set my own nameserver so that DHCP is unable to set it.

Thanks for reading and I look forward to resolving this issue.

I know about resolv.conf but that only sets the nameserver for one session
Old 10-01-2007, 08:55 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,124

Rep: Reputation: 164Reputation: 164
Are you using dhcpcd to contact the DHCP server in /etc/rc.d/rc.inet1? If so, it can take -R as an option to tell it not to overwrite /etc/resolv.conf - that way the contents of /etc/resolv.conf are kept between re-boots.

Last edited by gilead; 10-01-2007 at 08:56 PM.
Old 10-01-2007, 11:30 PM   #3
Registered: Jan 2006
Location: Canada, AB
Distribution: Slackware 12.1
Posts: 70

Original Poster
Rep: Reputation: 18
Thanks, that did the trick.
Old 10-03-2007, 12:45 AM   #4
Slackware Contributor
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
And the "official" way to do it is to use the options in rc.inet1.conf



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting a custom command drimades Linux - Kernel 1 11-15-2006 10:04 AM
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 04:05 AM
Setting up a custom wireless access point aidano Linux - Wireless Networking 1 03-17-2006 01:04 AM
custom geforce video card--custom module? bandofmercy Linux - Hardware 3 10-14-2004 07:52 PM
Setting up custom rules in SuSEfirewall2 on SuSE 9.1 jon_nxt Linux - Networking 0 05-28-2004 04:28 AM

All times are GMT -5. The time now is 04:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration