Discussion:
[ale] Multi-label names
Todor Fassl via Ale
2018-03-07 18:09:25 UTC
Permalink
I am having a problem after an upgrade to ubuntu artful. If I do a host
lookup for a non-existing, unqualified host name, it takes a long time
to error ot. Say I have a host named spock. I can say, "host spock" and
that comes back instantly. If I say, "host sopck" or some other typo, it
takes like 10 seconds and I get this:
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached

On an old machine, I get this:
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms

I see that on the ubuntu/artful machines, I am running systemd-resolv
(through no fault of my own). It's listening on 127.0.0.1 and caching
DNS queries. So trying to read the man page for systemd-resolv, I keep
coming across the term "multi label names". I never heard that term
before, don't know what it means, and it appears to be ungoogleable.

Any advice on the original problem or on the meaning of that term would
be appreciated.
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Lightner, Jeffrey via Ale
2018-03-07 18:28:17 UTC
Permalink
Does it run any better if you turn off systemd-resolv (systemctl stop systemd-resolv)?

What is in your /etc/resolv.conf on the two servers?



-----Original Message-----
From: Ale [mailto:ale-***@ale.org] On Behalf Of Todor Fassl via Ale
Sent: Wednesday, March 07, 2018 1:09 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] Multi-label names

I am having a problem after an upgrade to ubuntu artful. If I do a host lookup for a non-existing, unqualified host name, it takes a long time to error ot. Say I have a host named spock. I can say, "host spock" and that comes back instantly. If I say, "host sopck" or some other typo, it takes like 10 seconds and I get this:
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached

On an old machine, I get this:
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms

I see that on the ubuntu/artful machines, I am running systemd-resolv (through no fault of my own). It's listening on 127.0.0.1 and caching DNS queries. So trying to read the man page for systemd-resolv, I keep coming across the term "multi label names". I never heard that term before, don't know what it means, and it appears to be ungoogleable.

Any advice on the original problem or on the meaning of that term would be appreciated.
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Lightner, Jeffrey via Ale
2018-03-07 18:32:10 UTC
Permalink
This posts suggests it is systemd-resolved and gives options for using dnsmasq instead:

https://askubuntu.com/questions/898605/how-to-disable-systemd-resolved-and-resolve-dns-with-dnsmasq

My RHEL7 systemd doesn't have systemd-resolved.

-----Original Message-----
From: Ale [mailto:ale-***@ale.org] On Behalf Of Lightner, Jeffrey via Ale
Sent: Wednesday, March 07, 2018 1:28 PM
To: Todor Fassl; Atlanta Linux Enthusiasts
Subject: Re: [ale] Multi-label names

Does it run any better if you turn off systemd-resolv (systemctl stop systemd-resolv)?

What is in your /etc/resolv.conf on the two servers?



-----Original Message-----
From: Ale [mailto:ale-***@ale.org] On Behalf Of Todor Fassl via Ale
Sent: Wednesday, March 07, 2018 1:09 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] Multi-label names

I am having a problem after an upgrade to ubuntu artful. If I do a host lookup for a non-existing, unqualified host name, it takes a long time to error ot. Say I have a host named spock. I can say, "host spock" and that comes back instantly. If I say, "host sopck" or some other typo, it takes like 10 seconds and I get this:
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached

On an old machine, I get this:
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms

I see that on the ubuntu/artful machines, I am running systemd-resolv (through no fault of my own). It's listening on 127.0.0.1 and caching DNS queries. So trying to read the man page for systemd-resolv, I keep coming across the term "multi label names". I never heard that term before, don't know what it means, and it appears to be ungoogleable.

Any advice on the original problem or on the meaning of that term would be appreciated.
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Todor Fassl via Ale
2018-03-07 19:38:13 UTC
Permalink
Well, I could just disable systemd-resolvd and then create a
/etc/resolv.conf in a text editor. But I'd rather not go backwards. I've
mentioned before on this list that I rue the day I decided to switch my
end users from debian stable to ubuntu. But I can't go back on that
either. I'd like to get systemd.resolvd working.

Have you ever heard of this term, "multi label name"? I am thinking it
means either an fqdn *or* an unqualified dn. So examples would be spock
and/or spock.example.com.

On 03/07/2018 12:32 PM, Lightner, Jeffrey wrote:> This posts suggests it
is systemd-resolved and gives options for using dnsmasq instead:
https://askubuntu.com/questions/898605/how-to-disable-systemd-resolved-and-resolve-dns-with-dnsmasq
Post by Lightner, Jeffrey via Ale
My RHEL7 systemd doesn't have systemd-resolved.
-----Original Message-----
Sent: Wednesday, March 07, 2018 1:28 PM
To: Todor Fassl; Atlanta Linux Enthusiasts
Subject: Re: [ale] Multi-label names
Does it run any better if you turn off systemd-resolv (systemctl stop systemd-resolv)?
What is in your /etc/resolv.conf on the two servers?
-----Original Message-----
Sent: Wednesday, March 07, 2018 1:09 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] Multi-label names
I am having a problem after an upgrade to ubuntu artful. If I do a
host lookup for a non-existing, unqualified host name, it takes a long
time to error ot. Say I have a host named spock. I can say, "host spock"
and that comes back instantly. If I say, "host sopck" or some other
Post by Lightner, Jeffrey via Ale
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms
I see that on the ubuntu/artful machines, I am running systemd-resolv
(through no fault of my own). It's listening on 127.0.0.1 and caching
DNS queries. So trying to read the man page for systemd-resolv, I keep
coming across the term "multi label names". I never heard that term
before, don't know what it means, and it appears to be ungoogleable.
Post by Lightner, Jeffrey via Ale
Any advice on the original problem or on the meaning of that term would be appreciated.
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
--
Todd
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Jim Kinney via Ale
2018-03-07 19:46:03 UTC
Permalink
What happens if you add

DNS1=8.8.8.8
DOMAIN=mydomain.net

To the network configuration? NetworkManager will that that as an entry in resolv.conf and write it there.

