LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2021, 09:09 AM   #1
dr-ing
LQ Newbie
 
Registered: Mar 2020
Posts: 19

Rep: Reputation: Disabled
Fedora 34: Local dns-server doesn't resolve


Hello,

I'm using Fedora34 with Gnome 40 and I'm having the problem that my local DNS server, which my system obtains via DHCP (on a WiFi NIC), is not working (even when set manually via the GUI).
I get the following output from the gnome-network-manager GUI (see Appendix 1), which seems to be correct. It mentions two DNS servers, 10.0.150.146, which is my local one, and 1.1.1.1, which I use as an alternative for Internet addresses.

But now it looks like my Fedora system only uses the second one (1.1.1.1) because I have normal internet access, but all my local addresses configured on my local DNS (10.0.150.146) are not resolved.

This is the output of 'systemd-resolve --stat':
Code:
Link 3 (wlp3s0)
    Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
         Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 1.1.1.1
       DNS Servers: 10.0.150.146 1.1.1.1
        DNS Domain: mydomain.local
my '/etc/resolv.conf' file:
Code:
...
nameserver 127.0.0.53
options edns0 trust-ad
search mydomain.local
and my 'nmconnection' file in '/etc/NetworkManager/system-connections':
Code:
...
[ipv4]
dns=10.0.150.146;1.1.1.1;
dns-search=mydomain.local;
ignore-auto-dns=true
method=auto
...
To verify that my dns server is working, I can successfully perform a dig with my local dns server explicitly mentioned:
Code:
; <<>> DiG 9.16.11-RedHat-9.16.11-5.fc34 <<>> example.mydomain.local @10.0.150.146
;; global options: +cmd
;; Got answer:
;; WARNING: .local is reserved for Multicast DNS
;; You are currently testing what happens when an mDNS query is leaked to DNS
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5535
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 68bf19cba8a6dc0d (echoed)
;; QUESTION SECTION:
;example.mydomain.local.		IN	A

;; ANSWER SECTION:
example.mydomain.local.	3600	IN	A	10.0.10.5

;; Query time: 13 msec
;; SERVER: 10.0.150.146#53(10.0.150.146)
;; WHEN: Wed Apr 28 16:03:11 CEST 2021
;; MSG SIZE  rcvd: 93
and without the @10.0.150.146:
Code:
; <<>> DiG 9.16.11-RedHat-9.16.11-5.fc34 <<>> example.mydomain.local
;; global options: +cmd
;; Got answer:
;; WARNING: .local is reserved for Multicast DNS
;; You are currently testing what happens when an mDNS query is leaked to DNS
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 18802
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;example.mydomain.local.		IN	A

;; AUTHORITY SECTION:
.			7173	IN	SOA	a.root-servers.net. nstld.verisign-grs.com. 2021042800 1800 900 604800 86400

;; Query time: 0 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Wed Apr 28 16:02:34 CEST 2021
;; MSG SIZE  rcvd: 122
Does anyone know why my local dns server is not being used even though it appears as a dns server?
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2021-04-28 15-50-32.png
Views:	68
Size:	42.6 KB
ID:	36252  
 
Old 04-29-2021, 02:33 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Quote:
and without the @10.0.150.146:
Code:

; <<>> DiG 9.16.11-RedHat-9.16.11-5.fc34 <<>> example.mydomain.local
;; global options: +cmd
;; Got answer:
;; WARNING: .local is reserved for Multicast DNS
;; You are currently testing what happens when an mDNS query is leaked to DNS
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 18802
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;example.mydomain.local. IN A

;; AUTHORITY SECTION:
. 7173 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2021042800 1800 900 604800 86400

;; Query time: 0 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Wed Apr 28 16:02:34 CEST 2021
;; MSG SIZE rcvd: 122

Does anyone know why my local dns server is not being used even though it appears as a dns server?
If you are not specify a nameserver using "@..." the dig utility uses the first nameserver defined in /etc/resolv.conf, as you can see above. If it gets an answer it stops resolving, else it uses the next one and so on.
In your situation dig gets an answer (NXDOMAIN) from 127.0.0.53 and it stops trying to resolve your domain further.

So, either make 127.0.0.53 authoritative for your domain, or use your distro's tools to define the correct nameserver(s) in /etc/resolv.conf


Regards
 
  


Reply

Tags
dns, fedora, gnome, network-manager



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dns client cannot resolve on dns server jtvillegas Linux - Software 3 03-12-2016 03:30 PM
Unable to resolve domain name with local DNS server Rohit_4739 Linux - Server 10 01-19-2011 01:01 PM
dns server not able to resolve local domain names mystika08 Linux - Networking 62 07-01-2009 05:23 AM
dns server not able to resolve local domain names mystika08 Linux - Newbie 3 03-19-2009 07:57 AM
DNS can't resolve gmail.com but can resolve everything else? TongueTied Linux - Networking 2 01-24-2006 03:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:44 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