I was looking to change my DNS but it also asks for "search domains" what are those?
my system details: Linux Mint 20.2 xfce 64bit
what are DNS search domains ?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
- Level 1
- Posts: 4
- Joined: Wed Dec 08, 2021 10:28 am
what are DNS search domains ?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: what are DNS search domains ?
Simple answer:
In general, you don't need search domains. You'll know when you need to fill that box in with information.
Long answer:
They're what gets automagically tacked onto hostnames.
This forum has 3 DNS components:
Now to tie it all together. If, for example, you set "linuxmint.com" as a search domain, in your browser you could simply type "forums", hit enter, and you'd be directed here because what resolves DNS on your computer would tack ".linuxmint.com" onto anything that doesn't end with a period.
If you want more info or that doesn't make sense, just ask.
In general, you don't need search domains. You'll know when you need to fill that box in with information.
Long answer:
They're what gets automagically tacked onto hostnames.
This forum has 3 DNS components:
- forums
- linuxmint
- com
Now to tie it all together. If, for example, you set "linuxmint.com" as a search domain, in your browser you could simply type "forums", hit enter, and you'd be directed here because what resolves DNS on your computer would tack ".linuxmint.com" onto anything that doesn't end with a period.
If you want more info or that doesn't make sense, just ask.
-
- Level 1
- Posts: 4
- Joined: Wed Dec 08, 2021 10:28 am
Re: what are DNS search domains ?
i understand what you said but it also wants a search domain with a dns so what do i enter in search domains box or is there a way i can skip adding a search domain?
Re: what are DNS search domains ?
A "search domain" is only needed for your local network. All DNS queries that are fully qualified (FQDN) such as forums.linuxmint.com will be sent to your specified external DNS server for resolution to an IP address. This is for resolving external hosts. If you have multiple PCs/devices at home their names cannot be resolved by an external DNS server.Rotten Hero wrote: ⤴Thu Dec 09, 2021 3:24 am i understand what you said but it also wants a search domain with a dns so what do i enter in search domains box or is there a way i can skip adding a search domain?
If you want your internal devices to be resolvable to an IP address, you would need to either use the hosts file on each device, or create an internal DNS server.
The "search domain" is to tell your PC what to do to resolve names that are not fully qualified. If you called your PC server1, then your PC will try to resolve "server1" using the hosts file first, if there is no entry for server1 in the hosts file it will try to add the "search domain" to server1 (server1.localdomain) and try to resolve that using your DNS server entry. It will obviously not get a valid answer for server1.localdomain.
You could make up a domain for internal use if you have other devices to connect with on your local network such as mydomain.local for example.