pypxe / PyPXE

Pure Python PXE (DHCP-(Proxy)/TFTP/HTTP/NBD) Server
MIT License
547 stars 125 forks source link

Missing DNS option in dhcp.py #77

Closed pbertera closed 9 years ago

pbertera commented 9 years ago

Hi,

seems that the DNS option has been forgotten to be implemented.

a line like:

response += self.tlvEncode(6, socket.inet_aton(self.dnsserver)) #DNS

Should be added in the craftOptions method

psychomario commented 9 years ago

This is a bug I was aware of and is fixed in #65, which I believe is due to be merged after #59

psychomario commented 9 years ago

Actually this is probably quite a large bug, so I will get it merged with #59. Thanks for catching this!