Jump to content

Orange Pi Zero 2W DNS


Go to solution Solved by Werner,

Recommended Posts

Hello, I've issue with nameserver. My router DHCP DNS server point to the Pi which has IP 10.6.6.3.

But for unknown reason 1.0.0.1 keep added in the /etc/resolv.conf:

# This is /run/systemd/resolve/resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 1.0.0.1
nameserver 10.6.6.3
search .

 

I've tried to manually edit and remove it from /etc/resolv.conf but it will come back.

I'm using image from https://github.com/armbian/community/releases/download/24.8.0-trunk.495/Armbian_community_24.8.0-trunk.495_Orangepizero2w_bookworm_current_6.6.36_minimal.img.xz

 

10-dhcp-all-interfaces.yaml

# Added by Armbian
#
# Reference: https://netplan.readthedocs.io/en/stable/netplan-yaml/
#
# Let systemd-networkd manage all Ethernet devices on this system, but be configured by Netplan.

network:
  version: 2
  renderer: networkd
  ethernets:
    all-eth-interfaces:
      match:
        name: "e*"
      dhcp4: yes
      link-local: [ ipv4 ]

 

Is there anything I'm missing?

Edited by NixiElectra
Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

  • Solution
2 hours ago, NixiElectra said:

I've tried to manually edit and remove it from /etc/resolv.conf but it will come back.

 

2 hours ago, NixiElectra said:
# This is /run/systemd/resolve/resolv.conf managed by man:systemd-resolved(8).
# Do not edit.

 

Think about it :)

 

Spoiler

You need to adjust systemd-resolved in order to have your changes persistent

 

Link to comment
Share on other sites

On 8/8/2024 at 10:01 PM, Werner said:

Think about it :)

 

  Hide contents

You need to adjust systemd-resolved in order to have your changes persistent

 

I found out that there was a file that caused this /etc/systemd/resolved.conf.d/00-armbian-default-dns.conf. After removing that, the issue solved. Now only one nameserver exist in the resolv.conf. Cheers

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines