Fedora 33 - How to define Domain search in systemd-resolvd?
by ddenial from LinuxQuestions.org on (#5AVGS)
Hello All
I just installed the named server in Fedora 33. In its previous version, I would specify DOMAIN to be searched in /etc/sysconfig/network-scripts/ifcfg-enp3s0 file. But in Fedora 33 there is no such file. Also I would add +search option in ~/.digrc file. This made me search my local domain with only prefix.
Fedora 33 (DNS server IP 192.168.1.7):
Code:$ dig tst.kvmlab.lan
; <<>> DiG 9.11.24-RedHat-9.11.24-2.fc33 <<>> tst.kvmlab.lan
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22760
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;tst.kvmlab.lan. IN A
;; ANSWER SECTION:
tst.kvmlab.lan. 7051 IN A 192.168.122.90
;; Query time: 0 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Wed Nov 25 21:12:46 IST 2020
;; MSG SIZE rcvd: 59Code:$ dig tst
; <<>> DiG 9.11.24-RedHat-9.11.24-2.fc33 <<>> tst
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 61210
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;tst. IN A
;; Query time: 888 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Wed Nov 25 21:13:52 IST 2020
;; MSG SIZE rcvd: 32Code:$ resolvectl status
Global
LLMNR setting: resolve
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Fallback DNS Servers: 1.1.1.1
8.8.8.8
1.0.0.1
8.8.4.4
2606:4700:4700::1111
2001:4860:4860::8888
2606:4700:4700::1001
2001:4860:4860::8844
Link 2 (enp3s0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
DefaultRoute setting: yes
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Current DNS Server: 192.168.1.7
DNS Servers: 192.168.1.7
DNS Domain: ~.
Link 3 (virbr0)
Current Scopes: none
DefaultRoute setting: no
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Link 4 (virbr0-nic)
Current Scopes: none
DefaultRoute setting: no
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Where do I add DOMAIN search option in Fedora 33?
Thanks


I just installed the named server in Fedora 33. In its previous version, I would specify DOMAIN to be searched in /etc/sysconfig/network-scripts/ifcfg-enp3s0 file. But in Fedora 33 there is no such file. Also I would add +search option in ~/.digrc file. This made me search my local domain with only prefix.
Fedora 33 (DNS server IP 192.168.1.7):
Code:$ dig tst.kvmlab.lan
; <<>> DiG 9.11.24-RedHat-9.11.24-2.fc33 <<>> tst.kvmlab.lan
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22760
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;tst.kvmlab.lan. IN A
;; ANSWER SECTION:
tst.kvmlab.lan. 7051 IN A 192.168.122.90
;; Query time: 0 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Wed Nov 25 21:12:46 IST 2020
;; MSG SIZE rcvd: 59Code:$ dig tst
; <<>> DiG 9.11.24-RedHat-9.11.24-2.fc33 <<>> tst
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 61210
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;tst. IN A
;; Query time: 888 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Wed Nov 25 21:13:52 IST 2020
;; MSG SIZE rcvd: 32Code:$ resolvectl status
Global
LLMNR setting: resolve
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Fallback DNS Servers: 1.1.1.1
8.8.8.8
1.0.0.1
8.8.4.4
2606:4700:4700::1111
2001:4860:4860::8888
2606:4700:4700::1001
2001:4860:4860::8844
Link 2 (enp3s0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
DefaultRoute setting: yes
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Current DNS Server: 192.168.1.7
DNS Servers: 192.168.1.7
DNS Domain: ~.
Link 3 (virbr0)
Current Scopes: none
DefaultRoute setting: no
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Link 4 (virbr0-nic)
Current Scopes: none
DefaultRoute setting: no
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Where do I add DOMAIN search option in Fedora 33?
Thanks