On Sat, Jul 13, 2013 at 5:30 PM, Gene Cumm <gene.cumm at gmail.com> wrote:> On Sat, Jul 13, 2013 at 10:34 AM, Gene Cumm <gene.cumm at gmail.com> wrote: >> Digging more, loadfile("192.0.2.1::pxe.0", &file.data, &file.size), >> queries DNS, which sounds like it doesn't follow the same call path as >> a COM32 calling pxe_dns(). If the DNS won't resolve the IP, things >> won't load properly. pxechn.c32 sets sname in the intended packet to >> "192.0.2.1" which may be confusing something. >> >> More debugging needed. >> >> -- >> -Gene > > core/legacynet/dns_resolv.c is quite different and doesn't bother > testing quads first. > > Matt/HPA: should this be patched or somehow checked to see if it can > be factored away? I've got a crude patch that I can clean up. > > -- > -GeneAlso, com32/lib/syslinux.c:pxe_dns() and core/pxe/dnsresolv.c:dns_resolv() (and now possibly core/legacynet/dns_resolv.c:dns_resolv()) both attempt to parse a dotted quad (duplicating effort that could likely be refactored). -- -Gene
I have tried replacing the IP address with a DNS name like this: LABEL WDS1 Menu LABEL WDS1 com32 pxechn.c32 append ws150.sibptus.transneft.ru::boot\x86\wdsnbp.com -W -o 66.x=0a:0e:8d:96 It did not help. pxechn.c32 still does not seem to understand that ws150.sibptus.transneft.ru is a host: pxechn.c32: Attempting to load 'ws150.sibptus.transneft.ru::boot\x86\wdsnbp.com': 2:No such file or directory USAGE: bla bla Of course 'ws150.sibptus.transneft.ru' has a valid A record in the DNS. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov at sibptus.tomsk.ru
On Jul 14, 2013 10:02 PM, "Victor Sudakov" <vas at mpeks.tomsk.su> wrote:> > I have tried replacing the IP address with a DNS name like this: > > LABEL WDS1 > Menu LABEL WDS1 > com32 pxechn.c32 > append ws150.sibptus.transneft.ru::boot\x86\wdsnbp.com -W -o66.x=0a:0e:8d:96 Did you try without "-o 66..."? Any chance for a packet capture from a mirrored port or the dhcpd+tftpd-old+tftpd-new+dnsd?> It did not help. pxechn.c32 still does not seem to understand that > ws150.sibptus.transneft.ru is a host: > > pxechn.c32: Attempting to load 'ws150.sibptus.transneft.ru::boot\x86\wdsnbp.com': 2:No such file or directory> USAGE: bla bla > > Of course 'ws150.sibptus.transneft.ru' has a valid A record in the DNS.My suspicion is that it tries the old tftpd instead of the new tftpd. --Gene