I thought systemd-resolvd was used only (mostly) during startup to do thing like handle remote filesystems, etc. I've never used it.
Post by Todor Fassl via Ale
Well, I could just disable systemd-resolvd and then create a
/etc/resolv.conf in a text editor. But I'd rather not go backwards. I've
mentioned before on this list that I rue the day I decided to switch my
end users from debian stable to ubuntu. But I can't go back on that
either. I'd like to get systemd.resolvd working.
Have you ever heard of this term, "multi label name"? I am thinking it
means either an fqdn *or* an unqualified dn. So examples would be spock
and/or spock.example.com.
On 03/07/2018 12:32 PM, Lightner, Jeffrey wrote:> This posts suggests it
https://askubuntu.com/questions/898605/how-to-disable-systemd-resolved-and-resolve-dns-with-dnsmasq
Post by Lightner, Jeffrey via Ale
My RHEL7 systemd doesn't have systemd-resolved.
-----Original Message-----
via Ale
Post by Lightner, Jeffrey via Ale
Sent: Wednesday, March 07, 2018 1:28 PM
To: Todor Fassl; Atlanta Linux Enthusiasts
Subject: Re: [ale] Multi-label names
Does it run any better if you turn off systemd-resolv (systemctl stop
systemd-resolv)?
Post by Lightner, Jeffrey via Ale
What is in your /etc/resolv.conf on the two servers?
-----Original Message-----
Ale
Post by Lightner, Jeffrey via Ale
Sent: Wednesday, March 07, 2018 1:09 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] Multi-label names
I am having a problem after an upgrade to ubuntu artful. If I do a
host lookup for a non-existing, unqualified host name, it takes a long
time to error ot. Say I have a host named spock. I can say, "host spock"
and that comes back instantly. If I say, "host sopck" or some other
Post by Lightner, Jeffrey via Ale
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms
I see that on the ubuntu/artful machines, I am running systemd-resolv
(through no fault of my own). It's listening on 127.0.0.1 and caching
DNS queries. So trying to read the man page for systemd-resolv, I keep
coming across the term "multi label names". I never heard that term
before, don't know what it means, and it appears to be ungoogleable.
Post by Lightner, Jeffrey via Ale
Any advice on the original problem or on the meaning of that term
would be appreciated.
Post by Lightner, Jeffrey via Ale
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
--
Todd
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
--
Sent from my Android device with K-9 Mail. All tyopes are thumb related and reflect authenticity.
Todor Fassl via Ale
2018-03-07 21:01:28 UTC
Permalink
You mean add the equivalent values to /etc/systemd/resolv.conf? Nothing.

I actually copied a working resolv.conf from another machine to
/etc/systemd/resolv.conf and restarted systemd.resolvd. The resulting
/etc/resolv.conf file (actually a symlink to
../run/systemd/resolve/stub-resolv.conf) was the same. I even deleted
the ../run/systemd/resolve/stub-resolv.conf and then restarted
systemd.resolvd to make sure it was generating a new file. No joy.

I am not totally surprised that experiment did not work though. I think
the resolv.conf is correct as far as it goes. It is the behaviour of the
thing listening at 127.0.0.53 that is in question.
Post by Jim Kinney via Ale
What happens if you add
DNS1=8.8.8.8
DOMAIN=mydomain.net
To the network configuration? NetworkManager will that that as an entry
in resolv.conf and write it there.
I thought systemd-resolvd was used only (mostly) during startup to do
thing like handle remote filesystems, etc. I've never used it.
Well, I could just disable systemd-resolvd and then create a
/etc/resolv.conf in a text editor. But I'd rather not go
backwards. I've
Post by Jim Kinney via Ale
mentioned before on this list that I rue the day I decided to switch my
end users from debian stable to ubuntu. But I can't go back on that
either. I'd like to get systemd.resolvd working.
Have you ever heard of this term, "multi label name"? I am
thinking it
Post by Jim Kinney via Ale
means either an fqdn *or* an unqualified dn. So examples would be spock
and/or spock.example.com.
On 03/07/2018 12:32 PM, Lightner, Jeffrey wrote:> This posts suggests it
https://askubuntu.com/questions/898605/how-to-disable-systemd-resolved-and-resolve-dns-with-dnsmasq
Post by Jim Kinney via Ale
My RHEL7 systemd doesn't have systemd-resolved.
-----Original Message-----
via Ale
Sent: Wednesday, March 07, 2018 1:28 PM
To: Todor Fassl; Atlanta Linux Enthusiasts
Subject: Re: [ale] Multi-label names
Does it run any better if you turn off systemd-resolv (systemctl stop
systemd-resolv)?
What is in your /etc/resolv.conf on the two servers?
-----Original Message-----
Sent: Wednesday, March 07, 2018 1:09 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] Multi-label names
I am having a problem after an upgrade to ubuntu artful. If I do a
host lookup for a non-existing, unqualified host name, it takes a long
time to error ot. Say I have a host named spock. I can say, "host spock"
and that comes back instantly. If I say, "host sopck" or some other
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms
I see that on the ubuntu/artful machines, I am running
systemd-resolv
(through no fault of my own). It's listening on 127.0.0.1 and caching
DNS queries. So trying to read the man page for systemd-resolv, I keep
coming across the term "multi label names". I never heard that term
before, don't know what it means, and it appears to be ungoogleable.
Any advice on the original problem or on the meaning of that term
would be appreciated.
------------------------------------------------------------------------
Post by Jim Kinney via Ale
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
------------------------------------------------------------------------
Post by Jim Kinney via Ale
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
--
Sent from my Android device with K-9 Mail. All tyopes are thumb related
and reflect authenticity.
--
Todd
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Jim Kinney via Ale
2018-03-07 21:40:03 UTC
Permalink
I was unclear. I have IP configuration data written in
/etc/sysconfig/network-scripts/ifcfg-<ifacename> (RHEL/CentOS/Fedora
location). That's how NetworkManager gets what it needs to run
networking (as long as it's not blocked in the ifcfg-<device> file
specifically.
The new method is to have resolve.conf "built" each time the network is
started up.
I use bind managed through Free-IPA for DNS for my domains.
Post by Todor Fassl via Ale
You mean add the equivalent values to /etc/systemd/resolv.conf? Nothing.
I actually copied a working resolv.conf from another machine to
/etc/systemd/resolv.conf and restarted systemd.resolvd. The
resulting
/etc/resolv.conf file (actually a symlink to
../run/systemd/resolve/stub-resolv.conf) was the same. I even
deleted
the ../run/systemd/resolve/stub-resolv.conf and then restarted
systemd.resolvd to make sure it was generating a new file. No joy.
I am not totally surprised that experiment did not work though. I think
the resolv.conf is correct as far as it goes. It is the behaviour of the
thing listening at 127.0.0.53 that is in question.
Post by Jim Kinney via Ale
What happens if you add
DNS1=8.8.8.8
DOMAIN=mydomain.net
To the network configuration? NetworkManager will that that as an
entry
Post by Jim Kinney via Ale
in resolv.conf and write it there.
I thought systemd-resolvd was used only (mostly) during startup to
do
Post by Jim Kinney via Ale
thing like handle remote filesystems, etc. I've never used it.
Well, I could just disable systemd-resolvd and then create a
/etc/resolv.conf in a text editor. But I'd rather not go
backwards. I've
Post by Jim Kinney via Ale
mentioned before on this list that I rue the day I decided to
switch my
Post by Jim Kinney via Ale
end users from debian stable to ubuntu. But I can't go back on
that
Post by Jim Kinney via Ale
either. I'd like to get systemd.resolvd working.
Have you ever heard of this term, "multi label name"? I am
thinking it
Post by Jim Kinney via Ale
means either an fqdn *or* an unqualified dn. So examples would
be
spock
Post by Jim Kinney via Ale
and/or spock.example.com.
On 03/07/2018 12:32 PM, Lightner, Jeffrey wrote:> This posts
suggests it
Post by Jim Kinney via Ale
is systemd-resolved and gives options for using dnsmasq
https://askubuntu.com/questions/898605/how-to-disable-systemd-resolve
d-and-resolve-dns-with-dnsmasq
Post by Jim Kinney via Ale
My RHEL7 systemd doesn't have systemd-resolved.
-----Original Message-----
Lightner,
Post by Jim Kinney via Ale
Jeffrey
via Ale
Sent: Wednesday, March 07, 2018 1:28 PM
To: Todor Fassl; Atlanta Linux Enthusiasts
Subject: Re: [ale] Multi-label names
Does it run any better if you turn off systemd-resolv
(systemctl
Post by Jim Kinney via Ale
stop
systemd-resolv)?
What is in your /etc/resolv.conf on the two servers?
-----Original Message-----
Fassl
Post by Jim Kinney via Ale
via Ale
Sent: Wednesday, March 07, 2018 1:09 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] Multi-label names
I am having a problem after an upgrade to ubuntu artful.
If I
do a
Post by Jim Kinney via Ale
host lookup for a non-existing, unqualified host name, it
takes a
long
Post by Jim Kinney via Ale
time to error ot. Say I have a host named spock. I can say,
"host
spock"
Post by Jim Kinney via Ale
and that comes back instantly. If I say, "host sopck" or some
other
Post by Jim Kinney via Ale
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms
I see that on the ubuntu/artful machines, I am running systemd-resolv
(through no fault of my own). It's listening on 127.0.0.1 and
caching
Post by Jim Kinney via Ale
DNS queries. So trying to read the man page for systemd-
resolv, I
keep
Post by Jim Kinney via Ale
coming across the term "multi label names". I never heard that
term
Post by Jim Kinney via Ale
before, don't know what it means, and it appears to be
ungoogleable.
Post by Jim Kinney via Ale
Any advice on the original problem or on the meaning of
that term
Post by Jim Kinney via Ale
would be appreciated.
-------------------------------------------------------------------
-----
Post by Jim Kinney via Ale
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
-------------------------------------------------------------------
-----
Post by Jim Kinney via Ale
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
--
Sent from my Android device with K-9 Mail. All tyopes are thumb
related
Post by Jim Kinney via Ale
and reflect authenticity.
--
James P. Kinney III

