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
咖啡主机怎么样?咖啡主机是一家国人主机销售商,成立于2016年8月,之前云服务器网已经多次分享过他家的云服务器产品了,商家主要销售香港、洛杉矶等地的VPS产品,Cera机房 三网直连去程 回程CUVIP优化 本产品并非原生地区本土IP,线路方面都有CN2直连国内,机器比较稳定。咖啡主机目前推出美国洛杉矶弹性轻量云主机仅13元/月起,高防云20G防御仅18元/月;香港弹性云服务器,香港HKBN CN...
LOCVPS怎么样?LOCVPS是一家成立于2011年的稳定老牌国人商家,目前提供中国香港、韩国、美国、日本、新加坡、德国、荷兰等区域VPS服务器,所有机房Ping延迟低,国内速度优秀,非常适合建站和远程办公,所有机房Ping延迟低,国内速度优秀,非常适合做站。XEN架构产品的特点是小带宽无限流量、不超售!KVM架构是目前比较流行的虚拟化技术,大带宽,生态发展比较全面!所有大家可以根据自己业务需求...
v5net当前对香港和美国机房的走优质BGP+CN2网络的云服务器进行7折终身优惠促销,每个客户进线使用优惠码一次,额外有不限使用次数的终身9折优惠一枚!V5.NET Server提供的都是高端网络线路的机器,特别优化接驳全世界骨干网络,适合远程办公、跨境贸易、网站建设等用途。 官方网站:https://v5.net/cloud.html 7折优惠码:new,仅限新客户,每人仅限使用一次 9...
opendns为你推荐
urlcssloadedios请务必阅读正文之后的免责条款部分output_buffering飞飞的官方网站是啥深圳市富满电子集团股份有限公司张女士苹果5xp如何关闭445端口Windows XP 怎么关闭445端口,我是电脑小白,求各位讲详细点photoshop技术什么是ps技术photoshop技术什么是ps技术重庆宽带测速重庆哪一种宽带网速最快
域名空间购买 怎样申请域名 联通c套餐 狗爹 Dedicated 68.168.16.150 Hello图床 云主机51web 2017年万圣节 免费个人空间申请 web服务器的架设 双11秒杀 域名接入 电信虚拟主机 免费cdn 如何注册阿里云邮箱 服务器硬件防火墙 google台湾 网页提速 西安服务器托管 更多