fruworg.github.io/content/posts/dhcp-resolv.md
2023-09-25 21:36:25 +03:00

19 lines
563 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Принудительная запись в resolv.conf
description: При использовании DHCP
date: 2023-04-06T02:43:00+05:00
tags: [linux]
---
## Конфигурация клиента
Неприятно, когда конфиг не даёт поменять себя ручками, да?
В `/etc/dhcp/dhclient.conf` необходимо добавить строки перезаписи:
```sh
supersede domain-name-servers <dns-1>, <dns-n>;
supersede domain-name "<domain.local>";
```
```shell
systemctl restart networking
```