Hot answers tagged

5 votes

Why does /etc/resolv.conf point at 127.0.0.53?

This is because you are using systemd-resolved service for Network Name Resolution. In that case you can use resolvectl status command. Go to your network for eg: wlp1s0. Check the current DNS server. ...
user avatar
4 votes

Where is that 1.1.1.1 NS coming from?

After reading the comment from @muru, went to check the /etc/systemd/resolved.conf file, that I missed... and [Resolve] DNS=1.0.0.1 1.1.1.1 #FallbackDNS= found the culprit! I probably set it long ago,...
user avatar
  • 602
4 votes

WSL - DNS not working when connected to VPN

I ran into this in the last few days and it was driving me nuts. The solutions floating around were all WAY too hackish for my tastes. I created a very simple wsl-resolv-handler.ps1 (see script block ...
user avatar
4 votes

How to configure an email-forwarding system, usable as "MX" record in DNS

Just setup MX in DNS properly (without the useless clutter) and verify with: dig example.com mx Then this can be set up with postfix: A) Create file /etc/postfix/virtual: @example.com example@gmail....
user avatar
4 votes

How to configure resolv.conf

resolvconf was/is a tool designed to allow updates to /etc/resolv.conf file from multiple sources (e.g. DHCP, static configuration by sysadmin, VPN clients, installation of a local DNS server...) in a ...
user avatar
  • 68.2k
3 votes
Accepted

How do I regenerate /etc/resolv.conf from /etc/systemd/resolved.conf?

The problem was DNSSEC. Adding this: - name: Fix DNS lineinfile: path: /etc/systemd/resolved.conf regex: '^DNSSEC=' line: 'DNSSEC=no' - name: Restart resolved service: name: ...
user avatar
  • 333
3 votes

How to allow systemd-resolved to listen to an interface other than loopback?

Exactly the desired configuration of listen-addresses is freely possible since systemd-resolved version 247 (commit 1f05101f and follow-ups) by setting DNSStubListenerExtra. Address, port, and ...
user avatar
  • 131
3 votes
Accepted

How can I see what DNS requests are being made by a website?

Found a great way to do this by using dnstop. It can be installed with: sudo apt-get install dnstop Then you need the network interface name for the device you want to listen to. You can see a list ...
user avatar
2 votes

dnsmasq dns nameserver priority parameters - strict-order

I too wanted to accomplish this. I have a router running dnsmasq and a PiHole. Raspberry Pi SD cards are prone to failure, so when DNS goes down, the internet is effectively down for everyone in my ...
user avatar
  • 121
2 votes

How to test DNS speed?

You can use this bash script: #/bin/bash DOMAIN=wikipedia.org; echo "Tests common resolvers and calculates average response times by testing each resolver 3 times." echo "**************...
user avatar
2 votes

Setting up TXT records in dnsmasq does not work

I would have preferred to send a comment, but my reputation does not allow me to do so. But, as your question is Has anybody succeeded?, I suppose an answer with my own experience is fine here. To be ...
user avatar
  • 145
2 votes
Accepted

systemd-resolved+VPN: 2nd DNS server ignored (L2TP)

You may be able to achieve split DNS (conditional forwarding) with the following configuration (assuming ppp0 is your VPN interface and enp6s0 your regular LAN): resolvectl dns ppp0 corp.ip.add.ress ...
user avatar
  • 1,401
2 votes

Change domain name DNS host record

No, there's no a single command – the domain is part of a zone, and someone "owns" the zone, and they're the ones operating their DNS server of choice. It you're the one running your own DNS ...
user avatar
2 votes
Accepted

Bash Scripting Output

You can try something like: #!/bin/bash while read line do nme=$(dig @1.2.3.4 -x "$line" +short) if [ "$(echo "$nme"|wc -c)" -gt 1 ] then echo "$nme $line&...
user avatar
  • 13.1k
2 votes

Pop_OS! 21.04 - DNS not working

Turns out it was a problem with my VPN messing with the symlink at resolv.conf and not properly fixing it after disconnecting. From this answer to DNS settings not working on lubuntu 17.10: Your DNS ...
user avatar
2 votes

