Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok, I edited the /etc/nsswitch.conf file to change that line, rebooted and pretty much lost DNS on my system. Firefox couldn't find anything at all. I put the file back the way it was, rebooted, and I'm back to "normal". I have a nagging feeling in the back of my head that a DNS problem could explain some odd behavior I've seen on this computer, but I can't think of a specific example other than my current printing and octopi issues.
Is there a way to "refresh" my DNS configurations?
Here's what my whole nsswitch.conf file looks like:
# /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.
Ok, I edited the /etc/nsswitch.conf file to change that line, rebooted and pretty much lost DNS on my system. Firefox couldn't find anything at all. I put the file back the way it was, rebooted, and I'm back to "normal". I have a nagging feeling in the back of my head that a DNS problem could explain some odd behavior I've seen on this computer, but I can't think of a specific example other than my current printing and octopi issues.
That should have worked without issue. Are you missing libnss-mdns perhaps?
Code:
dpkg -l|grep nss
Without mdns_minimal (or mdns4_minimal for IPv4 only) configured Avahi hostname resolution won't work. The package provides the required libraries...
Code:
dpkg-query -L libnss-mdns
Quote:
Is there a way to "refresh" my DNS configurations?
This is really only relevant when name caching is employed. From a quick google, I'm not sure Ubuntu 16.04 employed any such mechanism, and in any case a reboot would sort that out.
In your opening post you mentioned
Quote:
My laptop can't access the Octopi application via a browser and I should be able to.
What does the browser URL to reach the software look like?
All those commands say avahi-daemon is running correctly. I did a restart and it cause errors in the status results but rebooting the pi cleared them up.
No change in not being able to reach the pi via the browser or printing.
I'm going to try deleting and reinstalling the printers later today just to see how things go.
I'm going to try deleting and reinstalling the printers later today just to see how things go.
I wouldn't bother with that step, until you have mDNS working. Having said that, you could change the CUPS printer configurations to use the printer IP addresses and the appropriate network backends for the printers concerned. Then Avahi service discovery is not used (at least from a printing perspective).
Examining the open ports on the printers can be a good guide as to which network printing protocols are supported
It is strange that you can't get Avahi working properly on the Ubuntu host. A firewall not configured for mDNS multi-casting is the only possibility (based on what you've posted so far) that I can see now for an issue with this particular host.
Hi Ferrari, I'm back onto this after a small break.
I'm thinking at this point that there must be a different configuration file damaged than the ones we've checked. The avahi daemon is running correctly and everything we've looked for seems to be in place. The single problem we found was that my /etc/nsswitch.conf file had one line incorrect.
Original: hosts: files dns
Corrected: hosts: files mdns4_minimal [NOTFOUND-return] dns
The trouble is that if I use the corrected version, I can't access the internet from my browser and SpiderOak doesn't connect. I can however still use my Synergy mouse/kvm software correctly, but it doesn't use DNS.
Changing between the original and corrected versions of the nsswitched.conf file has no impact on my ability to access "octopi.local" or printing.
I did delete one of my printers and reinstall it, twice. The install went differently both times when it came to picking drivers, but attempting to print a test page resulted in another "the printer may not be connected" error message.
SOOOOO, are there any other configuration files that might be impacted? I've still got a sense that this is a DNS issue but that we're looking in the wrong place.
I'm thinking at this point that there must be a different configuration file damaged than the ones we've checked. The avahi daemon is running correctly and everything we've looked for seems to be in place. The single problem we found was that my /etc/nsswitch.conf file had one line incorrect.
Original: hosts: files dns
Corrected: hosts: files mdns4_minimal [NOTFOUND-return] dns
The trouble is that if I use the corrected version, I can't access the internet from my browser and SpiderOak doesn't connect. I can however still use my Synergy mouse/kvm software correctly, but it doesn't use DNS.
Be careful with your syntax. It's
Code:
hosts: files mdns4_minimal [NOTFOUND=return] dns
Did you reboot (or at least restart the network) after making the required changes? I don't get
Quote:
SOOOOO, are there any other configuration files that might be impacted? I've still got a sense that this is a DNS issue but that we're looking in the wrong place.
Avahi name resolution has nothing to do with DNS though. Resolving foo.local hostnames (within your LAN) is done by Avahi.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.