Page MenuHomeVyOS Platform

dhcp-server: Allow configuration of a DNS server and domain name on the shared-network level
Closed, ResolvedPublicFEATURE REQUEST

Description

The DHCP servers "shared-network" level only makes sense if I can specify configuration items that can be inherited by individual subnets.

This is now possible for name-servers and the domain-name

cpo@LR1.wue3# show service
 dhcp-server {
     shared-network-name LAN {
         domain-name zzz.com
         name-server 5.5.5.5
         subnet 10.0.0.0/24 {
             default-router 1.1.1.1
             domain-name foo.com
             name-server 1.1.1.1
             range 0 {
                 start 10.0.0.19
                 stop 10.0.0.88
             }
         }
     }
 }

This generatesd the DHCPd config:

# Shared network configration(s)
shared-network LAN {
    option domain-name-servers 5.5.5.5;
    option domain-name "zzz.com";
    subnet 10.0.0.0 netmask 255.255.255.0 {
        option domain-name-servers 1.1.1.1;
        option routers 1.1.1.1;
        option domain-name "foo.com";
        default-lease-time 86400;
        max-lease-time 86400;
        range 10.0.0.19 10.0.0.88;
    }
    on commit {
        set shared-networkname = "LAN";
    }
}

Details

Difficulty level
Easy (less than an hour)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)

Event Timeline

c-po claimed this task.
c-po triaged this task as Wishlist priority.
c-po created this task.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
c-po changed Issue type from Unspecified (please specify) to Improvement (missing useful functionality).