Relevant hardware:
Laptop with ethernet cable plugged in, dual boot win 10 and ubuntu 16.04
There's an url I need to be able to access that I assume points to a server on the local network. The url is like tool.mycompany.local
. This url works on my windows boot but not on my linux boot (ERR_NAME_NOT_RESOLVED
in chrome).
The biggest issue is that I have no idea what to google (".local" searches for "local") and https://en.wikipedia.org/wiki/.local doesn't seem to have the info I need (or I don't understand it).
I've tried tracing the ip for that url from windows, which works, but if I try to access that ip from linux I get redirected to the url upon which I get the same ERR_NAME_NOT_RESOLVED as I did before.
The servicedesk here is no help as everyone is expected to work with windows and I'm an external consultant with my own laptop.
Worst case I reboot to windows so it's not that big of an issue, I'd mostly want to know why this happens and whether I can fix this on my end.
Thanks!
EDIT: I'm a retard and completely missed the second part of the redirect: it not only redirects to the url, but more specifically to a login page along the lines of tool.mycompany.local/login
. replacing the base url with the ip address again shows me the login page again.
That aside, not having to manually replace that each time would be nice.
EDIT2:
Like I said in a comment: I tried with wget
and curl
too, and no difference. I've also tried with nslookup
on linux and it DOES work!
Why don't chrome / wget / curl use that nameserver then?
EDIT3: to answer a question from the comments:
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
gshadow: files
hosts: files mdns4_minimal [NOTFOUND=return] dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
resolv.conf
if I'm not mistaken. – Seth Mar 22 '18 at 13:08/etc/nsswitch.conf
file to your question? Particularly the line starting withhosts:
? – user2313067 Mar 22 '18 at 16:40[NOT FOUND=return]
from the hosts line. I don't know why that comment is there but unless Ubuntu does strange patches to glibc, this should be used. – user2313067 Mar 23 '18 at 15:26.local
is often a poor choice for an intranet DNS: it should be reserved for multicast DNS (the mdns4_minimal entry). Depending on settings this can slow down or make DNS requests fail (notwithtanding a wrong DNS server), precisely because it's before "dns" in the lookup order, probably to implement rfc 6762 efficiently: en.wikipedia.org/wiki/Multicast_DNS#Protocol_overview – A.B Mar 24 '18 at 22:28