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