Host services

dns add <name> <ip>

Add an A record to the server's DNS zone ('dns del <name>' removes it, 'dns list' prints the zone). Answered only while named runs.

Works on: ServerMode: shell

Example

SRV1# dns add www.lab 10.0.0.80
Run this command live

Don't just read it — type dns add <name> <ip> in a real network simulator in your browser and watch it take effect. No install, no account needed to start.

Open the lab

Frequently asked

What does the "dns add <name> <ip>" command do?

Add an A record to the server's DNS zone ('dns del <name>' removes it, 'dns list' prints the zone). Answered only while named runs.

Example of "dns add <name> <ip>"

SRV1# dns add www.lab 10.0.0.80

More Host services commands

← Back to the full command reference