Full Domain Required for LAN Usage Only?
-
The DNS server should work with either the host or other command, such as ping. It certainly works that way here.
-
yes, of course, it was a generic answer to it's latest question. idk why host work and ping not for him.
but for host, names with fewer dots are interpreted as relative names and will be searched for in the domains listed in the search or domain directive in /etc/resolv.confkiokoman@nanto:~$ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN # 127.0.0.53 is the systemd-resolved stub resolver. # run "systemd-resolve --status" to see details about the actual nameservers. nameserver 127.0.0.1 search kiokoman.home
so it's possible that he have "search" inside resolv.conf but not "dns-search" in the interface configuration
-
So, basically, I do need to tell each separate machine on the LAN to add the domain to a host name when I provide only a host name?
-
yes, as i said it's automatic if you use dhcp server, otherwise you need to set the suffix
there probably is powershell/cmd command to do it but i never had the need for this -
Be careful here not to confuse domain searching with Windows own SMB/Netbios lookups. Windows tends to lookup via Netbios and then search but returning a result that looks like a domain search has happened and the domain was appended to the hostname.
Can cause a lot of headaches.
-
At this point, I'm using Macs and a few Linux systems, so no Windows systems on the LAN at the moment. I am using my pfSense firewall as the DHCP server and DNS Resolver. Sorry, I should have specified what systems I had on the LAN earlier, but I was thinking, "If there's a solution because of something on pfSense, OS shouldn't matter." My bad.
What I find odd is that "ping gimli" doesn't work and "host gimli" does work. I have added rivendell.me as a search domain on my main workstation and things are working okay from there. I was just hoping there was something I could do on pfSense, to either the DHCP server or DNS resolver settings, to make it work for all systems without having to change settings on each system.
-
pfsense will not return an answer to a non qualified query.. A query for dns to resolve needs to be fully qualified, you can hand out the domain clients should use via dhcp... Pretty much all OSes will leverage this..
-
Okay, that's what I thought, but I figured I'd ask to make sure I have a clear understanding of what's going on. I also figured that if I was wrong, I'd like to know what I could do instead.
Thank you, everyone!
-
@TangoOversway said in Full Domain Required for LAN Usage Only?:
So, basically, I do need to tell each separate machine on the LAN to add the domain to a host name when I provide only a host name?
Only if you're using static config. With DHCP it should happen automagically. On the DHCP server page, there's a box for the domain name. It's normally left blank so that the default name is used.
-
@JKnott said in Full Domain Required for LAN Usage Only?:
@TangoOversway said in Full Domain Required for LAN Usage Only?:
So, basically, I do need to tell each separate machine on the LAN to add the domain to a host name when I provide only a host name?
Only if you're using static config. With DHCP it should happen automagically. On the DHCP server page, there's a box for the domain name. It's normally left blank so that the default name is used.
This is why I ask questions, even if I think it might be a dumb question. I didn't realize that! I don't know how, but I missed the domain field on the DHCP Server page, so I made the change and tested and it's working fine. (This will also make it easier for my wife to do things like play video and music files off of network shares.)
So why is it possible to do this with DHCP, but not with a static config?
-
It is possible to do with a static config... You just need to set up the machines actual domain name and or search suffix..
A machine should always have a fqdn, not just a host name..
Your pfsense machine has a domain name, when you set it up.. defaulted to localdomain most likely.. This is common default..
What is in the domain of pfsense is what would be handed out, when you leave it blank in your dhcp settings.