# Custom DNS resolver on Debian 12

Add name server:

``` /etc/resolv.conf
nameserver xx.xx.xx.xx
```

Disable settings overwrite on system reboot:

``` /etc/dhcp/dhclient.conf
#       domain-name, domain-name-servers, domain-search, host-name,
#       dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
```

Alternatively:

``` /etc/NetworkManager/NetworkManager.conf
[main]
dns=none
```