Every time you stop a school, you will have to build a jail. What you
gain at one end you lose at the other. It's like feeding a dog on his
own tail. It won't fatten the dog.
- Speech 11/23/1900 Mark Twain

http://heretothereideas.blogspot.com/
DJ-Pfulio via Ale
2018-03-08 02:36:51 UTC
Permalink
I don't have any answers.

First, Ubuntu/debian doesn't use /etc/sysconfig/ anything. That's a
RHEL-family thing, I think.

Running a non-LTS is crazy, IMHO. In 17.10, network setups changed.
They've added a new middleman - beyond resolvconf. NetPlan is the name.
Sorry, I haven't looked at it at all, since no LTS has it.
https://wiki.ubuntu.com/MigratingToNetplan might be helpful. Someone
decided that yaml is easier than the interfaces file.

I purge all network manager stuff and either have static IPs or use DHCP
reservations from the network DHCP server. Find it is easier for my
needs. I understand that network manager is better now than when it was
when I had all sorts of issues with it.

I've also found that purging avahi is helpful. It gets in the middle of
name resolution stuff - I usually see issues with samba that are solved
by NOT having avahi installed.

But I really don't know anything.
Post by Jim Kinney via Ale
I was unclear. I have IP configuration data written in
/etc/sysconfig/network-scripts/ifcfg-<ifacename> (RHEL/CentOS/Fedora
location). That's how NetworkManager gets what it needs to run
networking (as long as it's not blocked in the ifcfg-<device> file
specifically.
The new method is to have resolve.conf "built" each time the network is
started up.
I use bind managed through Free-IPA for DNS for my domains.
Post by Todor Fassl via Ale
You mean add the equivalent values to /etc/systemd/resolv.conf? Nothing.
I actually copied a working resolv.conf from another machine to
/etc/systemd/resolv.conf and restarted systemd.resolvd. The resulting
/etc/resolv.conf file (actually a symlink to
../run/systemd/resolve/stub-resolv.conf) was the same. I even deleted
the ../run/systemd/resolve/stub-resolv.conf and then restarted
systemd.resolvd to make sure it was generating a new file. No joy.
I am not totally surprised that experiment did not work though. I think
the resolv.conf is correct as far as it goes. It is the behaviour of the
thing listening at 127.0.0.53 that is in question.
Post by Jim Kinney via Ale
What happens if you add
DNS1=8.8.8.8
DOMAIN=mydomain.net
To the network configuration? NetworkManager will that that as an entry
in resolv.conf and write it there.
I thought systemd-resolvd was used only (mostly) during startup to do
thing like handle remote filesystems, etc. I've never used it.
Well, I could just disable systemd-resolvd and then create a
/etc/resolv.conf in a text editor. But I'd rather not go
backwards. I've
Post by Jim Kinney via Ale
mentioned before on this list that I rue the day I decided to
switch my
Post by Jim Kinney via Ale
end users from debian stable to ubuntu. But I can't go back on that
either. I'd like to get systemd.resolvd working.
Have you ever heard of this term, "multi label name"? I am
thinking it
Post by Jim Kinney via Ale
means either an fqdn *or* an unqualified dn. So examples would be
spock
Post by Jim Kinney via Ale
and/or spock.example.com.
On 03/07/2018 12:32 PM, Lightner, Jeffrey wrote:> This posts
suggests it
https://askubuntu.com/questions/898605/how-to-disable-systemd-resolved-and-resolve-dns-with-dnsmasq
Post by Jim Kinney via Ale
My RHEL7 systemd doesn't have systemd-resolved.
-----Original Message-----
Jeffrey
via Ale
Sent: Wednesday, March 07, 2018 1:28 PM
To: Todor Fassl; Atlanta Linux Enthusiasts
Subject: Re: [ale] Multi-label names
Does it run any better if you turn off systemd-resolv (systemctl
stop
systemd-resolv)?
What is in your /etc/resolv.conf on the two servers?
-----Original Message-----
via Ale
Sent: Wednesday, March 07, 2018 1:09 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] Multi-label names
I am having a problem after an upgrade to ubuntu artful. If I
do a
Post by Jim Kinney via Ale
host lookup for a non-existing, unqualified host name, it takes a
long
Post by Jim Kinney via Ale
time to error ot. Say I have a host named spock. I can say, "host
spock"
Post by Jim Kinney via Ale
and that comes back instantly. If I say, "host sopck" or some other
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms
I see that on the ubuntu/artful machines, I am running
systemd-resolv
(through no fault of my own). It's listening on 127.0.0.1 and caching
DNS queries. So trying to read the man page for systemd-resolv, I
keep
Post by Jim Kinney via Ale
coming across the term "multi label names". I never heard that term
before, don't know what it means, and it appears to be ungoogleable.
Any advice on the original problem or on the meaning of that term
would be appreciated.
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Jim Kinney via Ale
2018-03-08 04:11:55 UTC
Permalink
Yeah. Config differences between distros are how people stay with one distro over others.

Somewhere, ubuntu has a place to define settings for a network interface. If NetworkManager is used, it should pickup stuff like dns, default search domain(s), multiple IPs, etc.

