You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
support additional unicast DNS scopes, on top of the primary and the per-link ones #5573
Before using systemd-resloved I used dnsmasq with split dns and a "route" strongswan ipsec rule
This way I have some kind of what Microsoft calls DirectAccess.
strongswan usually does not provide a vpn interface since ipsec only adds policies how to transport packets (I use ipv6 so there is not even added a seperate vpn ip address, just like DirectAccess does).
Now to the problem: As far as i saw it is only possibe to add dns search domains and dns servers to interfaces, but I did not find a way to set a "global" dns server for a specific domain.
Is there something I oversaw?
Reacted by Karl Q., Thayne McCombs, Igor Velkov, Sam Morris, Jakub Matraszek, Kai, Jens Oechsler, Leho Kraav, Alexandre ZANNI, Valentin Hăloiu and 3 more
I am not sure I grok what you are asking for. What precisely do you want resolved to do? Please write this down without references to microsoft, strongswan or anything like that as I have no idea what they precisely do.
in short:
I need a way to statically set a domain server for a specific domain
with dnsmasq I do it with ex:
server=/intranet/10.17.1.1
this would query *.intranet using the nameserver 10.71.1.1
Reacted by Adam Bennett, ceonizm, Antoine, Itay Perl, Tristan Morgan and Alexandre ZANNI
I have a similar use case (IPSEC VPN that doesn't create a separate interface), but I want to add a new DNS server (for any domain). I have been trying to do this via the DBUS interface to systemd-resolved, but it won't let me when the link is managed by systemd-networkd.
Essentially, what I need is an interface to add and remove extra DNS servers at runtime, even when the link is managed by systemd-networkd.
Should I open a separate issue for this, or does it fall under this one?
Hello,
Any update on this ?
I'd be interested as well, I need to tell resolved to use a specific DNS server for a particular domain (*.example.com), but unless I missed something this is not possible yet.
Guys, I know that SystemD has a lot of work to be done, I really appreciate it, but please try and make resolved behaviour has default has it possibly can be then work from there, in comparison do DnsMasq
Right know things could be solved by making some kind of behaviour bypass to resolve by order of dns entries, something that might be suggested in this issue that got a bit out of hand. #5755
My point is, it is limiting developers and admins functionality over their machines ability to resolve local developments and dns server plus VPN's, right know we cant make things work has we need them to on resolved.
This issue could be solved by or by mimicking DnsMasq server=/intranet/10.17.1.1
or
ResolveBehaviour = topdown, best, default, or something...
Already did try the resolved.conf.d/example.conf solution but if it fails to resolve I have to restart the resolved service, so it's inconvenient and a nuisance and it should at least be locked to search for these domains on described dns servers or at least have that option
[Resolve]
DNS=172.17.0.1
Domains= ~example
Thanks in advance, and please just give us an extra option to be able to use resolved has we need it to.
I think #11050 will help with this, but it won't be the complete solution. You'll still need a dummy interface that you can set your DNS server and routing domain on.
changed the title [-]split dns without dedicated vpn adapter[/-][+]support additional unicast DNS scopes, on top of the primary and the per-link ones[/+]on Nov 18, 2020
I think #11050 will help with this, but it won't be the complete solution. You'll still need a dummy interface that you can set your DNS server and routing domain on.
It looks like using a dummy interface no longer works, probably due to d301c52.
If I run:
$ sudo nmcli connection add con-name dns-test type dummy ifname dummy-dns ipv4.method manual ipv4.addresses 127.0.0.88/32 ipv6.method disable ipv4.dns-search ~example.com ipv4.dns 8.8.8.8
$ resolvectl status dummy-dns at 01:36:01
Link 3 (dummy-dns)
Current Scopes: DNS
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 8.8.8.8
DNS Servers: 8.8.8.8
DNS Domain: ~example.com
then try to resovle example.com, either with dig example.com or resolvectl query example.com then I get an error that no name server can be reached.
I understand that for you a static configuration would be preferrable, but what I do as a workaround (not for opennic, but the following is an example that may work for you) running a script/service that does something like this:
#!/bin/sh
ip l a dns-opennic type dummy
ip l s dns-opennic up
ip -6 a a fe80::53/64 dev dns-opennic
resolvectl dns dns-opennic 51.158.108.203 51.77.149.139 2001:41d0:404:200::976
resolvectl domain dns-opennic ~bbs ~chan ~cyb ~dyn ~epic ~geek ~gopher ~indy ~libre ~neo ~null ~o ~oss ~oz ~parody ~pirate
resolvectl default-route dns-opennic false#make networkmanager not showing a popup that a new device is up
nmcli device set dns-opennic managed no
#just to make resolvectl take this interface. ::1 does not work, but ::2 should not interfere with something the next 0.2 seconds
ip -6 a a ::2/128 dev dns-opennic
sleep 0.2
ip -6 a d ::2/128 dev dns-opennic
unapplying this would simply be ip l d dns-opennic
I understand that for you a static configuration would be preferrable, but what I do as a workaround (not for opennic, but the following is an example that may work for you) running a script/service that does something like this:
Worth noting that the dummy interface workaround requires v256.
Activity
poettering commentedon Mar 29, 2017
I am not sure I grok what you are asking for. What precisely do you want resolved to do? Please write this down without references to microsoft, strongswan or anything like that as I have no idea what they precisely do.
akarl10 commentedon Mar 29, 2017
in short:
I need a way to statically set a domain server for a specific domain
with dnsmasq I do it with ex:
server=/intranet/10.17.1.1
this would query *.intranet using the nameserver 10.71.1.1
gfleury commentedon Apr 5, 2017
There is anything defined as configuration patterns? I would be glad to implement it.
tohojo commentedon May 10, 2017
I have a similar use case (IPSEC VPN that doesn't create a separate interface), but I want to add a new DNS server (for any domain). I have been trying to do this via the DBUS interface to systemd-resolved, but it won't let me when the link is managed by systemd-networkd.
Essentially, what I need is an interface to add and remove extra DNS servers at runtime, even when the link is managed by systemd-networkd.
Should I open a separate issue for this, or does it fall under this one?
antoinefaure commentedon Dec 6, 2018
Hello,
Any update on this ?
I'd be interested as well, I need to tell resolved to use a specific DNS server for a particular domain (*.example.com), but unless I missed something this is not possible yet.
rudiservo commentedon Dec 11, 2018
Guys, I know that SystemD has a lot of work to be done, I really appreciate it, but please try and make resolved behaviour has default has it possibly can be then work from there, in comparison do DnsMasq
Right know things could be solved by making some kind of behaviour bypass to resolve by order of dns entries, something that might be suggested in this issue that got a bit out of hand.
#5755
My point is, it is limiting developers and admins functionality over their machines ability to resolve local developments and dns server plus VPN's, right know we cant make things work has we need them to on resolved.
This issue could be solved by or by mimicking DnsMasq server=/intranet/10.17.1.1
or
ResolveBehaviour = topdown, best, default, or something...
Already did try the resolved.conf.d/example.conf solution but if it fails to resolve I have to restart the resolved service, so it's inconvenient and a nuisance and it should at least be locked to search for these domains on described dns servers or at least have that option
[Resolve]
DNS=172.17.0.1
Domains= ~example
Thanks in advance, and please just give us an extra option to be able to use resolved has we need it to.
yrro commentedon Dec 20, 2018
I think #11050 will help with this, but it won't be the complete solution. You'll still need a dummy interface that you can set your DNS server and routing domain on.
[-]split dns without dedicated vpn adapter[/-][+]support additional unicast DNS scopes, on top of the primary and the per-link ones[/+]yrro commentedon Oct 13, 2021
Quick example that works for me:
#20485 (comment)
tmccombs commentedon Mar 14, 2022
It looks like using a dummy interface no longer works, probably due to d301c52.
If I run:
then try to resovle example.com, either with
dig example.comorresolvectl query example.comthen I get an error that no name server can be reached.noraj commentedon Jun 29, 2024
I'm confused why I can't resolve OpenNIC operated TLDs with this configuration:
Does
~works only for domains and not TLDs? Or is it because OpenNIC TLDs are non-standard (not on ICANN) nor are special-use TLDs?1 remaining item
noraj commentedon Aug 21, 2024
Yes they are.
No, else I couldn't resolve any domain on Internet.
yrro commentedon Aug 21, 2024
Oh I see - the final value of
DNS=andServers=includes all values specified in the config file.akarl10 commentedon Aug 21, 2024
I understand that for you a static configuration would be preferrable, but what I do as a workaround (not for opennic, but the following is an example that may work for you) running a script/service that does something like this:
unapplying this would simply be
ip l d dns-opennicyrro commentedon Aug 29, 2024
Worth noting that the dummy interface workaround requires v256.
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add new "DNS Delegate" concepts (#34368)