AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-518847

Walf's questions

Martin Hope
Walf
Asked: 2020-09-11 02:44:20 +0800 CST

如何从 netplan 配置 /etc/resolv.conf 中的 ndots 选项?

  • 0

我有 netplan 管理一个简单的网桥,并在同一台服务器上使用 BIND 提供 DNS 服务,除了相对域解析之外,它都运行良好。

host -t A foo输出:

foo.example.com has address 192.168.0.3

但是host -t A bar.foo(它是 的别名foo)输出:

Host bar.foo not found: 3(NXDOMAIN)

即使ping bar.foo正确解析域别名并输出:

PING foo.example.com (192.168.0.3) 56(84) bytes of data.

我认为这可以通过添加指令ndots:2来控制,以便第二个查询被视为相对,但当然它不是一个直接可编辑的文件。从 netplan 传递此配置的正确方法是什么?或者还有其他可以指定的地方吗?如果可以避免,我不想制作常规文件。options/etc/resolv.conf/etc/resolv.conf

我在resolved.conf 手册页中没有发现任何有用的东西。

/etc/netplan/00-my-config.yaml:

network:
    ethernets:
        eno1:
            dhcp4: false
            dhcp6: false
    version: 2
    bridges:
        br0:
            interfaces:
                - eno1
            addresses:
                - 192.168.0.2/24
            gateway4: 192.168.0.1
            nameservers:
                addresses:
                    - 192.168.0.2
                    - 192.168.0.1
                search:
                    - example.com

/etc/resolv.conf:

# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must 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 127.0.0.53
options edns0
search example.com
networking dns systemd-resolved netplan 20.04
  • 1 个回答
  • 1048 Views
Martin Hope
Walf
Asked: 2016-10-27 17:23:32 +0800 CST

由于 debconf 无法更新 nginx

  • 5

我在 14.04.5 LTS。运行正常的 apt-get 升级时出现此错误:

Setting up nginx-common (1.10.1-3+trusty1) ...
dpkg: error processing package nginx-common (--configure):  
 subprocess installed post-installation script returned error exit status 1

我已经省略了由此引起的所有后续错误,“Package nginx-common is not configured yet.”等。

我按照这个答案中的过程来调试.postinst它,它永远不会超过第 3 行:. /usr/share/debconf/confmodule- 这就是返回1.

我已经尝试过这个解决方案,但没有帮助,debconf 绝对可以访问。而这些(错误仍然存​​在)。据我所知,我在任何包含的 conf 文件中都没有 ipv6 监听指令。

我不知道如何调试 debconf 以查看它失败的原因。有谁知道我接下来应该尝试什么?


编辑:新的更新,他们安装,但最后我得到这个错误:

Setting up nginx-full (1.10.1-3+trusty2) ...
initctl: invalid command: upgrade
Try `initctl --help' for more information.
invoke-rc.d: initscript nginx, action "upgrade" failed.

不确定我是否应该标记为已解决。

14.04
  • 3 个回答
  • 3268 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve