Usageopendns

opendns  时间:2021-05-20  阅读:()
Package'pingr'June22,2020TitleCheckifaRemoteComputerisUpVersion2.
0.
1DescriptionCheckifaremotecomputerisup.
Itcaneitherjustcallthesystempingcommand,orcheckaspeciedTCPport.
LicenseMIT+leLICENSELazyDatatrueURLhttps://github.
com/r-lib/pingr#readmeBugReportshttps://github.
com/r-lib/pingr/issuesSuggestscovr,testthatImportsprocessx,utilsRoxygenNote7.
1.
0.
9000EncodingUTF-8NeedsCompilationyesAuthorGáborCsárdi[aut,cre]MaintainerGáborCsárdiRepositoryCRANDate/Publication2020-06-2217:40:03UTCRtopicsdocumented:pingr-package2apple_captive_test2is_online3my_ip3nsl4ping5ping_port6Index812apple_captive_testpingr-packageCheckifthelocalorremotecomputerisupDescriptionCheckifaremotecomputerisup.
Itcaneitherjustcallthesystempingcommand,orcheckaspeciedTCPport.
Author(s)Maintainer:GáborCsárdiSeeAlsoUsefullinks:https://github.
com/r-lib/pingr#readmeReportbugsathttps://github.
com/r-lib/pingr/issuesapple_captive_testDownloadApple'scaptiveportaltestDescriptionIfthetestpage,returns"Success"thatmeansthatthecomputerisconnectedtotheInternet.
Usageapple_captive_test()DetailsNotethatthisfunctionwillfailifthecomputerisofine.
Useis_online()tocheckifthecomputerisonline.
Examplesapple_captive_test()is_online3is_onlineIsthecomputeronlineDescriptionCheckifthecomputerisonline.
Itdoesthreetries:RetrieveApple'sCaptivePortaltestpage,seeapple_captive_test().
Queriesmyip.
opendns.
comonOpenDNS,seemy_ip().
Retrievesicanhazip.
comviaHTTPS,seemy_ip().
Ifanyofthesearesuccessful,itreturnsTRUE.
Usageis_online(timeout=1)ArgumentstimeoutTimeoutforthequeries.
(Note:itiscurrentlynotusedfortheDNSquery.
)ValuePossiblevalues:TRUEYes,online.
FALSENo,notonline.
Examplesis_online()my_ipQuerythecomputer'spublicIPaddressDescriptionItcanuseaDNSquerytoopendns.
com,ifmethod=="dns",oranHTTPSquerytoicanhazip.
com,seehttps://github.
com/major/icanhaz.
TheDNSqueryismuchfaster,theHTTPSqueryissecure.
Usagemy_ip(method=c("dns","https"))4nslArgumentsmethodWhethertouseaDNSorHTTPSquery.
ValueComputer'spublicIPaddressasastring.
Examplesmy_ip()my_ip(method="https")nslDNSqueryDescriptionPerformaDNSqueryforadomain.
Itsupportscustomnameservers,andqueryingDNSrecordsofcertainclassandtype.
Usagensl(domain,server=NULL,type=1L,class=1L)ArgumentsdomainDomaintoquery.
serverCustomnameserverIPaddress,touse.
NotethatthismustbeanIPaddresscurrently.
E.
g.
8.
8.
8.
8isGoogle'sDNSserver.
typeRecordtypetoquery,anintegerscalar.
1LisanArecord,28LisanAAAArecord,etc.
Seee.
g.
https://en.
wikipedia.
org/wiki/List_of_DNS_record_typesfortherecordtypes.
classQueryclass.
Thisisusually1L,i.
e.
"Internet".
Seee.
g.
https://www.
iana.
org/assignments/dns-parameters/dns-parameters.
xhtml#dns-parameters-2forallDNSclasses.
ValueAlistoftwoentriescurrently,additionalentriesmightbeaddedlater:answer:adataframeofDNSrecords,withcolumns:name,class,type,ttl,data.
dataisalistcolumnandcontainstheIP(6)addressforAandAAAArecords,butitcontainsotherdata,e.
g.
hostnameforCNAME,forotherrecords.
Ifpingrcouldnotparsearecord(itonlyparsesthemostcommonrecordstypes:A,AAAA,NA,PTR,CNAME,TXT,MX,SOA),thenthedataoftherecordisincludedasarawvector.
flags:anamedlogicalvectorofagsaa,tc,rd,ra,ad,cd.
SeetheRFC(https://www.
ietf.
org/rfc/rfc1035.
txt)forthese.
OnWindowstheyareallsettoNAcurrently.
ping5Examplesnsl("r-project.
org")nsl("google.
com",type=28L)pingPingaremoteserver,toseeifitisaliveDescriptionThisistheclassicping,usingICMPpackages.
OnlythesystemadministratorcansendICMPpackages,sowecallouttothesystem'spingutility.
Usageping(destination,continuous=FALSE,verbose=continuous,count=3L,timeout=1)ArgumentsdestinationHostnameorIPaddress.
continuousLogical,whethertokeeppinginguntiltheuserinterrupts.
verboseWhethertoprintprogressonthescreenwhilepinging.
countNumberofpingstoperform.
timeoutTimeoutforapingresponse.
ValueVectorofresponsetimes.
NAmeansnoresponse,inmilliseconds.
CurrentlyNAsarealwaysattheendofthevector,andnotintheircorrectposition.
Examplesping("8.
8.
8.
8")ping("r-project.
org")6ping_portping_portCheckifaportofaserverisactive,measureresponsetimeDescriptionCheckifaportofaserverisactive,measureresponsetimeis_up()checksifawebserverisup.
Usageping_port(destination,port=80L,continuous=FALSE,verbose=continuous,count=3L,timeout=1)is_up(destination,port=80,timeout=0.
5,fail_on_dns_error=FALSE,check_online=TRUE)ArgumentsdestinationHostnameorIPaddress.
portPort.
continuousLogical,whethertokeeppinginguntiltheuserinterrupts.
verboseWhethertoprintprogressonthescreenwhilepinging.
countNumberofpingstoperform.
timeoutTimeout,inseconds.
Howlongtowaitforapingtosucceed.
fail_on_dns_errorIfTRUEthenis_up()failsiftheDNSresolutionfails.
OtherwiseitwillreturnFALSE.
check_onlineWhethertocheckrstifthecomputerisonline.
Otherwiseitispossiblethatthecomputerisbehindaproxy,thathijackstheHTTPconnectiontodestination.
ValueVectorofresponsetimes,inmilliseconds.
NAmeansnoresponsewithinthetimeout.
ping_port7Examplesping_port("r-project.
org")is_up("google.
com")is_up("google.
com",timeout=0.
01)Indexapple_captive_test,2apple_captive_test(),3is_online,3is_online(),2is_up(ping_port),6my_ip,3my_ip(),3nsl,4ping,5ping_port,6pingr(pingr-package),2pingr-package,28

陆零(¥25)云端专用的高性能、安全隔离的物理集群六折起

陆零网络是正规的IDC公司,我们采用优质硬件和网络,为客户提供高速、稳定的云计算服务。公司拥有一流的技术团队,提供7*24小时1对1售后服务,让您无后顾之忧。我们目前提供高防空间、云服务器、物理服务器,高防IP等众多产品,为您提供轻松上云、安全防护 为核心数据库、关键应用系统、高性能计算业务提供云端专用的高性能、安全隔离的物理集群。分钟级交付周期助你的企业获得实时的业务响应能力,助力核心业务飞速成...

GigsGigsCloud:$16/月KVM-1GB/30GB/1TB/1.6T高防/洛杉矶CN2 GIA+AS9929

GigsGigsCloud是一家成立于2015年老牌国外主机商,提供VPS主机和独立服务器租用,数据中心包括美国洛杉矶、中国香港、新加坡、马来西亚和日本等。商家VPS主机基于KVM架构,绝大部分系列产品中国访问速度不错,比如洛杉矶机房有CN2 GIA、AS9929及高防线路等。目前Los Angeles - SimpleCloud with Premium China DDOS Protectio...

HostHatch(15美元)大硬盘VPS,香港NVMe,美国、英国、荷兰、印度、挪威、澳大利亚

HostHatch在当地时间7月30日发布了一系列的促销套餐,涉及亚洲和欧美的多个地区机房,最低年付15美元起,一次买2年还能免费升级双倍资源。商家成立于2011年,提供基于KVM架构的VPS主机,数据中心包括中国香港、美国、英国、荷兰、印度、挪威、澳大利亚等国家的十几个地区机房。官方网站:https://hosthatch.com/NVMe VPS(香港/悉尼)1 CPU core (12.5%...

opendns为你推荐
万家增强收益债券型证券投资基金支持ipad《个人收入的分配过关检测》iexplore.exe应用程序错误iexplore.exe应用程序错误google中国地图求教谷歌中国地图~手机如何使用?google中国地图谷歌中国地图用的是什么投影,什么坐标系micromediamacromedia的中文名联通合约机iphone5想咨询一下联通iphone5合约机和裸机的区别?www.baidu.jp谁能推荐几个日本的资源网站、搜索引擎、音乐软件?fastreport2.5AMD Athlon 2.5+GHZ是什么意思?
虚拟主机提供商 怎样注册域名 移动服务器租用 yardvps 站群服务器 e蜗牛 php空间申请 空间论坛 域名和空间 免费全能主机 1美金 上海联通宽带测速 Updog 多线空间 卡巴斯基免费试用版 smtp虚拟服务器 lamp架构 摩尔庄园注册 金主 apnic 更多