LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-19-2021, 11:04 PM   #1
dimitridemetrius
LQ Newbie
 
Registered: Jul 2021
Location: New Zealand
Posts: 1

Rep: Reputation: Disabled
Using home router as dns server


My home broadband router has a dns service capability.
My question is, do I need to enable this for resolving IP addresses on my home network?
 
Old 07-20-2021, 01:16 AM   #2
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
dimitridemetrius,

If the router is what various home internet providers might describe as a "residential gateway", and if you wish to have fixed local IP's for different machines at home, it may have the ability to provide that via DHCP. If your goal is broader, figuratively and literally, such as to allow access to some or all of the machines at home, from outside your local home network, then you can often specify which machine you wish to route to, depending on various factors. If you could give us some idea of what your goal is, we might be able to help more. In other words, in what context do you wish to "resolve IP addresses on your home network"?

As an example, to make it simple for me to reach one machine in my home network from another, some of them have been assigned fixed local IP addresses, but they get them via DHCP. Beyond that, I use external DNS, of the free type, to target the IP address assigned to the "residential gateway", but with a specific port. I then have the gateway route communication with the port to an associated standard port of a specific machine on the local network.
 
Old 07-20-2021, 01:39 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by dimitridemetrius View Post
My home broadband router has a dns service capability.
My question is, do I need to enable this for resolving IP addresses on my home network?
No. You can run a DNS server on other devices.
 
Old 07-20-2021, 01:41 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
And if all that makes your head spin, the simple answer is likely "Yes". Connect any new device and it will get a local IP address and be able to connect out to the internet. If that is all you need for now, that's all you need to do. Additional features as above can be added later.
I don't think I've seen a ISP router (gateway) that isn't a DHCP server by default.


Sorry - you said DNS, I read DHCP ...

Last edited by syg00; 07-20-2021 at 07:29 PM.
 
Old 07-20-2021, 04:15 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Welcome to LinuxQuestions.

Some home routers do have local DNS capabilities and without additional information I don't know if this is what settings you are looking at. Try it and see. DHCP address will be automatically added to allow you to use hostnames versus IP addressing to connect to other network devices.
 
Old 07-20-2021, 02:44 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
I agree that normally part of a dhcp offer is also one that includes dns.

One can easily modify locally to force any of a number of dns servers but there could be some order to how a FQDN is resolved. Hosts files and things like proxy.pac can affect all that.
 
Old 07-20-2021, 03:37 PM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,662
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
"Your mileage may vary,™" but my home router does offer DNS services.

Its DHCP implementation also allows you to assign predictable internal IP-addresses to devices based on their "MAC address."

However – the /etc/hosts file gives you the ability to resolve names locally. So, you could set up your router to assign known IP's to certain devices, then list them in the hosts-file.
 
  


Reply



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
Dynamic DNS with router update - How to configure DNS name server? Thomas Korimort Linux - Networking 1 07-25-2016 07:57 AM
OpenWRT home router isn't liking ISP's router bennypr0fane Linux - Networking 8 02-16-2015 11:14 AM
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home leswatson Linux - Newbie 4 04-18-2008 04:02 PM
Put a 2nd kanotix at hdb 3/,-4/home. 1st is at hdb8/,-9/home.#2 is using 1st's /home sleekmason Linux - General 3 12-09-2006 09:21 AM
want to ssh/ftp to home machine (Slack) from office through home router fincher69 Linux - Networking 2 09-21-2005 10:55 PM

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

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