I don't poke around with every distro anymore like I used to. Decided it was more time efficient to just get frustrated with the changes in one.

:-P
Post by DJ-Pfulio via Ale
I don't have any answers.
First, Ubuntu/debian doesn't use /etc/sysconfig/ anything. That's a
RHEL-family thing, I think.
Running a non-LTS is crazy, IMHO. In 17.10, network setups changed.
They've added a new middleman - beyond resolvconf. NetPlan is the name.
Sorry, I haven't looked at it at all, since no LTS has it.
https://wiki.ubuntu.com/MigratingToNetplan might be helpful. Someone
decided that yaml is easier than the interfaces file.
I purge all network manager stuff and either have static IPs or use DHCP
reservations from the network DHCP server. Find it is easier for my
needs. I understand that network manager is better now than when it was
when I had all sorts of issues with it.
I've also found that purging avahi is helpful. It gets in the middle of
name resolution stuff - I usually see issues with samba that are solved
by NOT having avahi installed.
But I really don't know anything.
Post by Jim Kinney via Ale
I was unclear. I have IP configuration data written in
/etc/sysconfig/network-scripts/ifcfg-<ifacename> (RHEL/CentOS/Fedora
location). That's how NetworkManager gets what it needs to run
networking (as long as it's not blocked in the ifcfg-<device> file
specifically.
The new method is to have resolve.conf "built" each time the network
is
Post by Jim Kinney via Ale
started up.
I use bind managed through Free-IPA for DNS for my domains.
Post by Todor Fassl via Ale
You mean add the equivalent values to /etc/systemd/resolv.conf?
Nothing.
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
I actually copied a working resolv.conf from another machine to
/etc/systemd/resolv.conf and restarted systemd.resolvd. The
resulting
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
/etc/resolv.conf file (actually a symlink to
../run/systemd/resolve/stub-resolv.conf) was the same. I even
deleted
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
the ../run/systemd/resolve/stub-resolv.conf and then restarted
systemd.resolvd to make sure it was generating a new file. No joy.
I am not totally surprised that experiment did not work though. I
think
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
the resolv.conf is correct as far as it goes. It is the behaviour of
the
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
thing listening at 127.0.0.53 that is in question.
Post by Jim Kinney via Ale
What happens if you add
DNS1=8.8.8.8
DOMAIN=mydomain.net
To the network configuration? NetworkManager will that that as an
entry
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
Post by Jim Kinney via Ale
in resolv.conf and write it there.
I thought systemd-resolvd was used only (mostly) during startup
to do
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
Post by Jim Kinney via Ale
thing like handle remote filesystems, etc. I've never used it.
Well, I could just disable systemd-resolvd and then create a
/etc/resolv.conf in a text editor. But I'd rather not go
backwards. I've
Post by Jim Kinney via Ale
mentioned before on this list that I rue the day I decided to
switch my
Post by Jim Kinney via Ale
end users from debian stable to ubuntu. But I can't go back
on that
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
Post by Jim Kinney via Ale
either. I'd like to get systemd.resolvd working.
Have you ever heard of this term, "multi label name"? I am
thinking it
Post by Jim Kinney via Ale
means either an fqdn *or* an unqualified dn. So examples
would be
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
spock
Post by Jim Kinney via Ale
and/or spock.example.com.
On 03/07/2018 12:32 PM, Lightner, Jeffrey wrote:> This posts
suggests it
Post by Jim Kinney via Ale
is systemd-resolved and gives options for using dnsmasq
https://askubuntu.com/questions/898605/how-to-disable-systemd-resolved-and-resolve-dns-with-dnsmasq
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
Post by Jim Kinney via Ale
My RHEL7 systemd doesn't have systemd-resolved.
-----Original Message-----
Lightner,
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
Post by Jim Kinney via Ale
Jeffrey
via Ale
Sent: Wednesday, March 07, 2018 1:28 PM
To: Todor Fassl; Atlanta Linux Enthusiasts
Subject: Re: [ale] Multi-label names
Does it run any better if you turn off systemd-resolv
(systemctl
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
Post by Jim Kinney via Ale
stop
systemd-resolv)?
What is in your /etc/resolv.conf on the two servers?
-----Original Message-----
Fassl
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
Post by Jim Kinney via Ale
via Ale
Sent: Wednesday, March 07, 2018 1:09 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] Multi-label names
I am having a problem after an upgrade to ubuntu artful.
If I
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
do a
Post by Jim Kinney via Ale
host lookup for a non-existing, unqualified host name, it
takes a
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
long
Post by Jim Kinney via Ale
time to error ot. Say I have a host named spock. I can say,
"host
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
spock"
Post by Jim Kinney via Ale
and that comes back instantly. If I say, "host sopck" or some
other
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
Post by Jim Kinney via Ale
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms
I see that on the ubuntu/artful machines, I am running
systemd-resolv
(through no fault of my own). It's listening on 127.0.0.1 and
caching
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
Post by Jim Kinney via Ale
DNS queries. So trying to read the man page for
systemd-resolv, I
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
keep
Post by Jim Kinney via Ale
coming across the term "multi label names". I never heard
that term
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
Post by Jim Kinney via Ale
before, don't know what it means, and it appears to be
ungoogleable.
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
Post by Jim Kinney via Ale
Any advice on the original problem or on the meaning of
that term
Post by Jim Kinney via Ale
Post by Todor Fassl via Ale
Post by Jim Kinney via Ale
would be appreciated.
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
--
Sent from my Android device with K-9 Mail. All tyopes are thumb related and reflect authenticity.
Todor Fassl via Ale
2018-03-08 14:13:01 UTC
Permalink
But there's only one /etc/resolv.conf file per host. I believe you are
allowed to configure DNS info per interface because it mirrors or
simulates getting DNS info via DHCP. For years you had to manually
create the /etc/resolv.conf file. Then tools like resolvconf came along
and wrote it for you based on the info from DHCP. Since the host was
getting DNS info from DHCP per interface, that info had to be
configurable per interface. I don't know what would happen if you had 2
nics in a machine and configured different DNS info for both. It would
be like having 2 nics, each getting their IP address via DHCP and
getting different DNS configuration too. I don't know how resolvconf
would handle that (speculation below).

But that's not my problem. What has happened is that systemd has created
it's own caching name server, systemd-resolvd, that creates an
interface, 127.0.0.53, for DNS queries and writes an /etc/resolv.conf
pointing there. That caching name server is misbehaving and I can't
figure out how to configure it. I can't even understand the man page.

I can disable systemd-resolvd and manually create my own
/etc/resolv.conf to bypass it. That, of course, still works fine just as
it has since Linus Torvalds wore nickers. But I'd rather not do that.
I'd rather fix systemd-resolvd.

Note 1: I would think Red Hat is going to move to systemd-resolvd
eventually. I'll admit ubuntu if f'ed up. ifupdown, netplan,
network-manager -- plus stuff in systemd. It's a huge mess.

Note 2: It never occured to me before that there was an inherent
conflict in having only one /etc/resolv.conf file per host. What if you
have one nic for example.com and a second for example.net? If you say,
"host spock", does that default to spock.example.com or
spock.example.net? Probably both. And whether it would look for
spock.example.com or spock.example.net first would depend on the order
in which the interfaces were configured. So your /etc/resolv.conf might
look like this:

