LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux
User Name
Password
4MLinux This forum is for the discussion of 4MLinux.

Notices


Reply
  Search this Thread
Old 07-07-2016, 11:05 AM   #1
ggruen
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Rep: Reputation: Disabled
Thumbs up DNS resolv.conf


Hello, 4m Linux ist just a wonderfull small and simple Distribution.
But how is it possible to change the DNS-Server in the resolv.conf permanently?
greetings
g.gruen
 
Old 07-07-2016, 12:16 PM   #2
lazydog
Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 908
Blog Entries: 1

Rep: Reputation: 151Reputation: 151
If you are using DHCP then the DHCP server will supply the DNS server to use and on every reboot this file will be over written.

If you are static then you simply edit the file and add your information as so:

Code:
search <Your Domain Here>
nameserver #.#.#.#
nameserver #.#.#.#
 
Old 07-07-2016, 12:39 PM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,959

Rep: Reputation: Disabled
You can configure your DHCP client so it will not force DNS on you. See the manual page for your DHCP client.
 
Old 07-07-2016, 01:07 PM   #4
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 591

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by lazydog View Post
If you are using DHCP then the DHCP server will supply the DNS server to use and on every reboot this file will be over written.

If you are static then you simply edit the file and add your information as so:

Code:
search <Your Domain Here>
nameserver #.#.#.#
nameserver #.#.#.#
Unfortunately, this will not work in 4MLinux.
 
Old 07-07-2016, 01:08 PM   #5
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 591

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by Emerson View Post
You can configure your DHCP client so it will not force DNS on you. See the manual page for your DHCP client.
Unfortunately, this will not work in 4MLinux.
 
Old 07-07-2016, 01:42 PM   #6
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 591

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by ggruen View Post
Hello, 4m Linux ist just a wonderfull small and simple Distribution.
I fully agree with you ;-)

Quote:
Originally Posted by ggruen View Post
But how is it possible to change the DNS-Server in the resolv.conf permanently?
g.gruen
Open the dhcpcd-gui script. You can do this in your terminal:
Code:
mcedit /usr/bin/dhcpcd-gui
Replace "nameserver 8.8.8.8" with whatever you wish to use, save changes, restart X.

Let me know if this is OK with you, or you need dynamic IP address(es) in /etc/resolv.conf.

.
 
Old 07-08-2016, 08:21 AM   #7
ggruen
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hello - it works, its simple if you know how to do...
Thanks
G.Gruen
 
Old 07-08-2016, 11:13 AM   #8
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 591

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by ggruen View Post
Hello - it works, its simple if you know how to do...
Thanks
G.Gruen
You're welcome!
Please mark this thread as solved.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
resolv.conf - and DNS settings milomak Linux - Networking 3 07-09-2010 06:04 PM
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
resolv.conf dns issues billbob Linux - Software 3 09-30-2005 12:20 PM
dns server and /etc/resolv.conf freeosfreesoul Linux - Laptop and Netbook 2 09-02-2005 06:45 PM
DNS & resolv.conf robeb Linux - Networking 1 06-25-2002 09:15 PM


All times are GMT -5. The time now is 12:29 PM.

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