|
为什么我ssh进入dnsmasq.conf,找不到 dhcp-option= 行,是要自己插入添加进去的吗?
修改vim /etc/dnsmasq.conf文件。
dhcp-range=set:OTHER,192.168.1.100,192.168.1.250
dhcp-option=tag:OTHER,3,192.168.1.254
dhcp-option=tag:OTHER,6,192.168.1.254
[root@OpenWrt:08:42 PM ~] # vi /etc/dnsmasq.conf
# Change the following lines if you want dnsmasq to serve SRV
# records.
# You may add multiple srv-host lines.
# The fields are <name>,<target>,<port>,<priority>,<weight>
# A SRV record sending LDAP for the example.com domain to
# ldapserver.example.com port 289
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389
# Two SRV records for LDAP, each with different priorities
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,2
# A SRV record indicating that there is no LDAP server for the domain
# example.com
#srv-host=_ldap._tcp.example.com
# The following line shows how to make dnsmasq serve an arbitrary PTR
# record. This is useful for DNS-SD.
# The fields are <name>,<target>
#ptr-record=_http._tcp.dns-sd-services,"New Employee Page._http._tcp.dns-sd-services"
# Change the following lines to enable dnsmasq to serve TXT records.
# These are used for things like SPF and zeroconf.
# The fields are <name>,<text>,<text>...
- /etc/dnsmasq.conf 1/38 2% |
|