I also use VirtualBox with a NAT configuration, but never had this problem. Can you check with tcpdump (or wireshark) that VirtualBox sends the first DNS query out properly, and that it gets an answer?
Maybe pkgnet should retry one or two times if it does not get an answer the first time.
(wtf: I only pressed Preview when I added the "UPDATE: ..." part. I never pressed Submit, but I removed the "#preview" part from the URL to cancel submitting. Looks like OSDN did not what I had expected.)
Latest install should word better for you, as it retries DNS queries up to 2 times.
Reply To mateuszviste
Latest install should word better for you, as it retries DNS queries up to 2 times.
Installed today's pkgnet update now and returned the SvarDOS VM to NAT-ed network. Will see the results tomorrow.
Your change didn't make a difference. It just takes longer to show the same error message.
Maybe it helps, when you tell me how you configured your VM/vbox to use NAT.
I just selected NAT from the drop-down menu of the VM. This works for one day, but fails the next.
Using a natnetwork I was unable to get an IP all the time.
I did the same as you - selected "NAT" in the GUI drop-down, nothing else.
But now I see that my pkgnet is very old, it was 20210121 (I don't use VirtualBox on a daily basis). I have updated it now, so perhaps I will get the same problem as you tomorrow.
When using pkgnet for the first time at a day, I always get "ERROR: DNS resolution failed" on, e.g., "pkgnet pull foo".
I'm using SvarDOS in a NAT-ed VM in VirtualBox.
My current workaround is just to delete this file on boot.
This is the content of the problematic %TEMP%\W32DHCP.TMP today:
As you can see, already renew expired, but not rebind or lease.
Seems to be a problem in VirtualBox and/or Watt-32.
For testing a will switch my VM to a bridged network, so SvarDOS gets its IP address assigned by my Internet router.
UPDATE: With a bridged network, DHCP is not working. Could be a bug VirtualBox similar to https://www.virtualbox.org/ticket/20148 (I use AMD PCnet not Intel e1000 as couldn't get e1000 to work in DOS.)