更新内网地址规划

This commit is contained in:
狐狸Nomad
2023-03-07 14:24:58 +08:00
parent 13976f0416
commit 33518cec15
6 changed files with 25 additions and 25 deletions
+6 -6
View File
@@ -540,8 +540,8 @@ iface ens18 inet static
address 172.16.1.2/24
gateway 172.16.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 172.16.1.3
dns-search fox.lab
dns-nameservers 172.16.1.2
dns-search fox.local
```
检查系统的 `hosts` ,执行以下命令:
@@ -553,7 +553,7 @@ cat /etc/hosts
## 示例输出
127.0.0.1 localhost
172.16.1.2 dns001.fox.lab dns001
172.16.1.2 dns001.fox.local dns001
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
@@ -571,9 +571,9 @@ sudo vim /etc/resolv.conf
在编辑器对话框中输入以下内容,注意命令中间的空格:
```bash
search fox.lab
nameserver 172.16.1.3
nameserver fc00::3
search fox.local
nameserver 172.16.1.2
nameserver fdac::2
nameserver 127.0.0.1
```