DNS Resolution / Resolved not working on Fedora 35

Fixed it! It was a broken VPN setup, remember I mentioned the device got discharged while on Linux? A VPN connection was active at the time and it was doing DNS Leak protection so it had configured a ...
user avatar
  • 21
2 votes

Is there a way I can convert a Oracle linux Slave DNS to a Master DNS server after transfer?

Converting from slave to master would only take changing type slave to type master for each slave zone description if you already have zone files specified for each zone with file statement.
user avatar
  • 1,048
2 votes
Accepted

My first Configuration DNS doesn't work or respond on centos

mydomaine.fr isn't associated with an IP address in your config. You should add an A record that would associate it with the desired IP address. $TTL 1D mydomaine.fr. IN SOA ns1.mydomaine.fr. ...
user avatar
  • 924
2 votes

DNS Hostname resolv problem

Per man resolv.conf, the syntax of the nameserver ... line is: nameserver Name server IP address Internet address of a name server that the resolver should query,...
user avatar
  • 8,912
2 votes

How to configure resolv.conf

You could try to use systemd-resolved only: add the missing nameservers to /etc/systemd/resolved.conf remove resolvconf leave the symlink to /run/systemd/resolve/stub-resolv.conf in place. Check ...
user avatar
  • 2,274
2 votes
Accepted

How to avoid allowing ephemeral port range rule in nftables

Use stateful firewall rules. Connection state for stateful rules is handled by Netfilter's conntrack subsystem and can be used from nftables. The goal is to allow (select) outgoing packets, let them ...
user avatar
  • 25k
2 votes

Debian 11, the resolv.conf does not save nameserver settings permanently

Since all your DNS configuration information apparently comes from NetworkManager, the next step is to investigate the NetworkManager settings. First, use the nmcli c (c is the shorthand for "...
user avatar
  • 68.2k
2 votes

Impossible to create an email address from the postfix admin

The issue is "The s2itec.com domain is invalid and/or not resolvable via DNS". Do you understand what this means? In particular please note from your tutorial, Je pars du principe que vous ...
user avatar
  • 90.3k
1 vote

Server responses with IP Address instead of host name

If those GET actions really are responses from a server, then you need to look at how the server generates the reply. (There's no detail in your question that allows us to give you any advice on ...
user avatar
  • 90.3k
1 vote

How to make dnsmasq work on Alphine(docker)?

It seems that in debian the initialisation script is responsible for updating resolv.conf https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=tree;f=debian;h=7539dd72f8ea2d8d4b60d926ffa163956e3624a5;hb=...
user avatar
  • 484
1 vote

Free Up Port 53 on Ubuntu so costom DNS server can use it

How to stop systemd-resolved from using port 53 on Ubuntu You can find a nifty tutorial in the link above. Below I'll note what's in the tutorial for visibility. As root, edit the /etc/systemd/...
user avatar
  • 11
1 vote

Redirect DNS traffic via tunnel interface, all other traffic to use kernel routing table

Thanks to @A.B The commands I used were the following (Note I made the table's id the same as DNS protocol number [53]): ip route add table 53 0.0.0.0/0 dev vti01 ip rule add iif lo ipproto udp dport ...
user avatar
  • 294
1 vote
Accepted

How to set up an optional DNS service for my home network?

Configure your DHCP server to give out two addresses for the DNS server. The first one should be the IP address of your Raspberry Pi. The second should be the IP address of your ISP's nameserver (or ...
user avatar
  • 67.9k
1 vote

How to set up an optional DNS service for my home network?

The standard DNS server on *nix is usually done by BIND - https://en.wikipedia.org/wiki/BIND Here are a nice couple of articles describing the process in details: https://opensource.com/article/17/4/...
user avatar
  • 1,356
1 vote

Postfix Null Client Settings

How you setup listening and sending, is done in /etc/postfix/master.cf. To disable receiving, find a line similar to: <hostname>:smtp inet n - n - - smtpd -o smtpd_sasl_auth_enable=no -o ...
user avatar
  • 1,458

Only top scored, non community-wiki answers of a minimum length are eligible