this post was submitted on 12 Dec 2024
36 points (95.0% liked)
Linux
48665 readers
603 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You only need one. Standard is to use your router IP as local nameserver.
If your internet provider has issues with name resolutions, which happens sometimes, you can instead set 8.8.8.8 (Google's nameserver) or 1.1.1.1 (Cloudflare's nameserver). But then you can't ping other devices in your local network by name, and loading websites can be a tiny bit slower.
Do I put the ipv4 address in there or the ipv4 default gateway? Because I see these two and they're not the same IP. Now, I have the ipv4 default gateway in resolv.conf
On a home internet with just one router provided by your internet provider, your router is the gateway and the local nameserver.
So you can put the ipv4 of the router in everywhere it asks for default gateway or nameserver.