delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <89c3ea2b0612201824o1a6e9fbaj38bcb646ff87f537@mail.gmail.com> |
Date: | Wed, 20 Dec 2006 21:24:34 -0500 |
From: | "andy wang" <ypwangreg AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: how to use DNS or libc/minires.c in cygwin |
Cc: | "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org> |
In-Reply-To: | <008b01c72480$2b8b45f0$8d0010ac@wirelessworld.airvananet.com> |
MIME-Version: | 1.0 |
References: | <001901c7246d$99a9b660$a501a8c0 AT CAM DOT ARTIMI DOT COM> <008b01c72480$2b8b45f0$8d0010ac AT wirelessworld DOT airvananet DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hi, All! I found another domain name to test and got the right answer. $ ./a.exe Minires: search "_sip._udp.yalin.tw" type 33 Minires: /etc/resolv.conf: OK Minires: resolv.conf nameserver 192.168.1.1 Minires: server "192.168.1.1" Minires: key SYSTEM\CurrentControlSet\Services\Tcpip\Parameters Minires: value SearchList, error 0 (Windows), size 1 Minires: getdomainname "" Minires: query "_sip._udp.yalin.tw" type 33 Minires: open sockfd 3: OK Minires: sendto: server 0101a8c0 sockfd 3 OK Minires: answer 188 from 0101a8c0. Error 0. Count 1. go in dump answer Host name from SRV record is sip.yalin.tw Port from SRV record is 5060 Which is the same as using dig on Linux [ypwang AT G-M ypwang]$ dig SRV _sip._udp.yalin.tw ; <<>> DiG 9.2.2 <<>> SRV _sip._udp.yalin.tw ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29705 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1 ;; QUESTION SECTION: ;_sip._udp.yalin.tw. IN SRV ;; ANSWER SECTION: _sip._udp.yalin.tw. 86400 IN SRV 0 0 5060 sip.yalin.tw. ;; AUTHORITY SECTION: yalin.tw. 86400 IN NS yalin.tw. yalin.tw. 86400 IN NS ns1.everydns.net. ;; ADDITIONAL SECTION: yalin.tw. 86400 IN A 140.113.131.105 ;; Query time: 3638 msec ;; SERVER: 202.99.16.1#53(202.99.16.1) ;; WHEN: Thu Dec 21 10:32:03 2006 ;; MSG SIZE rcvd: 128 It seems that the orginal site "_rvp._tcp.lucent.com" has no SRV record. Cheers, Andy -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |