My home server is assigned an IP address by my router (DD-WRT with Static DHCP; let's say it's 192.168.1.103) and is also assigned a name (let's say it's "kwtmserver").
With my (K)Ubuntu 14.04.05 (Trusty), I can connect to 192.168.1.103 and do ssh, OwnCloud, etc. However, it will not connect to "kwtmserver".
When I do "nslookup kwtmserver", it says:
** server can't find kwtmserver: NXDOMAIN
However, when I do "nslookup kwtmserver 192.168.1.1" (that IP address 192.168.1.1 is where my server is), then it correctly says:
(The ".lan" part is default domain name on my LAN.)
The question is: how do I my system to use 192.168.1.1 as the default DNS? I've tried modifying /etc/resolv.conf, /etc/network/interfaces, etc. Yes, I have done "sudo restart network-manager" after modifications. Yes, the router has DHCP and DNSmasq turned on.
I've read the other web forum postings on what to try, but my question is: if modifying those files don't work, what is the best way to figure out which file determines what the DNS is? Is there something like "nm-tool dns --verbose" which will say "the DNS is 184.108.40.206 BECAUSE THAT'S THE SETTING IN /etc/SomeHiddenConfig/OverrideDNS.conf" or something like that?
Command-line solutions would be much appreciated; the KDE tools seem to be lacking in some of the knobs that the user gets to twiddle.
I realize that I can bypass this with /etc/hosts, but am hoping to do name resolution on the router instead of having to modify each of the /etc/hosts files on each of the laptops.
The most frustrating thing is: this used to work a few days ago, before a tripped circuit breaker, which should not have been related, caused some sort of cable modem and router trouble that required resetting each, but now they seem to be up and running again. I don't see how this would have affected the laptop selection of which DNS to use, though.