Rev 2364 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2364 | Rev 2858 | ||
---|---|---|---|
Line 674... | Line 674... | ||
674 | ; query class = IN (internet IPv4 address) = 1 |
674 | ; query class = IN (internet IPv4 address) = 1 |
675 | ; Note that network byte order is big-endian. |
675 | ; Note that network byte order is big-endian. |
676 | mov eax, 0x01000100 |
676 | mov eax, 0x01000100 |
677 | stosd |
677 | stosd |
678 | ; 7. Get DNS server address. |
678 | ; 7. Get DNS server address. |
679 | mcall 76, 0x00000004 ; protocol IP=0, device number=0, function=get DNS address |
679 | mcall 76, API_IPv4 + 4 ; protocol IP=0, device number=0, function=get DNS address |
680 | cmp eax, -1 |
680 | cmp eax, -1 |
681 | je .ret.dnserr |
681 | je .ret.dnserr |
682 | mov esi, eax ; put server address to esi |
682 | mov esi, eax ; put server address to esi |
683 | ; 8. Open UDP socketnum to DNS server, port 53. |
683 | ; 8. Open UDP socketnum to DNS server, port 53. |
684 | ; 8a. Create new socketnum. |
684 | ; 8a. Create new socketnum. |