提交 48536b50 编写于 作者: M m0_60155232

Tue Sep 12 22:47:00 CST 2023 inscode

上级 1f9db4e7
......@@ -8,6 +8,7 @@
},
"dependencies": {
"axios": "^1.5.0",
"dns-packet": "^5.6.1",
"element-plus": "^2.3.12",
"guess": "^1.0.2",
"js-md5": "^0.7.3",
......
<template>
<button @click="parseHanle">解析</button>
</template>
<script setup>
import axios from "axios";
const dns = require("dns");
// import dns from 'dns'
// 域名解析处理器
async function parseHanle(){
console.log(dns);
async function parseHanle() {
dns.lookup("meibug.cn", (err, address, family) => {
if (err) {
console.log(err)
} else {
console.log(`IP address: ${address}`)
}
})
}
</script>
<style scoped>
</style>
\ No newline at end of file
<style scoped></style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册