nameserver 192.168.0.1
search example.com
search example.net

If DHCP also sent different name servers, they would probably both be
listed in there as well. But you can't have different DNS info per
interface because programs like firefox and thunderbird don't talk to an
interface. They talk to the network. Firefox isn't going to want to
decide which interface to talk to when you type in a URL. The list of
name servers and search domains has to be system-wide.
Post by Jim Kinney via Ale
Yeah. Config differences between distros are how people stay with one distro over others.
Somewhere, ubuntu has a place to define settings for a network
interface. If NetworkManager is used, it should pickup stuff like dns,
default search domain(s), multiple IPs, etc.
I don't poke around with every distro anymore like I used to. Decided it
was more time efficient to just get frustrated with the changes in one.
:-P
I don't have any answers.
First, Ubuntu/debian doesn't use /etc/sysconfig/ anything. That's a
RHEL-family thing, I think.
Running a non-LTS is crazy, IMHO. In 17.10, network setups changed.
They've added a new middleman - beyond resolvconf. NetPlan is the name.
Sorry, I haven't looked at it at all, since no LTS has it.
https://wiki.ubuntu.com/MigratingToNetplan might be helpful. Someone
decided that yaml is easier than the interfaces file.
I purge all network manager stuff and either have static IPs or use DHCP
reservations from the network DHCP server. Find it is easier for my
needs. I understand that network manager is better now than when it was
when I had all sorts of issues with it.
I've also found that purging avahi is helpful. It gets in the middle of
name resolution stuff - I usually see issues with samba that are solved
by NOT having avahi installed.
But I really don't know anything.
I was unclear. I have IP configuration data written in
/etc/sysconfig/network-scripts/ifcfg-<ifacename> (RHEL/CentOS/Fedora
location). That's how NetworkManager gets what it needs to run
networking (as long as it's not blocked in the ifcfg-<device> file
specifically.
The new method is to have resolve.conf "built" each time the network is
started up.
I use bind managed through Free-IPA for DNS for my domains.
You mean add the equivalent values to
/etc/systemd/resolv.conf? Nothing.
I actually copied a working resolv.conf from another machine to
/etc/systemd/resolv.conf and restarted systemd.resolvd. The
resulting
/etc/resolv.conf file (actually a symlink to
../run/systemd/resolve/stub-resolv.conf) was the same. I
even deleted
the ../run/systemd/resolve/stub-resolv.conf and then restarted
systemd.resolvd to make sure it was generating a new file. No joy.
I am not totally surprised that experiment did not work
though. I think
the resolv.conf is correct as far as it goes. It is the
behaviour of the
thing listening at 127.0.0.53 that is in question.
What happens if you add
DNS1=8.8.8.8
DOMAIN=mydomain.net
To the network configuration? NetworkManager will that
that as an entry
in resolv.conf and write it there.
I thought systemd-resolvd was used only (mostly) during
startup to do
thing like handle remote filesystems, etc. I've never
used it.
On March 7, 2018 2:38:13 PM EST, Todor Fassl via Ale
Well, I could just disable systemd-resolvd and then create a
/etc/resolv.conf in a text editor. But I'd rather not go
backwards. I've
mentioned before on this list that I rue the day I
decided to
switch my
end users from debian stable to ubuntu. But I can't go
back on that
either. I'd like to get systemd.resolvd working.
Have you ever heard of this term, "multi label name"? I am
thinking it
means either an fqdn *or* an unqualified dn. So examples
would be
spock
and/or spock.example.com.
On 03/07/2018 12:32 PM, Lightner, Jeffrey wrote:> This
posts
suggests it
is systemd-resolved and gives options for using dnsmasq
https://askubuntu.com/questions/898605/how-to-disable-systemd-resolved-and-resolve-dns-with-dnsmasq
My RHEL7 systemd doesn't have systemd-resolved.
-----Original Message-----
Lightner,
Jeffrey
via Ale
Sent: Wednesday, March 07, 2018 1:28 PM
To: Todor Fassl; Atlanta Linux Enthusiasts
Subject: Re: [ale] Multi-label names
Does it run any better if you turn off systemd-resolv
(systemctl
stop
systemd-resolv)?
What is in your /etc/resolv.conf on the two servers?
-----Original Message-----
Todor Fassl
via Ale
Sent: Wednesday, March 07, 2018 1:09 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] Multi-label names
I am having a problem after an upgrade to ubuntu artful.
If I
do a
host lookup for a non-existing, unqualified host name,
it takes a
long
time to error ot. Say I have a host named spock. I can
say, "host
spock"
and that comes back instantly. If I say, "host sopck" or
some other
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms
I see that on the ubuntu/artful machines, I am running
systemd-resolv
(through no fault of my own). It's listening on
127.0.0.1 and caching
DNS queries. So trying to read the man page for
systemd-resolv, I
keep
coming across the term "multi label names". I never
heard that term
before, don't know what it means, and it appears to be
ungoogleable.
Any advice on the original problem or on the meaning of
that term
would be appreciated.
------------------------------------------------------------------------
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
--
Sent from my Android device with K-9 Mail. All tyopes are thumb related
and reflect authenticity.
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
--
Todd
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Todor Fassl via Ale
2018-03-08 14:38:43 UTC
Permalink
I'll admit I rue the day I switched us to ubuntu sts. But it's not my
fault we're running ubuntu sts -- it's Ian's (as in the ian part of
debian). My end users are researchers and they need more recent packages
even if it does make me pull my hair out at times. They'd try to
compile something and send me an email saying they couldn't possibly
finish their research as long as we were running libbogus1.13-2. If they
couldn't have libbogus1.13.5 from ubuntu sts or debian testing, they
were absolutely dead in the water. I was constantly upgrading packages
and libraries one by one. They pushed hard for ubuntu sts. I'd have gone
to debian testing except the IT manager balked at that word. If Ian had
called it debian "proposed" instead of "testing", I wouldn't be in this fix.
Post by DJ-Pfulio via Ale
I don't have any answers.
First, Ubuntu/debian doesn't use /etc/sysconfig/ anything. That's a
RHEL-family thing, I think.
Running a non-LTS is crazy, IMHO. In 17.10, network setups changed.
They've added a new middleman - beyond resolvconf. NetPlan is the name.
Sorry, I haven't looked at it at all, since no LTS has it.
https://wiki.ubuntu.com/MigratingToNetplan might be helpful. Someone
decided that yaml is easier than the interfaces file.
I purge all network manager stuff and either have static IPs or use DHCP
reservations from the network DHCP server. Find it is easier for my
needs. I understand that network manager is better now than when it was
when I had all sorts of issues with it.
I've also found that purging avahi is helpful. It gets in the middle of
name resolution stuff - I usually see issues with samba that are solved
by NOT having avahi installed.
But I really don't know anything.
Post by Jim Kinney via Ale
I was unclear. I have IP configuration data written in
/etc/sysconfig/network-scripts/ifcfg-<ifacename> (RHEL/CentOS/Fedora
location). That's how NetworkManager gets what it needs to run
networking (as long as it's not blocked in the ifcfg-<device> file
specifically.
The new method is to have resolve.conf "built" each time the network is
started up.
I use bind managed through Free-IPA for DNS for my domains.
Post by Todor Fassl via Ale
You mean add the equivalent values to /etc/systemd/resolv.conf? Nothing.
I actually copied a working resolv.conf from another machine to
/etc/systemd/resolv.conf and restarted systemd.resolvd. The resulting
/etc/resolv.conf file (actually a symlink to
../run/systemd/resolve/stub-resolv.conf) was the same. I even deleted
the ../run/systemd/resolve/stub-resolv.conf and then restarted
systemd.resolvd to make sure it was generating a new file. No joy.
I am not totally surprised that experiment did not work though. I think
the resolv.conf is correct as far as it goes. It is the behaviour of the
thing listening at 127.0.0.53 that is in question.
Post by Jim Kinney via Ale
What happens if you add
DNS1=8.8.8.8
DOMAIN=mydomain.net
To the network configuration? NetworkManager will that that as an entry
in resolv.conf and write it there.
I thought systemd-resolvd was used only (mostly) during startup to do
thing like handle remote filesystems, etc. I've never used it.
Well, I could just disable systemd-resolvd and then create a
/etc/resolv.conf in a text editor. But I'd rather not go
backwards. I've
Post by Jim Kinney via Ale
mentioned before on this list that I rue the day I decided to
switch my
Post by Jim Kinney via Ale
end users from debian stable to ubuntu. But I can't go back on that
either. I'd like to get systemd.resolvd working.
Have you ever heard of this term, "multi label name"? I am
thinking it
Post by Jim Kinney via Ale
means either an fqdn *or* an unqualified dn. So examples would be
spock
Post by Jim Kinney via Ale
and/or spock.example.com.
On 03/07/2018 12:32 PM, Lightner, Jeffrey wrote:> This posts
suggests it
https://askubuntu.com/questions/898605/how-to-disable-systemd-resolved-and-resolve-dns-with-dnsmasq
Post by Jim Kinney via Ale
My RHEL7 systemd doesn't have systemd-resolved.
-----Original Message-----
Jeffrey
via Ale
Sent: Wednesday, March 07, 2018 1:28 PM
To: Todor Fassl; Atlanta Linux Enthusiasts
Subject: Re: [ale] Multi-label names
Does it run any better if you turn off systemd-resolv (systemctl
stop
systemd-resolv)?
What is in your /etc/resolv.conf on the two servers?
-----Original Message-----
via Ale
Sent: Wednesday, March 07, 2018 1:09 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] Multi-label names
I am having a problem after an upgrade to ubuntu artful. If I
do a
Post by Jim Kinney via Ale
host lookup for a non-existing, unqualified host name, it takes a
long
Post by Jim Kinney via Ale
time to error ot. Say I have a host named spock. I can say, "host
spock"
Post by Jim Kinney via Ale
and that comes back instantly. If I say, "host sopck" or some other
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms
I see that on the ubuntu/artful machines, I am running
systemd-resolv
(through no fault of my own). It's listening on 127.0.0.1 and caching
DNS queries. So trying to read the man page for systemd-resolv, I
keep
Post by Jim Kinney via Ale
coming across the term "multi label names". I never heard that term
before, don't know what it means, and it appears to be ungoogleable.
Any advice on the original problem or on the meaning of that term
would be appreciated.
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
--
Todd
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Todor Fassl via Ale
2018-03-08 19:08:36 UTC
Permalink
Solved (sort of). To refresh, the problem was that the cashing name
server n systemd, systemd-resolved, which listens on 127.0.0.53:53, was
taking 10 seconds to time out if asked to lookup an invalid host name. I
did not manage to fix systemd-resolved. Instead I manually installed a
hand-written version of /etc/resolv.conf and restarted systemd-resolved.
According to the systemd-resolved man page, if /etc/resolv.conf is a
file, and not a symlink to /run/systemd/resolve/stub-resolv.conf, then
systemd-resolved uses that file instead of creating the symlink. So
systemd-resolved is still listening on 127.0.0.53#53. If any systemd
program depends on that daemon, it should still work.

