On Fri, Jul 12, 2013 at 2:14 PM, Victor Sudakov <vas at mpeks.tomsk.su> wrote:> Gene Cumm wrote: >> pxelinux.0 since Syslinux-5.10 won't return the IP of a string like >> "192.0.2.1" (which is the source of the issue). > > Which means the correct syntax for the pxechn.c32 command line > should be like what? > > The example in doc/pxechn.txt is probably incorrect then?It's a bug. Either pxe_dns() should have returned the IP or I should be checking that it's an IP first. -- -Gene
Gene Cumm wrote:> >> pxelinux.0 since Syslinux-5.10 won't return the IP of a string like > >> "192.0.2.1" (which is the source of the issue). > > > > Which means the correct syntax for the pxechn.c32 command line > > should be like what? > > > > The example in doc/pxechn.txt is probably incorrect then? > > It's a bug. Either pxe_dns() should have returned the IP or I should > be checking that it's an IP first.Do you mean to say, it should work if I replace the TFTP server's IP address with its DNS name? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov at sibptus.tomsk.ru
On Jul 13, 2013 9:00 AM, "Victor Sudakov" <vas at mpeks.tomsk.su> wrote:> > Gene Cumm wrote: > > >> pxelinux.0 since Syslinux-5.10 won't return the IP of a string like > > >> "192.0.2.1" (which is the source of the issue). > > > > > > Which means the correct syntax for the pxechn.c32 command line > > > should be like what? > > > > > > The example in doc/pxechn.txt is probably incorrect then? > > > > It's a bug. Either pxe_dns() should have returned the IP or I should > > be checking that it's an IP first. > > Do you mean to say, it should work if I replace the TFTP server's IP > address with its DNS name?At this time, yes. However, I'd need to test to confirm. We had a quick discussion yesterday and the consensus was that pxe_dns() should handle it and I recommended that it attempt to convert it first before querying DNS. In previous versions, it'd query DNS, fail, then attempt the conversion. -- -Gene