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 04-09-2021, 03:03 PM   #1
tjgonzalez
LQ Newbie
 
Registered: Apr 2021
Posts: 4

Rep: Reputation: Disabled
Angry DNS Client configuration


Good afternoon.
Greetings to all the members of this forum.

How can I configure my laptop to use the DNS server provided by my DHCP server?

It seems that the operating system configuration is fixed for google DNS 8.8.8.8

OS: 4MLinux v36.0 STABLE


Thanking you very much,
 
Old 04-09-2021, 04:27 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,542

Rep: Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083
I'm not familiar with this distro, but in general terms the exact method depends on the network management tool your distro uses. Anyway, a quick search turned up this post.

Quoted post...
Quote:
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.
 
Old 04-09-2021, 04:41 PM   #3
tjgonzalez
LQ Newbie
 
Registered: Apr 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Unhappy

Thanks for your prompt response.

Indeed I have previously read the "post" you mention, but I do not understand "Replace" nameserver 8.8.8.8 with whatever you wish to use ... ".
If I comment the line the OS does not configure the DNS from the DHCP server.
So, I don't know what to put in the "NAMESERVER" variable or if additional configuration is needed in the DHCPCD daemon.


Regards,
 
Old 04-09-2021, 04:44 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,542

Rep: Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083
Quote:
Originally Posted by tjgonzalez View Post
Thanks for your prompt response.

Indeed I have previously read the "post" you mention, but I do not understand "Replace" nameserver 8.8.8.8 with whatever you wish to use ... ".
If I comment the line the OS does not configure the DNS from the DHCP server.
So, I don't know what to put in the "NAMESERVER" variable or if additional configuration is needed in the DHCPCD daemon.


Regards,
Is the DHCP server also your gateway router? Does it provide DNS as well? If so, replace it with the IP address of the gateway.

Last edited by ferrari; 04-09-2021 at 04:48 PM.
 
Old 04-09-2021, 05:05 PM   #5
tjgonzalez
LQ Newbie
 
Registered: Apr 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Red face

Yes, it is clear. I understand you perfectly. In fact the laptop is browsing and downloading from the internet, but with the configuration fixed to the 8.8.8.8 DNS server as it remains after installing 4MLinux.

Thank you,
 
Old 04-09-2021, 05:29 PM   #6
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,181

Rep: Reputation: 216Reputation: 216Reputation: 216
1. Configure your network: Menu > Settings > Networking > NetConfig

2. Execute the "connect" command in your terminal. The output on my PC is as follows:
Code:
oot@4MLinux:~$ connect
Connecting via the eth0 interface:
udhcpc: started, v1.31.1
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending select for 192.168.1.26
udhcpc: lease of 192.168.1.26 obtained, lease time 86400
deleting routers
route: SIOCDELRT: No such process
adding dns 192.168.1.1
so my DNS nameserver is 192.168.1.1

3. Now you can open Menu > Settings > Networking > dhcpcd
Code:
# Enable dhcpcd daemon?
DAEMON=yes

# Nameserver to use?
NAMESERVER=8.8.8.8

# Interface to use (*)?
IFACE=any

# Enable dhcpcd GUI?
GUI=yes

# Enable notifications?
NOTIFICATIONS=no

# (*) Note:
# You can replace "any" with eth0, wlan0 and so on.
You can either disable dhcpcd daemon completely (DAEMON=no) or replace 8.8.8.8 with your DNS nameserver.

.
 
1 members found this post helpful.
Old 04-09-2021, 07:12 PM   #7
tjgonzalez
LQ Newbie
 
Registered: Apr 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Talking

Thank you again.

Have a good day.
 
  


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
LXer: Doggo Is A DNS Lookup Utility With Colorful Output, DNS-overTLS and DNS-over-HTTPS Support LXer Syndicated Linux News 0 04-07-2021 02:30 AM
dns client cannot resolve on dns server jtvillegas Linux - Software 3 03-12-2016 03:30 PM
DNS client will not resolve when DHCP DNS entry exists kasl33 Linux - Server 2 08-24-2014 08:01 PM
How to configure DNS Server & DNS Client in RHEL4 chanakkya Linux - Networking 1 07-05-2009 01:41 PM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux

All times are GMT -5. The time now is 02:57 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
Open Source Consulting | Domain Registration