LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2018, 11:33 PM   #1
DennyY
Member
 
Registered: May 2018
Location: San Francisco, CA
Distribution: CentOS 7
Posts: 76

Rep: Reputation: 1
Question Why do we need DNS option in DHCP server?


Hi All,

I know that DNS translates domain names to IP addresses so browsers can load Internet resources. But why do we need to include:

option domain-name-servers 8.8.8.8,4.4.4.4;

in our dhcpd.conf?

I mean, don't modern routers already taking care of DNS issue already?

Thank you,
Denny
 
Old 05-30-2018, 12:02 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,422
Blog Entries: 9

Rep: Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668
they can, but not necessarily, or do not allow for enough control, so some people still like to use their computers.
on my router dns wasn't even switched on by default.

btw, i just looked at dhcp wikipedia page and it seems that name resolving is only one of its tasks, maybe not even its main task.
 
1 members found this post helpful.
Old 05-30-2018, 12:11 AM   #3
DennyY
Member
 
Registered: May 2018
Location: San Francisco, CA
Distribution: CentOS 7
Posts: 76

Original Poster
Rep: Reputation: 1
Question No internet access on my DHCP server

Now my DHCP server is up and running, but it has no internet connection.

Is this what it is supposed to be? Because now this station is a server, so it has no internet connection?

My internet connection is fine.

Thanks,
Denny



Quote:
Originally Posted by ondoho View Post
they can, but not necessarily, or do not allow for enough control, so some people still like to use their computers.
on my router dns wasn't even switched on by default.

btw, i just looked at dhcp wikipedia page and it seems that name resolving is only one of its tasks, maybe not even its main task.
 
Old 05-30-2018, 06:46 PM   #4
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 423

Rep: Reputation: Disabled
I mean, don't modern routers already taking care of DNS issue already?

Thank you,
Denny[/QUOTE]


yea, they charge you for putting one line in a file and getting you to pay for the result of what you could have done yourself !

p.s. that line isn't in my config file, so "no, it doesn't have to be there". but on your setup it may have a purpose
 
Old 05-30-2018, 07:46 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,554

Rep: Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146
There are many versions of DHCP servers and clients.

Typically what the client gets from the DHCP server is an IP address/netmask, The IP address of the gateway and the IP addresses of the name servers. Typically the DHCP server on the home router uses their address for DNS but as far as I know the router is just a DNS forwarder that uses the DNS servers as provided by your ISP DHCP server. If your DHCP server is not providing the information then your client will not be able to access the internet.

From your other thread since your DHCP server is configured using a static IP address you need to manually add DNS servers before it can access the internet. If your DNS server is running a desktop you can configure DNS using the Network Manager applet.
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I perform maintenance on a master DNS/DHCP (BIND9/ISC-DHCP) Ubuntu server? Sniperm4n Linux - Server 2 09-09-2013 02:19 PM
Baffling DNS from a DHCP server problem. Appears to be ignoring dhcp.conf royce2020 Linux - Networking 1 02-16-2010 01:40 PM
DHCP Server - Option 43 Suboption 15 endfx Linux - Server 1 06-17-2008 02:57 PM
DHCP-server. option routers lalu Linux - General 0 09-13-2001 02:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:53 AM.

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