1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
@@ -7,7 +7,7 @@ # Listen on this specific port instead of the standard DNS port # (53). Setting this to zero completely disables DNS function, # leaving only DHCP and/or TFTP. -#port=5353 +port=0
# The following two options make you a better netizen, since they # tell dnsmasq to filter out queries which the public DNS cannot @@ -113,7 +113,9 @@ # specified interfaces (and the loopback) give the name of the # interface (eg eth0) here. # Repeat the line for more than one interface. -#interface= +interface=wlp3s0 +interface=virbr0 +interface=br0 # Or you can specify which interface _not_ to listen on #except-interface= # Or which to listen on by address (remember to include 127.0.0.1 if @@ -164,8 +166,9 @@ # a lease time. If you have more than one network, you will need to # repeat this for each network on which you want to supply DHCP # service. -#dhcp-range=192.168.0.50,192.168.0.150,12h - +dhcp-range=192.168.122.50,192.168.122.150,12h +dhcp-range=192.168.2.1,proxy +dhcp-range=10.42.0.50,10.42.0.240,12h # This is an example of a DHCP range where the netmask is given. This # is needed for networks we reach the dnsmasq DHCP server via a relay # agent. If you don't know what a DHCP relay agent is, you probably @@ -439,9 +442,9 @@ # Magic number - needed before anything else is recognised #dhcp-option-force=208,f1:00:74:7e # Configuration file name -#dhcp-option-force=209,configs/common +dhcp-option-force=209,archiso_pxe.cfg # Path prefix -#dhcp-option-force=210,/tftpboot/pxelinux/files/ +dhcp-option-force=210, # Reboot time. (Note 'i' to send 32-bit value) #dhcp-option-force=211,30i
@@ -449,7 +452,7 @@ # this if you want to boot machines over the network and you will need # a TFTP server; either dnsmasq's built-in TFTP server or an # external one. (See below for how to enable the TFTP server.) -#dhcp-boot=pxelinux.0 +dhcp-boot=/boot/syslinux/ipxe.pxe
# The same as above, but use custom tftp-server instead machine running dnsmasq #dhcp-boot=pxelinux,server.name,192.168.1.100 @@ -458,8 +461,8 @@ # filenames, the first loads iPXE, and the second tells iPXE what to # load. The dhcp-match sets the ipxe tag for requests from iPXE. #dhcp-boot=undionly.kpxe -#dhcp-match=set:ipxe,175 # iPXE sends a 175 option. -#dhcp-boot=tag:ipxe,http://boot.ipxe.org/demo/boot.php +dhcp-match=set:ipxe,175 # iPXE sends a 175 option. +dhcp-boot=tag:ipxe,/boot/syslinux/lpxelinux.0
# Encapsulated options for iPXE. All the options are # encapsulated within option 175 @@ -506,10 +509,10 @@
# Enable dnsmasq's built-in TFTP server -#enable-tftp +enable-tftp
# Set the root directory for files available via FTP. -#tftp-root=/var/ftpd +tftp-root=/tmp/pxe/archiso
# Do not abort if the tftp-root is unavailable #tftp-no-fail @@ -671,7 +674,7 @@ #log-queries
# Log lots of extra information about DHCP transactions. -#log-dhcp +log-dhcp
# Include another lot of configuration options. #conf-file=/etc/dnsmasq.more.conf
|