Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Сети";
Текущий архив: 2002.11.21;
Скачать: [xml.tar.bz2];

Вниз

resolve dns address   Найти похожие ветки 

 
странно...   (2002-09-25 17:09) [0]

может ктото знает как урл типа www.micro$oft.ru преобразовать в ай пи адрес?


 
Ghost.   (2002-09-25 17:11) [1]

через DNS


 
странно...   (2002-09-25 17:44) [2]

как а не через что


 
Digitman   (2002-09-26 10:26) [3]

The Windows Sockets gethostbyname function gets host information corresponding to a hostname.

struct hostent FAR * gethostbyname (

const char FAR * name
);


Parameters

name

[out] A pointer to the null terminated name of the host.



Remarks

gethostbyname returns a pointer to a hostent structure. The contents of this structure correspond to the hostname name.
The pointer which is returned points to a structure which is allocated by Windows Sockets. The application must never attempt to modify this structure or to free any of its components. Furthermore, only one copy of this structure is allocated per thread, and so the application should copy any information which it needs before issuing any other Windows Sockets function calls.

gethostbyname does not resolve IP address strings passed to it. Such a request is treated exactly as if an unknown host name were passed. An application with an IP address string to resolve should use inet_addr to convert the string to an IP address, then gethostbyaddr to obtain the hostent structure.


 
DEMETRIUSSoftware   (2002-09-26 19:14) [4]

Если у тебя Delphi6 то покапайся в компонентах Indy
или зайди в пример Indy и посмотри там.
Папка по моему называеться DNSResolver



Страницы: 1 вся ветка

Форум: "Сети";
Текущий архив: 2002.11.21;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.013 c
14-69563
kingdom
2002-11-01 13:52
2002.11.21
Ищу человека! Shamsudin


1-69354
Monak
2002-11-06 20:51
2002.11.21
Буфер обмена


7-69589
XED
2002-09-20 12:45
2002.11.21
Как склеить 2 exe файла!


3-69166
Шурик Ш
2002-10-31 13:54
2002.11.21
Общая сумма по столбцу


4-69615
vidiv
2002-10-02 09:46
2002.11.21
Как сделать





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский