Damien
September 15, 2018, 10:30am
1
I am using Pihole for DNS and DHCP on my home network on a R-PI. I have a PXE server on another device (10.0.0.239) and wanting clients to boot to it when pressing F12.
I have configured a new file in /etc/dnsmasq.d as follows:
root@raspberrypi:/etc/dnsmasq.d# cat 10-tftp.conf
dhcp-option=66,"10.0.0.239"
dhcp-boot=pxelinux.0,10.0.0.239
tftp is configured and confirmed to be working on 10.0.0.239
pxelinux.0 file is in the root of tftp directory
I have done a 'tcpdump port 69' on te PXE server while trying to PXE boot a client and there are no connections.
The client simply gives a pxe-e32 tftp open timeout as below:
At a total loss as to why this isn't working.
Is any other dnsmasq configuration required on pihole? Or, do I need to configure dnsmasq on the PXE server?
Also, I want to confirm the /etc/dnsmasq.d directory is still used since FLTDNS is used.
Mcat12
September 15, 2018, 10:17pm
3
Since this is a dnsmasq problem, not Pi-hole, have you tried contacting the dnsmasq mailing list? Dnsmasq-discuss Info Page
FTLDNS just contains an embedded dnsmasq, which operates just like normal dnsmasq.
Damien
September 15, 2018, 11:26pm
4
Ok, I've managed to find the solution. I was originally using the answer provided in this post:
can this 02-pihole-dhcp.conf work?.
I add the line option 66 but not sure of sintax:
> ###############################################################################
> # DHCP SERVER CONFIG FILE AUTOMATICALLY POPULATED BY PI-HOLE WEB INTERFACE. #
> # ANY CHANGES MADE TO THIS FILE WILL BE LOST ON CHANGE #
> ###############################################################################
> dhcp-authoritative
> dhcp-range=192.168.1.100,192.168.1.249,24h
> dhcp-option=optio…
Which said to use this config file:
root@raspberrypi:/etc/dnsmasq.d# cat 10-tftp.conf
dhcp-option=66,“10.0.0.239”
dhcp-boot=pxelinux.0,10.0.0.239
However it obviously was not working.
Solution:
root@raspberrypi:/etc/dnsmasq.d# cat 10-tftp.conf
dhcp-boot=pxelinux.0,,10.0.0.239
10.0.0.239 is the PXE server.
For some reason, the double comma is not coming through on the post. Should be 2 commas between the 0 and 10, screen shot below.
Issue resolved, thanks.
i'll try to correct my post and see that really my post have double "," but it's not show, sorry for this.
Sometimes it's better a screen capture like you do.
Thanks for the aclaration.
system
Closed
October 8, 2018, 11:13am
8
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.