_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Todor Fassl via Ale
2018-03-07 19:15:27 UTC
Permalink
Old resolv.conf:
--- begin ---
# 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
nameserver 192.168.0.1
search example.com
--- end ---

New resolv.conf:
--- begin ---
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# 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.53
search example.com
--- end ---

Stopping systemd.resolvd makes host lookups fail entirely as you would
expect from the above resolve.conf. If nothing is listening on 127.0.53,
host lookups are going to fail. The problem is clearly with the switch
from resolvconf (xenial) to systemd.resolvd (artful). However, like I
said, I cannot make sense of the man page except for one thing. It says
you can put stuff in /etc/systemd/resolv.conf that you'd put in any
other resolv.conf. But there is nothing in there now, just comments.
Clearly, systemd.resolvd is getting the name server and search domain
from DHCP as it should. But it's behaviour is slightly different than
resolvconf. I don't have any zesty machines around to see when the
problem began but I think it started with artful.

I suppose you're going to ask for the results of that command in the new
resolv.conf.

$ systemd-resolve --status
Global
DNS Servers: 192.168.0.1
DNS Domain: example.com
DNSSEC NTA: 10.in-addr.arpa
16.172.in-addr.arpa
168.192.in-addr.arpa
17.172.in-addr.arpa
18.172.in-addr.arpa
19.172.in-addr.arpa
20.172.in-addr.arpa
21.172.in-addr.arpa
22.172.in-addr.arpa
23.172.in-addr.arpa
24.172.in-addr.arpa
25.172.in-addr.arpa
26.172.in-addr.arpa
27.172.in-addr.arpa
28.172.in-addr.arpa
29.172.in-addr.arpa
30.172.in-addr.arpa
31.172.in-addr.arpa
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test

Link 2 (eno1)
Current Scopes: LLMNR/IPv4 LLMNR/IPv6
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no


On 03/07/2018 12:28 PM, Lightner, Jeffrey wrote:> Does it run any better
if you turn off systemd-resolv (systemctl stop systemd-resolv)?
Post by Lightner, Jeffrey via Ale
What is in your /etc/resolv.conf on the two servers?
-----Original Message-----
Sent: Wednesday, March 07, 2018 1:09 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] Multi-label names
I am having a problem after an upgrade to ubuntu artful. If I do a
host lookup for a non-existing, unqualified host name, it takes a long
time to error ot. Say I have a host named spock. I can say, "host spock"
and that comes back instantly. If I say, "host sopck" or some other
Post by Lightner, Jeffrey via Ale
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms
I see that on the ubuntu/artful machines, I am running systemd-resolv
(through no fault of my own). It's listening on 127.0.0.1 and caching
DNS queries. So trying to read the man page for systemd-resolv, I keep
coming across the term "multi label names". I never heard that term
before, don't know what it means, and it appears to be ungoogleable.
Post by Lightner, Jeffrey via Ale
Any advice on the original problem or on the meaning of that term would be appreciated.
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
--
Todd
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
lnxgnome via Ale
2018-03-07 19:52:54 UTC
Permalink
Regarding the term "multi-label"...

