The mdns permit service-type command configures the service type that can be recorded by an mDNS gateway.
The undo mdns permit id command cancels the configured service type that can be recorded by an mDNS gateway.
By default, an mDNS gateway can record all service types.
Parameter |
Description |
Value |
---|---|---|
service-type service-type |
Specifies a service type. |
The value can be any service type that service provider devices can provide. The value is a string of characters, including digits, case-insensitive letters, and special characters visible on the keyboard, such as underscores (_), periods (.), and hyphens (-), with the exception of question marks (?) and spaces. |
id id |
Specifies a service type ID. |
The value is an integer that ranges from 0 to 99. |
By default, an mDNS gateway records all service types on the network and generates a service list. Because a service list size is limited, some uncommonly used services occupy the list space, which may cause entries unable to be generated for commonly used services such as airplay and printer. To reduce the number of service entries in the service list, run the mdns permit service-type command. This command allows service entries to be generated for only the specified service type, reduces the number of service entries in the service list.
# Configure the service type that can be recorded by the mDNS gateway.
<HUAWEI> system-view [HUAWEI] mdns permit service-type _raop._tcp.local id 0 [HUAWEI] mdns permit service-type _airplay._tcp.local id 1 [HUAWEI] mdns permit service-type _printer._tcp.local id 2 [HUAWEI] mdns permit service-type _device-info._tcp.local id 3 [HUAWEI] mdns permit service-type _rfb._tcp.local id 4 [HUAWEI] mdns permit service-type _sftp-ssh._tcp.local id 5 [HUAWEI] mdns permit service-type _ssh._tcp.local id 6 [HUAWEI] mdns permit service-type _smb._tcp.local id 7 [HUAWEI] mdns permit service-type _afpovertcp._tcp.local id 8 [HUAWEI] mdns permit service-type _universal._sub._ipp._tcp.local id 9