> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siderolabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Override NTP servers

> Override default NTP servers in Talos Linux.

Talos Linux uses `time.cloudflare.com` as the default NTP server for time synchronization.

You can override this default in two ways:

* Using kernel parameters
* Using cluster configuration patches

## Kernel parameters

Use kernel parameters when you need to override NTP before the machine configuration is loaded, for example, during a bare-metal ISO, PXE boot, or when a node cannot reach the default NTP server early in the boot process.

Kernel parameters can be used to configure initial network settings such as interfaces, routes, DNS, and NTP servers. For more details, see the [kernel documentation](../../talos/v1.11/reference/kernel).

The kernel parameter uses the following syntax:

```bash theme={null}
ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>:<dns0-ip>:<dns1-ip>:<ntp0-ip>
```

Each field corresponds to a specific network or time-synchronization setting and can be left empty if it is not being overridden.

For example, to override the default NTP server (`time.cloudflare.com`) with `172.235.60.8`, you can specify only the NTP field and leave the rest empty:

```bash theme={null}
ip=:::::::::172.235.60.8
```

You can then supply this `ip` value as a kernel parameter during boot to override the NTP server early in the startup process.

To do this first download the installation media baked with the `ip` value:

<Tabs>
  <Tab title="CLI">
    Download the installation media with the `ip` kernel parameter using the Omni CLI:

    ```bash theme={null}
    omnictl download iso --extra-kernel-args "ip=:::::::::172.235.60.8"
    ```
  </Tab>

  <Tab title="UI">
    Download the installation media with the `ip` kernel parameter using the Omni UI:

    1. In the Omni UI, select **Download Installation Media**.

    2. Choose the appropriate image for your machine.

    3. Enter the `ip` value in the **Additional Kernel Arguments** field.

           <img src="https://mintcdn.com/siderolabs-fe86397c/LMm-gfTmfxJljsOX/omni/cluster-management/images/override-ntp-server-additional-kernel-parameters.png?fit=max&auto=format&n=LMm-gfTmfxJljsOX&q=85&s=2069d31e37a93dd7a259f1d5dabfc7ef" alt="Additional Kernel Arguments" width="3024" height="1964" data-path="omni/cluster-management/images/override-ntp-server-additional-kernel-parameters.png" />

    4. Click **Download**.
  </Tab>
</Tabs>

Boot your machines using the installation media you just downloaded, then create your cluster with those machines.

Finally verify that the NTP server has been overridden by replacing `<NODE_IP>` with your node’s IP address and running:

```bash theme={null}
talosctl get timeservers -n <NODE_IP>
```

## Config patches

Use config patches to override NTP servers after boot on a running cluster.

For example, to replace the default NTP server with 172.235.60.8, apply the following patch to your cluster using the [cluster machine patch workflow](../omni-cluster-setup/create-a-patch-for-cluster-machines).

```yaml theme={null}
machine:
  time:
    servers:
      - 172.235.60.8
```

After the patch is applied, verify that the NTP server has been successfully overridden by replacing `<NODE_IP>` with the IP address of one of your nodes:

```bash theme={null}
talosctl get timeservers -n <NODE_IP>
```