Multi-label names are routed to all local interfaces that have a DNS
server configured, plus the globally configured DNS server if there is
one. Address lookups from the link-local address range are never routed
to DNS. 
(https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html)

single-label host names (host names containing no dots)
(https://www.freedesktop.org/software/systemd/man/systemd.network.html)

It would stand to reason that a "multi-label" name has dots.


If the IP info is Static (not DHCP), do you have a "DNS=" line in
systemd's resolved.conf ? 
(https://www.freedesktop.org/software/systemd/man/resolved.conf.html)

-LnxGnome
Post by Todor Fassl via Ale
I am having a problem after an upgrade to ubuntu artful. If I do a
host lookup for a non-existing, unqualified host name, it takes a long
time to error ot. Say I have a host named spock. I can say, "host
spock" and that comes back instantly. If I say, "host sopck" or some
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms
I see that on the ubuntu/artful machines, I am running systemd-resolv
(through no fault of my own). It's listening on 127.0.0.1 and caching
DNS queries. So trying to read the man page for systemd-resolv, I keep
coming across the term "multi label names". I never heard that term
before, don't know what it means, and it appears to be ungoogleable.
Any advice on the original problem or on the meaning of that term
would be appreciated.
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Todor Fassl via Ale
2018-03-07 20:55:47 UTC
Permalink
It's getting dns info via dhcp. And that appears to be working. It knows
the search domain.

I used a packet sniffer to determine that on an old machine, it talks to
the dns server for the fqdn and then again for the unqualified domain
name. For example, if I type "host psock" instead of "host spock", on an
old machine I can see it send a packet to the name server for
"psock.example.com". Then it sends a packet asking for "psock". But on a
newer, broken machine, it only asks the dns server for the fqdn. It
does not appear to know to ask the dns server for the unqualified domain
name.

PS: Thanks for the explanation of multi-level name. I *think* I get it.
Post by lnxgnome via Ale
Regarding the term "multi-label"...
Multi-label names are routed to all local interfaces that have a DNS
server configured, plus the globally configured DNS server if there is
one. Address lookups from the link-local address range are never routed
to DNS.
(https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html)
single-label host names (host names containing no dots)
(https://www.freedesktop.org/software/systemd/man/systemd.network.html)
It would stand to reason that a "multi-label" name has dots.
If the IP info is Static (not DHCP), do you have a "DNS=" line in
systemd's resolved.conf ?
(https://www.freedesktop.org/software/systemd/man/resolved.conf.html)
-LnxGnome
Post by Todor Fassl via Ale
I am having a problem after an upgrade to ubuntu artful. If I do a
host lookup for a non-existing, unqualified host name, it takes a long
time to error ot. Say I have a host named spock. I can say, "host
spock" and that comes back instantly. If I say, "host sopck" or some
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
;; connection timed out; no servers could be reached
$ host -v sopck
Trying "sopck.example.com
Trying "sopck"
Host sopck not found: 3(NXDOMAIN)
Received 98 bytes from 192.168.0.1#53 in 0 ms
I see that on the ubuntu/artful machines, I am running systemd-resolv
(through no fault of my own). It's listening on 127.0.0.1 and caching
DNS queries. So trying to read the man page for systemd-resolv, I keep
coming across the term "multi label names". I never heard that term
before, don't know what it means, and it appears to be ungoogleable.
Any advice on the original problem or on the meaning of that term
would be appreciated.
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
--
Todd
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Scott Plante via Ale
2018-03-19 16:14:09 UTC
Permalink
Do you/others set static IPs on boxes these days, other than the DHCP server and/or firewall itself? I was taught to make pretty much everything DHCP, and just set a static reservation in the DHCP server for the boxes where you don't want the addresses to change. That way, you have one place to manage all the addresses.
--
Scott Plante
404-873-0058 x104


----- Original Message -----

From: "DJ-Pfulio via Ale" <***@ale.org>
To: ***@ale.org
Sent: Wednesday, March 7, 2018 9:36:51 PM
Subject: Re: [ale] Multi-label names

I don't have any answers.

First, Ubuntu/debian doesn't use /etc/sysconfig/ anything. That's a
RHEL-family thing, I think.

Running a non-LTS is crazy, IMHO. In 17.10, network setups changed.
They've added a new middleman - beyond resolvconf. NetPlan is the name.
Sorry, I haven't looked at it at all, since no LTS has it.
https://wiki.ubuntu.com/MigratingToNetplan might be helpful. Someone
decided that yaml is easier than the interfaces file.

I purge all network manager stuff and either have static IPs or use DHCP
reservations from the network DHCP server. Find it is easier for my
needs. I understand that network manager is better now than when it was
when I had all sorts of issues with it.

I've also found that purging avahi is helpful. It gets in the middle of
name resolution stuff - I usually see issues with samba that are solved
by NOT having avahi installed.

But I really don't know anything.
leam hall via Ale
2018-03-19 16:17:55 UTC
Permalink
Only use static IPs, except for phones and such.
Post by Scott Plante via Ale
Do you/others set static IPs on boxes these days, other than the DHCP server
and/or firewall itself? I was taught to make pretty much everything DHCP,
and just set a static reservation in the DHCP server for the boxes where you
don't want the addresses to change. That way, you have one place to manage
all the addresses.
--
Scott Plante
404-873-0058 x104
________________________________
Sent: Wednesday, March 7, 2018 9:36:51 PM
Subject: Re: [ale] Multi-label names
I don't have any answers.
First, Ubuntu/debian doesn't use /etc/sysconfig/ anything. That's a
RHEL-family thing, I think.
Running a non-LTS is crazy, IMHO. In 17.10, network setups changed.
They've added a new middleman - beyond resolvconf. NetPlan is the name.
Sorry, I haven't looked at it at all, since no LTS has it.
https://wiki.ubuntu.com/MigratingToNetplan might be helpful. Someone
decided that yaml is easier than the interfaces file.
I purge all network manager stuff and either have static IPs or use DHCP
reservations from the network DHCP server. Find it is easier for my
needs. I understand that network manager is better now than when it was
when I had all sorts of issues with it.
I've also found that purging avahi is helpful. It gets in the middle of
name resolution stuff - I usually see issues with samba that are solved
by NOT having avahi installed.
But I really don't know anything.
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
DJ-Pfulio via Ale
2018-03-19 18:18:46 UTC
Permalink
Post by Scott Plante via Ale
Do you/others set static IPs on boxes these days, other than the DHCP
server and/or firewall itself? I was taught to make pretty much
everything DHCP, and just set a static reservation in the DHCP server
for the boxes where you don't want the addresses to change. That way,
you have one place to manage all the addresses.
I've had some self-inflicted DNS and DHCP issues over the years. Fewer
these days, but they still happen once every few years. DHCP across
different subnets didn't always work well.

Static IPs are setup on-the-system for any non-portable systems.
Physical and virtual.

For portable devices (smartphones, tablets, laptops), I use DHCP
reservations - effectively static IPs, except when DHCP doesn't work.
Then they end up in the relatively tiny DHCP area on the network. It is
a pain when that happens. Sometimes takes me a day or so to realize it.

For IoT devices like Roku, Kodi, SIP phones, HDHR tuners, etc ... I use
DHCP reservations. Best to know where everything should be than have to
guess where it might be.

I've also been burned by avahi more than a few times. Just last week, a
fresh install that happened to include avahi which broke name resolution.

_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo

Scott Plante via Ale
2018-03-19 16:24:09 UTC
Permalink
Why did you decide to do it that way--like, what does that buy you? And where do you keep track of them--manual entries in the DNS server? In my case (pfSense) the DNS & DHCP are integrated so an entry in DHCP auto-updates DNS.

Scott


----- Original Message -----

From: "leam hall via Ale" <***@ale.org>
To: "Atlanta Linux Enthusiasts" <***@ale.org>
Sent: Monday, March 19, 2018 12:17:55 PM
Subject: Re: [ale] Multi-label names

Only use static IPs, except for phones and such.
Post by Scott Plante via Ale
Do you/others set static IPs on boxes these days, other than the DHCP server
and/or firewall itself? I was taught to make pretty much everything DHCP,
and just set a static reservation in the DHCP server for the boxes where you
don't want the addresses to change. That way, you have one place to manage
all the addresses.
--
Scott Plante
404-873-0058 x104
________________________________
Sent: Wednesday, March 7, 2018 9:36:51 PM
Subject: Re: [ale] Multi-label names
I don't have any answers.
First, Ubuntu/debian doesn't use /etc/sysconfig/ anything. That's a
RHEL-family thing, I think.
Running a non-LTS is crazy, IMHO. In 17.10, network setups changed.
They've added a new middleman - beyond resolvconf. NetPlan is the name.
Sorry, I haven't looked at it at all, since no LTS has it.
https://wiki.ubuntu.com/MigratingToNetplan might be helpful. Someone
decided that yaml is easier than the interfaces file.
I purge all network manager stuff and either have static IPs or use DHCP
reservations from the network DHCP server. Find it is easier for my
needs. I understand that network manager is better now than when it was
when I had all sorts of issues with it.
I've also found that purging avahi is helpful. It gets in the middle of
name resolution stuff - I usually see issues with samba that are solved
by NOT having avahi installed.
But I really don't know anything.
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
James Taylor via Ale
2018-03-19 16:38:02 UTC
Permalink
I do static for servers and desktops in my office, which has a small number of desktops.
For customers, I use static for servers and printers, though I do have assigned dhcp for printers in some cases.

Information is stored in DNS tables, and included in system docs.

I don't know that it's any easier to keep track of mac addresses. And I reuse server names fairly often because of testing and migration upgrades, so mac addressed dhcp assignments would be a real pain to manage.

If you use pure dhcp with dynamic dns, I supposed it would require a bit less oversight, but it would screw with my proxy setups.
I once worked with a client that managed their Windows AD network this way, but it isn't anything I think I would be comfortable with.
-jt


James Taylor
678-697-9420
Why did you decide to do it that way--like, what does that buy you? And where do you keep track of them--manual entries in the DNS server? In my case (pfSense) the DNS & DHCP are integrated so an entry in DHCP auto-updates DNS.

Scott


----- Original Message -----

From: "leam hall via Ale" <***@ale.org>
To: "Atlanta Linux Enthusiasts" <***@ale.org>
Sent: Monday, March 19, 2018 12:17:55 PM
Subject: Re: [ale] Multi-label names

Only use static IPs, except for phones and such.
Post by Scott Plante via Ale
Do you/others set static IPs on boxes these days, other than the DHCP server
and/or firewall itself? I was taught to make pretty much everything DHCP,
and just set a static reservation in the DHCP server for the boxes where you
don't want the addresses to change. That way, you have one place to manage
all the addresses.
--
Scott Plante
404-873-0058 x104
________________________________
Sent: Wednesday, March 7, 2018 9:36:51 PM
Subject: Re: [ale] Multi-label names
I don't have any answers.
First, Ubuntu/debian doesn't use /etc/sysconfig/ anything. That's a
RHEL-family thing, I think.
Running a non-LTS is crazy, IMHO. In 17.10, network setups changed.
They've added a new middleman - beyond resolvconf. NetPlan is the name.
Sorry, I haven't looked at it at all, since no LTS has it.
https://wiki.ubuntu.com/MigratingToNetplan might be helpful. Someone
decided that yaml is easier than the interfaces file.
I purge all network manager stuff and either have static IPs or use DHCP
reservations from the network DHCP server. Find it is easier for my
needs. I understand that network manager is better now than when it was
when I had all sorts of issues with it.
I've also found that purging avahi is helpful. It gets in the middle of
name resolution stuff - I usually see issues with samba that are solved
by NOT having avahi installed.
But I really don't know anything.
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo


_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
leam hall via Ale
2018-03-19 16:38:39 UTC
Permalink
I have ~half a dozen linux workstations, the house DHCP is off the
ASUS router. Forgot that my wife's Mac also uses DHCP as I haven't
spent the time to learn Mac networking. Everything is kept in the
kickstart files and /etc/hosts, I don't have a real need yet to run an
internal DNS.

That may change if I start to do more CentOS7 or something else. At
the moment the labor overhead isn't really worth the effort.

Leam
Post by Scott Plante via Ale
Why did you decide to do it that way--like, what does that buy you? And
where do you keep track of them--manual entries in the DNS server? In my
case (pfSense) the DNS & DHCP are integrated so an entry in DHCP
auto-updates DNS.
Scott
________________________________
Sent: Monday, March 19, 2018 12:17:55 PM
Subject: Re: [ale] Multi-label names
Only use static IPs, except for phones and such.
Post by Scott Plante via Ale
Do you/others set static IPs on boxes these days, other than the DHCP server
and/or firewall itself? I was taught to make pretty much everything DHCP,
and just set a static reservation in the DHCP server for the boxes where you
don't want the addresses to change. That way, you have one place to manage
all the addresses.
--
Scott Plante
404-873-0058 x104
________________________________
Sent: Wednesday, March 7, 2018 9:36:51 PM
Subject: Re: [ale] Multi-label names
I don't have any answers.
First, Ubuntu/debian doesn't use /etc/sysconfig/ anything. That's a
RHEL-family thing, I think.
Running a non-LTS is crazy, IMHO. In 17.10, network setups changed.
They've added a new middleman - beyond resolvconf. NetPlan is the name.
Sorry, I haven't looked at it at all, since no LTS has it.
https://wiki.ubuntu.com/MigratingToNetplan might be helpful. Someone
decided that yaml is easier than the interfaces file.
I purge all network manager stuff and either have static IPs or use DHCP
reservations from the network DHCP server. Find it is easier for my
needs. I understand that network manager is better now than when it was
when I had all sorts of issues with it.
I've also found that purging avahi is helpful. It gets in the middle of
name resolution stuff - I usually see issues with samba that are solved
by NOT having avahi installed.
But I really don't know anything.
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
***@ale.org
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Continue reading on narkive:
Loading...