LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 08-14-2021, 07:53 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 6,493
Blog Entries: 17

Rep: Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888
I have lost my dns resolution


Suddenly dns resolution does not work any more in AntiX-19.

My /etc/resolv.conf file turns out to be a link to /run/connman/resolv.conf, which doesn't exist. /run/resolvconf/resolv.conf does exist but is empty, with a warning not to edit it.

How do I get resolution working again?

PS: I have a temporary fix by editing a nameserver into /run/resolvconf/resolv.conf (after all, it's only a temporary filesystem so no permanent damage can be done), and relinking /etc/resolv.conf to it. But that's not a proper solution.

Fixed now! I was able to run an apt update with this "jury rig" and one of the packages updated was connman. Now the file /run/connman/resolv.conf exists again and the update script has relinked /etc/resolv.conf to it. Everything works again. Whew!

Last edited by hazel; 08-14-2021 at 08:04 AM.
 
Old 08-14-2021, 08:16 AM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDo, tinycore, Q4OS,Manjaro
Posts: 4,531

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
ConnMan should run at boot and set up or configure your network connections. If you disabled it to enable another tool, or to manually set up your networking, then you need to take steps to replace the part it is no longer providing.

IF we can assume it will NOT try to run, you can fix your name lookup by
Code:
rm /etc/resolv.conf
echo "nameserver 8.8.8.8" > /etc/resolv.conf
echo "nameserver 76.76.19.19" >> /etc/resolv.conf

If you have local DNS/nameservers, use those IP addresses in the place of 8.8.8.8 and 76.76.19.19.
If you know better primary and secondary public DNS servers for your area or country you can use those IP addresses.
The ones I used (8.8.8.8 and 76.76.19.19) are public ones in the USA.
Public servers in the UK include 84.8.2.11, and 212.118.241.33.

IF you know your local domain name use
Code:
echo "search local.net" >> /etc/resolv.conf
also.
You can skip the search value if you have no local domain for which you want to resolve short names.
 
Old 08-14-2021, 08:25 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 6,493

Original Poster
Blog Entries: 17

Rep: Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888
Quote:
Originally Posted by wpeckham View Post
IF we can assume it will NOT try to run, you can fix your name lookup by
Code:
rm /etc/resolv.conf
echo "nameserver 8.8.8.8" > /etc/resolv.conf
echo "nameserver 76.76.19.19" >> /etc/resolv.conf
Basically that's what I did in the end, except that I wrote my local nameserver address into a suitable empty directory in the /run tree and made /etc/resolv.conf a symbolic link to that rather than writing directly into it. See the PS to my original post for details.

It turned out that something had gone wrong with connman and updating it solved the problem. I remember now that something weird happened during my last update attempt; it didn't go to completion and probably that trapped connman in a non-functioning state.

It's funny how the discipline of writing out a problem so that other people can have some chance of helping you can often trigger a solution.

Last edited by hazel; 08-14-2021 at 08:27 AM.
 
Old 08-14-2021, 08:41 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,578

Rep: Reputation: Disabled
I just want to add that /run/resolvconf/resolv.conf is probably an artifact of resolvconf.
 
Old 08-14-2021, 08:44 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 6,493

Original Poster
Blog Entries: 17

Rep: Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888
Yeah, I checked the man page for resolvconf and it said that's the preferred Debian location for nameserver data, but clearly AntiX doesn't make use of it.

Things were a hell of a lot simpler when you had a proper text file at /etc/resolve.conf and put your nameserver into it by hand. Why are things so complicated these days?

Last edited by hazel; 08-14-2021 at 08:46 AM.
 
Old 08-14-2021, 11:25 AM   #6
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDo, tinycore, Q4OS,Manjaro
Posts: 4,531

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
Quote:
Originally Posted by hazel View Post
Yeah, I checked the man page for resolvconf and it said that's the preferred Debian location for nameserver data, but clearly AntiX doesn't make use of it.

Things were a hell of a lot simpler when you had a proper text file at /etc/resolve.conf and put your nameserver into it by hand. Why are things so complicated these days?
Automating that made sense for all of the people with laptops and other mobile devices. If they move form one network to another often, the DHCP load also updates name resolution as appropriate. Not optimal if you are locked on a single network, but the dynamic case works well enough to be the default.

?None of my machines run at perfect default sets, I like to tweak more than I probably should! ;-)
 
Old 08-14-2021, 04:06 PM   #7
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 579

Rep: Reputation: 171Reputation: 171
Sorry about the connman issues on antiX.
About a week or so ago, we tried to fix a long-standing Debian bug with connman and also integrate it better with resolvconf and our tui/cli app -Ceni.
It didn't work out as well as we hoped, so the very latest connman update simply reverts back to what was shipped on the original antiX-19 series isos.
 
Old 08-15-2021, 04:21 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 6,493

Original Poster
Blog Entries: 17

Rep: Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888
So it wasn't actually my fault. Thanks a lot, anticapitalista.
 
Old 08-23-2021, 04:44 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 6,493

Original Poster
Blog Entries: 17

Rep: Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888
Update: I'm at my friend's house. She ran into exactly the same problem with the same fix. Everything OK now!
 
  


Reply

Tags
conman, resolv, resolvconf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Doggo Is A DNS Lookup Utility With Colorful Output, DNS-overTLS and DNS-over-HTTPS Support LXer Syndicated Linux News 0 04-07-2021 02:30 AM
Local network DNS resolution fails, but DNS resolution to internet is OK farge Linux - Networking 6 05-28-2008 11:49 PM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM
Bind have lost some zone in named.conf & lost db file achilles Linux - Enterprise 0 04-19-2007 06:22 AM
DNS Server: WinXP DNS clients losing name resolution frequently loopy69 Linux - Server 4 03-27-2007 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration