Completed dns perf analyzer

This commit is contained in:
Alicia Sykes committed 2025-10-07 18:58:43 +01:00
1 parent e02602bcbd
commit edcc27f856
7 files changed
+233 -128

No files matched your search

@@ -267,7 +267,7 @@
for="ipv6-input"
use:tooltip={'Enter a valid IPv6 unicast address (not multicast) to calculate its solicited-node multicast address'}
>
<Icon name="globe-2" size="sm" />
<Icon name="globe" size="sm" />
IPv6 Unicast Address
</label>
<input
@@ -298,7 +298,7 @@
<div class="result-main">
<div class="result-item">
<div class="result-label">
<Icon name="globe-2" size="sm" />
<Icon name="globe" size="sm" />
Unicast Address
</div>
<div class="result-content">
@@ -447,7 +447,7 @@
{#if namingPattern.trim() && results.analysis.patternMatches < results.analysis.totalAddresses - results.analysis.missingPTRs.length}
<div class="action-item">
<div class="action-header">
<Icon name="edit-3" size="sm" />
<Icon name="edit" size="sm" />
<span>Fix Naming Pattern Violations</span>
</div>
<div class="action-description">
+27 -27
View File
@@ -253,33 +253,33 @@ export const iconMap: Record<string, string> = {
'dnssec-chain': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M144 160L144 224C144 232.8 151.2 240 160 240L480 240C488.8 240 496 232.8 496 224L496 160C496 151.2 488.8 144 480 144L160 144C151.2 144 144 151.2 144 160zM336 416L336 480C336 488.8 343.2 496 352 496L480 496C488.8 496 496 488.8 496 480L496 416C496 407.2 488.8 400 480 400L352 400C343.2 400 336 407.2 336 416z"/><path d="M480 144C488.8 144 496 151.2 496 160L496 224C496 232.8 488.8 240 480 240L160 240C151.2 240 144 232.8 144 224L144 160C144 151.2 151.2 144 160 144L480 144zM160 96C124.7 96 96 124.7 96 160L96 224C96 259.3 124.7 288 160 288L168 288L168 384C168 432.6 207.4 472 256 472L288 472L288 480C288 515.3 316.7 544 352 544L480 544C515.3 544 544 515.3 544 480L544 416C544 380.7 515.3 352 480 352L352 352C316.7 352 288 380.7 288 416L288 424L256 424C233.9 424 216 406.1 216 384L216 288L480 288C515.3 288 544 259.3 544 224L544 160C544 124.7 515.3 96 480 96L160 96zM480 400C488.8 400 496 407.2 496 416L496 480C496 488.8 488.8 496 480 496L352 496C343.2 496 336 488.8 336 480L336 416C336 407.2 343.2 400 352 400L480 400z"/></svg>`,
signature: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d=""/><path d="M144 192C144 165.5 165.5 144 192 144C218.5 144 240 165.5 240 192L240 199.9C240 225.6 238 251.3 233.9 276.7L123.5 314.5C87.9 326.7 64 360.1 64 397.7L64 474C64 512.6 95.3 544 134 544C158.6 544 181.4 531.1 194 510L209.9 483.6C239.5 434.2 261 380.3 273.5 324.1L275.3 316L275.9 313.1L352.7 286.8L329.4 351.9C326.8 359.3 327.9 367.4 332.4 373.8C336.3 379.3 342.3 382.9 348.9 383.8C354 375 360.5 367.1 368 360.4L368 336C368 296.6 385.8 261.4 413.8 237.9C412.7 235.4 411.1 233.1 409.1 231.1C402.6 224.5 393 222.3 384.2 225.2L284.7 259.3C286.9 239.6 288 219.7 288 199.8L288 191.9C288 138.9 245 95.9 192 95.9C139 95.9 96 139 96 192L96 232C96 245.3 106.7 256 120 256C133.3 256 144 245.3 144 232L144 192zM289.5 432C282.7 448.3 275.2 464.3 266.9 480L336 480L336 432L289.5 432zM139.1 359.9L222.4 331.4C210.7 376.2 192.6 419.1 168.8 458.9L152.9 485.3C148.9 491.9 141.8 496 134.1 496C122 496 112.1 486.2 112.1 474L112.1 397.7C112.1 380.6 123 365.4 139.2 359.9zM528 336.1L528 384L464 384L464 336.1C464 318.4 478.3 304.1 496 304.1C513.7 304.1 528 318.4 528 336.1zM384 432L384 528C384 554.5 405.5 576 432 576L560 576C586.5 576 608 554.5 608 528L608 432C608 411.1 594.6 393.3 576 386.7L576 336.1C576 291.9 540.2 256.1 496 256.1C451.8 256.1 416 291.9 416 336.1L416 386.7C397.4 393.3 384 411.1 384 432z"/></svg>`,
blacklist: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M120 576C133.3 576 144 565.3 144 552L144 544C144 487.2 181.1 438.9 232.4 422.2L302.6 496.4C307.1 501.2 313.4 503.9 320 503.9C326.6 503.9 332.9 501.2 337.4 496.4L407.6 422.2C458.9 438.9 496 487.2 496 544L496 552C496 565.3 506.7 576 520 576L120 576zM240 197.7C263.2 203.4 290.9 208 320 208C349.1 208 376.8 203.4 400 197.7L400 208C400 252.2 364.2 288 320 288C275.8 288 240 252.2 240 208L240 197.7zM384 512C384 529.7 398.3 544 416 544C433.7 544 448 529.7 448 512C448 494.3 433.7 480 416 480C398.3 480 384 494.3 384 512z"/><path d="M161.7 75.2L311.6 34.3C317.1 32.8 322.9 32.8 328.4 34.3L478.3 75.2C488.8 78.1 496 87.6 496 98.4C496 106.9 491.6 114.7 484.3 119L464 131.2L464 155.8C464 167.2 458 177.6 448 182.5L448 208C448 278.7 390.7 336 320 336C249.3 336 192 278.7 192 208L192 182.5C182 177.5 176 167.1 176 155.8L176 131.2L155.7 119C148.4 114.7 144 106.8 144 98.4C144 87.5 151.3 78 161.7 75.2zM320 208C290.9 208 263.2 203.4 240 197.7L240 208C240 252.2 275.8 288 320 288C364.2 288 400 252.2 400 208L400 197.7C376.8 203.4 349.1 208 320 208zM257.4 378.9L320 445.1L382.6 378.9C388.4 372.8 396.9 370.2 405.1 371.9C484.5 388.9 544.1 459.5 544.1 544L544.1 552C544.1 565.3 533.4 576 520.1 576C506.8 576 496.1 565.3 496.1 552L496.1 544C496.1 487.2 459 438.9 407.7 422.2L337.5 496.4C333 501.2 326.7 503.9 320.1 503.9C313.5 503.9 307.2 501.2 302.7 496.4L232.5 422.2C181.1 438.9 144 487.2 144 544L144 552C144 565.3 133.3 576 120 576C106.7 576 96 565.3 96 552L96 544C96 459.5 155.6 388.9 235 371.9C243.2 370.1 251.7 372.8 257.5 378.9zM448 512C448 529.7 433.7 544 416 544C398.3 544 384 529.7 384 512C384 494.3 398.3 480 416 480C433.7 480 448 494.3 448 512zM325.7 93.7C322.6 90.6 317.5 90.6 314.4 93.7L285.7 122.3C282.6 125.4 282.6 130.5 285.7 133.6L314.4 162.3C317.5 165.4 322.6 165.4 325.7 162.3L354.4 133.6C357.5 130.5 357.5 125.4 354.4 122.3L325.7 93.7z"/></svg>`,
'info-circle': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320zM256 312C256 298.7 266.7 288 280 288L328 288C341.3 288 352 298.7 352 312L352 400L360 400C373.3 400 384 410.7 384 424C384 437.3 373.3 448 360 448L280 448C266.7 448 256 437.3 256 424C256 410.7 266.7 400 280 400L304 400L304 336L280 336C266.7 336 256 325.3 256 312zM352 224C352 241.7 337.7 256 320 256C302.3 256 288 241.7 288 224C288 206.3 302.3 192 320 192C337.7 192 352 206.3 352 224z"/><path d="M320 112C434.9 112 528 205.1 528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM280 400C266.7 400 256 410.7 256 424C256 437.3 266.7 448 280 448L360 448C373.3 448 384 437.3 384 424C384 410.7 373.3 400 360 400L352 400L352 312C352 298.7 341.3 288 328 288L280 288C266.7 288 256 298.7 256 312C256 325.3 266.7 336 280 336L304 336L304 400L280 400zM320 256C337.7 256 352 241.7 352 224C352 206.3 337.7 192 320 192C302.3 192 288 206.3 288 224C288 241.7 302.3 256 320 256z"/></svg>`,
// '': ``,
// pie-chart
// help-circle
// balance-scale
// code
// test
// performance
// security
// globe-2
// users
// list-ordered
// tunnel
// user
// flag
// book-open
// shuffle
// template
// share
// list-checks
// clipboard-list
// edit-3
// mail-check
// eye
// star
// wifi
// play-circle
// formula
// default
// 'pie-chart': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112.4 336C112.4 442 198.4 528 304.4 528C329 528 352.4 523.4 373.9 515.1L257 373.9C246.3 361 240.4 344.7 240.4 328L240.4 154.9C165.8 181.3 112.4 252.4 112.4 336z"/><path d="M384.4 118L384.4 256L522.4 256C505 188.6 451.9 135.4 384.4 118zM240.4 328L240.4 154.9C165.8 181.3 112.4 252.4 112.4 336C112.4 442 198.4 528 304.4 528C329 528 352.4 523.4 373.9 515.1L257 373.9C246.3 361 240.4 344.7 240.4 328zM574.3 272.1C576.6 289.6 562.1 304 544.4 304L368.4 304C350.7 304 336.4 289.7 336.4 272L336.4 96C336.4 78.3 350.8 63.8 368.3 66.1C475.3 80.3 560.1 165.1 574.3 272.1zM288.4 130.7L288.4 328C288.4 333.6 290.4 339 293.9 343.3L426 502.7C437.7 516.8 435.2 538.1 419.1 546.8C385 565.4 345.9 576 304.4 576C171.9 576 64.4 468.5 64.4 336C64.4 220.5 145.9 124.1 254.6 101.2C272.7 97.4 288.4 112.2 288.4 130.7zM573.7 352C592.2 352 607 367.7 603.2 385.8C593 434.2 568.2 477.2 533.6 510C521.3 521.7 502 519.2 491.2 506.1L406.9 404.4C389.6 383.5 404.5 352 431.5 352L573.7 352z"/></svg>`,
// 'help-circle': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320zM240 272C240 227.8 275.8 192 320 192C364.2 192 400 227.8 400 272C400 319.2 364 339.2 344 346.5L344 350.3C344 363.6 333.3 374.3 320 374.3C306.7 374.3 296 363.6 296 350.3L296 342.2C296 321.7 310.8 307 326.1 302C332.5 299.9 339.3 296.5 344.3 291.7C348.6 287.5 352 281.7 352 272.1C352 254.4 337.7 240.1 320 240.1C302.3 240.1 288 254.4 288 272.1C288 285.4 277.3 296.1 264 296.1C250.7 296.1 240 285.4 240 272.1zM352 432C352 449.7 337.7 464 320 464C302.3 464 288 449.7 288 432C288 414.3 302.3 400 320 400C337.7 400 352 414.3 352 432z"/><path d="M528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320zM64 320C64 178.6 178.6 64 320 64C461.4 64 576 178.6 576 320C576 461.4 461.4 576 320 576C178.6 576 64 461.4 64 320zM320 240C302.3 240 288 254.3 288 272C288 285.3 277.3 296 264 296C250.7 296 240 285.3 240 272C240 227.8 275.8 192 320 192C364.2 192 400 227.8 400 272C400 319.2 364 339.2 344 346.5L344 350.3C344 363.6 333.3 374.3 320 374.3C306.7 374.3 296 363.6 296 350.3L296 342.2C296 321.7 310.8 307 326.1 302C332.5 299.9 339.3 296.5 344.3 291.7C348.6 287.5 352 281.7 352 272.1C352 254.4 337.7 240.1 320 240.1zM288 432C288 414.3 302.3 400 320 400C337.7 400 352 414.3 352 432C352 449.7 337.7 464 320 464C302.3 464 288 449.7 288 432z"/></svg>`,
// 'balance-scale': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d=""/><path d="M520 112L393.3 112C381 83.7 352.8 64 320 64C287.2 64 259 83.7 246.7 112L120 112C106.7 112 96 122.7 96 136C96 149.3 106.7 160 120 160L241.6 160C247.4 188.6 268.5 211.7 296 220.3L296 528L120 528C106.7 528 96 538.7 96 552C96 565.3 106.7 576 120 576L520 576C533.3 576 544 565.3 544 552C544 538.7 533.3 528 520 528L344 528L344 220.3C371.5 211.7 392.6 188.6 398.4 160L520 160C533.3 160 544 149.3 544 136C544 122.7 533.3 112 520 112zM512 259.8L584.4 384L439.6 384L512 259.8zM386 401.1C396.8 446 449.1 480 512 480C574.9 480 627.2 446 638 401.1C640.6 390.1 637 378.8 631.3 369L536.1 205.8C531.1 197.2 521.9 192 512 192C502.1 192 492.9 197.3 487.9 205.8L392.7 369.1C387 378.9 383.4 390.2 386 401.2zM54.4 384L126.8 259.8L199.2 384L54.3 384zM126.8 480C189.7 480 242 446 252.8 401.1C255.4 390.1 251.8 378.8 246.1 369L150.9 205.8C145.9 197.2 136.7 192 126.8 192C116.9 192 107.7 197.3 102.7 205.8L7.6 369.1C1.9 378.8-1.8 390.1 .9 401.1C11.7 446 64 480 126.8 480zM320 112C337.7 112 352 126.3 352 144C352 161.7 337.7 176 320 176C302.3 176 288 161.7 288 144C288 126.3 302.3 112 320 112z"/></svg>`,
// 'code': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d=""/><path d="M369.1 80.9C373 68.2 386.5 61.2 399.1 65.1C411.7 69 418.8 82.5 414.9 95.1L270.9 559.1C267 571.8 253.5 578.8 240.9 574.9C228.3 571 221.2 557.5 225.1 544.9L369.1 80.9zM177 199C186.4 208.4 186.4 223.6 177 232.9L90 319.9L177 406.9C186.4 416.3 186.4 431.5 177 440.8C167.6 450.1 152.4 450.2 143.1 440.8L39 337C29.6 327.6 29.6 312.4 39 303.1L143 199C152.4 189.6 167.6 189.6 176.9 199zM463 199C472.4 189.6 487.6 189.6 496.9 199L601 303C610.4 312.4 610.4 327.6 601 336.9L497 441C487.6 450.4 472.4 450.4 463.1 441C453.8 431.6 453.7 416.4 463.1 407.1L550.1 320.1L463.1 233.1C453.7 223.7 453.7 208.5 463.1 199.2z"/></svg>`,
// 'test': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 472.8C112 503.3 136.7 528 167.2 528C181.8 528 195.9 522.2 206.2 511.8L350 368L193.9 368L128.1 433.8C117.8 444.1 112 458.2 112 472.8z"/><path d="M393 71C383.6 61.6 368.4 61.6 359.1 71C349.8 80.4 349.7 95.6 359.1 104.9L374.1 119.9L94.3 399.7C74.9 419.1 64.1 445.3 64.1 472.7C64.1 529.7 110.3 575.9 167.3 575.9C194.7 575.9 220.9 565 240.3 545.7L520 265.9L535 281C544.4 290.4 559.6 290.4 568.9 281C578.2 271.6 578.3 256.4 568.9 247.1L425 103L393 71zM242 320L408.1 153.9L486.2 232L398.2 320L242.1 320zM194 368L350.1 368L206.3 511.8C195.9 522.2 181.9 528 167.3 528C136.8 528 112.1 503.3 112.1 472.8C112.1 458.2 117.9 444.1 128.3 433.8L193.9 368z"/></svg>`,
// 'performance': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M171.5 250.1L449.4 410.6C454.3 413.4 459.8 414.9 465.4 414.9L584.8 414.9C572.1 387.2 544.3 368 512 368L440 368C426.7 368 416 357.3 416 344C416 330.7 426.7 320 440 320L460 320L446.7 288L408 288C394.7 288 384 277.3 384 264C384 250.7 394.7 240 408 240L426.7 240L401.1 178.7L367.2 212.7C351.9 228 331.8 237.5 310.5 239.6L301.3 240C261.3 240 227.2 214.7 214 179.3L171.5 250.1z"/><path d="M216 496C229.3 496 240 506.7 240 520C240 533.3 229.3 544 216 544L56 544C42.7 544 32 533.3 32 520C32 506.7 42.7 496 56 496L216 496zM226.9 96C243 96 256 109 256 125.1L256 146.8C256 170.2 273.8 189.5 296.6 191.8L301.2 192C311.7 192 321.8 188.3 329.9 181.8L333.2 178.8L370.9 141.1C379.2 132.8 390.5 128.1 402.3 128.1C420.2 128.1 436.4 138.9 443.3 155.4L512 320C582.7 320 640 377.3 640 448L640 485.8C640 517.9 613.9 544 581.8 544L451 544L442.4 543.7C422.5 542.4 403.1 536.4 385.8 526.2L114.4 365.8C88.3 350.4 78.7 317.9 91.3 291.1L94.1 285.8L199.5 110.1C204.8 101.3 214.2 96 224.4 96L226.8 96zM135.3 310.5C132.4 315.3 134 321.6 138.9 324.5L410.3 484.9C422.6 492.2 436.7 496 451 496L581.8 496L583.9 495.8C587.9 495 591 491.8 591.8 487.9L592 485.8L592 462.9L465.3 462.9C451.3 462.9 437.5 459.2 425.3 452.2L146.7 291.4L135.2 310.6zM104 416C117.3 416 128 426.7 128 440C128 453.3 117.3 464 104 464L56 464C42.7 464 32 453.3 32 440C32 426.7 42.7 416 56 416L104 416zM367.2 212.7C351.9 228 331.8 237.5 310.5 239.6L301.3 240C261.3 240 227.2 214.7 214 179.3L171.5 250.1L449.4 410.5C454.3 413.3 459.8 414.8 465.4 414.8L584.8 414.8C572.1 387.2 544.3 368 512 368L440 368C426.7 368 416 357.3 416 344C416 330.7 426.7 320 440 320L460 320L446.7 288L408 288C394.7 288 384 277.3 384 264C384 250.7 394.7 240 408 240L426.7 240L401.1 178.7L367.2 212.7z"/></svg>`,
// 'security': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M143.8 312L296.1 312L296.1 514.3C209.6 465.7 164.7 385.9 143.8 312zM344 123.6L503 191C508.9 193.5 512.1 198.8 512 203.8C511.9 221.7 510.4 242.2 506.9 264.1L344 264L344 123.6z"/><path d="M137.1 191C131.2 193.5 128 198.8 128.1 203.8C128.2 221.7 129.7 242.2 133.2 264.1L296.1 264.1L296.1 123.7L137.1 191.1zM143.8 312C164.7 385.9 209.7 465.7 296.1 514.3L296.1 312L143.8 312zM344 312L344 514.4C430.5 465.8 475.4 386 496.3 312L344 312zM506.9 264C510.4 242.1 511.9 221.7 512 203.7C512 198.7 508.9 193.5 503 190.9L344 123.5L344 263.9L506.9 263.9zM333.4 66.9L521.8 146.8C543.8 156.1 560.2 177.8 560.1 204C559.6 303.2 518.8 484.7 346.5 567.2C329.8 575.2 310.4 575.2 293.7 567.2C121.3 484.7 80.5 303.2 80.1 204C80 177.8 96.4 156.1 118.4 146.8L306.7 66.9C310.9 65 315.4 64 320 64C324.6 64 329.2 65 333.4 66.9z"/></svg>`,
// 'users': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M168 544C181.3 544 192 533.3 192 520L192 504C192 446.6 238.6 400 296 400L344 400C401.4 400 448 446.6 448 504L448 520C448 533.3 458.7 544 472 544L168 544zM384 192C384 227.3 355.3 256 320 256C284.7 256 256 227.3 256 192C256 156.7 284.7 128 320 128C355.3 128 384 156.7 384 192z"/><path d="M320 256C355.3 256 384 227.3 384 192C384 156.7 355.3 128 320 128C284.7 128 256 156.7 256 192C256 227.3 284.7 256 320 256zM320 80C381.9 80 432 130.1 432 192C432 253.9 381.9 304 320 304C258.1 304 208 253.9 208 192C208 130.1 258.1 80 320 80zM296 400C238.6 400 192 446.6 192 504L192 520C192 533.3 181.3 544 168 544C154.7 544 144 533.3 144 520L144 504C144 420.1 212.1 352 296 352L344 352C427.9 352 496 420.1 496 504L496 520C496 533.3 485.3 544 472 544C458.7 544 448 533.3 448 520L448 504C448 446.6 401.4 400 344 400L296 400zM431.4 306.8C443.1 295.5 453 282.4 460.8 268C466.7 270.6 473.2 272 480 272C506.5 272 528 250.5 528 224C528 197.5 506.5 176 480 176L479.2 176C477.6 159.4 473.4 143.6 467.1 128.9C471.3 128.3 475.7 128 480 128C533 128 576 171 576 224C576 277 533 320 480 320C462.3 320 445.7 315.2 431.4 306.8zM160 128C164.4 128 168.7 128.3 172.9 128.9C166.6 143.6 162.4 159.5 160.8 176L160 176C133.5 176 112 197.5 112 224C112 250.5 133.5 272 160 272C166.8 272 173.3 270.6 179.2 268C187 282.4 196.9 295.5 208.6 306.8C194.4 315.2 177.8 320 160 320C107 320 64 277 64 224C64 171 107 128 160 128zM149.3 368C134.2 384.3 121.8 403 112.8 423.6C74.8 439.1 48 476.4 48 520C48 533.3 37.3 544 24 544C10.7 544 0 533.3 0 520C0 436.9 66.6 369.4 149.3 368zM527.2 423.6C518.2 403 505.7 384.2 490.7 368C573.4 369.4 640 436.9 640 520C640 533.3 629.3 544 616 544C602.7 544 592 533.3 592 520C592 476.4 565.2 439.1 527.2 423.6z"/></svg>`,
// 'list-ordered': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d=""/><path d="M64 136C64 149.3 74.7 160 88 160L112 160L112 240L88 240C74.7 240 64 250.7 64 264C64 277.3 74.7 288 88 288L184 288C197.3 288 208 277.3 208 264C208 250.7 197.3 240 184 240L160 240L160 136C160 122.7 149.3 112 136 112L88 112C74.7 112 64 122.8 64 136zM256 160C256 173.3 266.7 184 280 184L552 184C565.3 184 576 173.3 576 160C576 146.7 565.3 136 552 136L280 136C266.7 136 256 146.7 256 160zM256 320C256 333.3 266.7 344 280 344L552 344C565.3 344 576 333.3 576 320C576 306.7 565.3 296 552 296L280 296C266.7 296 256 306.7 256 320zM256 480C256 493.3 266.7 504 280 504L552 504C565.3 504 576 493.3 576 480C576 466.7 565.3 456 552 456L280 456C266.7 456 256 466.7 256 480zM134 352C119.7 352 105.8 356.6 94.4 365.2L73.6 380.8C63 388.8 60.8 403.8 68.8 414.4C76.8 425 91.8 427.2 102.4 419.2L123.2 403.6C126.3 401.3 130.1 400 134 400L138.9 400C146.1 400 152 405.9 152 413.1C152 417.3 150 421.2 146.6 423.7L76.1 475C68.5 480.5 64 489.3 64 498.7C64 514.9 77.1 528 93.3 528L184 528C197.3 528 208 517.3 208 504C208 490.7 197.3 480 184 480L150.8 480L174.8 462.5C190.6 451 200 432.6 200 413.1C200 379.4 172.6 352 138.9 352L134 352z"/></svg>`,
// 'tunnel': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M88 576C101.3 576 112 565.3 112 552L112 320C112 205.1 205.1 112 320 112C434.9 112 528 205.1 528 320L528 552C528 565.3 538.7 576 552 576L88 576zM175 535C165.6 544.4 165.6 559.6 175 568.9C184.4 578.2 199.6 578.3 208.9 568.9L265.9 511.9L374 511.9L431 568.9C440.4 578.3 455.6 578.3 464.9 568.9C474.2 559.5 474.3 544.3 464.9 535L428.4 498.5C449.9 484.2 464 459.7 464 432L464 272C464 227.8 428.2 192 384 192L256 192C211.8 192 176 227.8 176 272L176 432C176 459.7 190.1 484.2 211.5 498.5L175 535z"/><path d="M112 320C112 205.1 205.1 112 320 112C434.9 112 528 205.1 528 320L528 552C528 565.3 538.7 576 552 576C565.3 576 576 565.3 576 552L576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320L64 552C64 565.3 74.7 576 88 576C101.3 576 112 565.3 112 552L112 320zM416 272L416 320L224 320L224 272C224 254.3 238.3 240 256 240L384 240C401.7 240 416 254.3 416 272zM224 432L224 368L416 368L416 432C416 449.7 401.7 464 384 464L256 464C238.3 464 224 449.7 224 432zM256 192C211.8 192 176 227.8 176 272L176 432C176 459.7 190.1 484.2 211.5 498.5L175 535C165.6 544.4 165.6 559.6 175 568.9C184.4 578.2 199.6 578.3 208.9 568.9L265.9 511.9L374 511.9L431 568.9C440.4 578.3 455.6 578.3 464.9 568.9C474.2 559.5 474.3 544.3 464.9 535L428.4 498.5C449.9 484.2 464 459.7 464 432L464 272C464 227.8 428.2 192 384 192L256 192zM352 416C352 398.3 337.7 384 320 384C302.3 384 288 398.3 288 416C288 433.7 302.3 448 320 448C337.7 448 352 433.7 352 416z"/></svg>`,
// 'user': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M88 576C101.3 576 112 565.3 112 552L112 320C112 205.1 205.1 112 320 112C434.9 112 528 205.1 528 320L528 552C528 565.3 538.7 576 552 576L88 576zM175 535C165.6 544.4 165.6 559.6 175 568.9C184.4 578.2 199.6 578.3 208.9 568.9L265.9 511.9L374 511.9L431 568.9C440.4 578.3 455.6 578.3 464.9 568.9C474.2 559.5 474.3 544.3 464.9 535L428.4 498.5C449.9 484.2 464 459.7 464 432L464 272C464 227.8 428.2 192 384 192L256 192C211.8 192 176 227.8 176 272L176 432C176 459.7 190.1 484.2 211.5 498.5L175 535z"/><path d="M112 320C112 205.1 205.1 112 320 112C434.9 112 528 205.1 528 320L528 552C528 565.3 538.7 576 552 576C565.3 576 576 565.3 576 552L576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320L64 552C64 565.3 74.7 576 88 576C101.3 576 112 565.3 112 552L112 320zM416 272L416 320L224 320L224 272C224 254.3 238.3 240 256 240L384 240C401.7 240 416 254.3 416 272zM224 432L224 368L416 368L416 432C416 449.7 401.7 464 384 464L256 464C238.3 464 224 449.7 224 432zM256 192C211.8 192 176 227.8 176 272L176 432C176 459.7 190.1 484.2 211.5 498.5L175 535C165.6 544.4 165.6 559.6 175 568.9C184.4 578.2 199.6 578.3 208.9 568.9L265.9 511.9L374 511.9L431 568.9C440.4 578.3 455.6 578.3 464.9 568.9C474.2 559.5 474.3 544.3 464.9 535L428.4 498.5C449.9 484.2 464 459.7 464 432L464 272C464 227.8 428.2 192 384 192L256 192zM352 416C352 398.3 337.7 384 320 384C302.3 384 288 398.3 288 416C288 433.7 302.3 448 320 448C337.7 448 352 433.7 352 416z"/></svg>`,
// 'flag': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M144 165.5L240.6 141.3C267.6 134.6 296.1 137.7 321 150.1C375.9 177.5 439.7 179.8 496 156.9L496 398.7L471.6 407.8C437.9 420.4 400.4 418.5 368.2 402.4C320 378.3 264.9 372.3 212.6 385.3L144 402.5L144 165.5z"/><path d="M144 88C144 74.7 133.3 64 120 64C106.7 64 96 74.7 96 88L96 552C96 565.3 106.7 576 120 576C133.3 576 144 565.3 144 552L144 452L224.3 431.9C265.4 421.6 308.9 426.4 346.8 445.3C391 467.4 442.3 470.1 488.5 452.7L523.2 439.7C535.7 435 544 423.1 544 409.7L544 130C544 107 519.8 92 499.2 102.3L489.6 107.1C443.3 130.3 388.8 130.3 342.5 107.1C307.4 89.5 267.1 85.1 229 94.6L144 116L144 88zM144 165.5L240.6 141.3C267.6 134.6 296.1 137.7 321 150.1C375.9 177.5 439.7 179.8 496 156.9L496 398.7L471.6 407.8C437.9 420.4 400.4 418.5 368.2 402.4C320 378.3 264.9 372.3 212.6 385.3L144 402.5L144 165.5z"/></svg>`,
// 'book-open': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 144L112 496L147.2 496C198 496 248.4 505 296 522.4L296 178L276.4 169.8C235.5 152.8 191.6 144 147.2 144L112 144zM144 216C144 202.7 154.7 192 168 192L172.2 192C199.5 192 226.3 198.3 250.7 210.5C262.6 216.4 267.4 230.8 261.4 242.7C255.4 254.6 241.1 259.4 229.2 253.4C211.5 244.5 192 239.9 172.2 239.9L168 239.9C154.7 239.9 144 229.2 144 215.9zM144 312C144 298.7 154.7 288 168 288L172.2 288C199.5 288 226.3 294.3 250.7 306.5C262.6 312.4 267.4 326.8 261.4 338.7C255.4 350.6 241.1 355.4 229.2 349.4C211.5 340.5 192 335.9 172.2 335.9L168 335.9C154.7 335.9 144 325.2 144 311.9zM144 408C144 394.7 154.7 384 168 384L172.2 384C199.5 384 226.3 390.3 250.7 402.5C262.6 408.4 267.4 422.8 261.4 434.7C255.4 446.6 241.1 451.4 229.2 445.4C211.5 436.5 192 431.9 172.2 431.9L168 431.9C154.7 431.9 144 421.2 144 407.9zM344 178L344 522.4C391.6 505 442 496 492.8 496L528 496L528 144L492.8 144C448.4 144 404.5 152.8 363.6 169.8L344 178zM378.5 242.7C372.6 230.8 377.4 216.4 389.2 210.5C413.6 198.3 440.5 192 467.7 192L471.9 192C485.2 192 495.9 202.7 495.9 216C495.9 229.3 485.2 240 471.9 240L467.7 240C447.9 240 428.4 244.6 410.7 253.5C398.8 259.4 384.4 254.6 378.5 242.8zM378.5 338.7C372.6 326.8 377.4 312.4 389.2 306.5C413.6 294.3 440.5 288 467.7 288L471.9 288C485.2 288 495.9 298.7 495.9 312C495.9 325.3 485.2 336 471.9 336L467.7 336C447.9 336 428.4 340.6 410.7 349.5C398.8 355.4 384.4 350.6 378.5 338.8zM378.5 434.7C372.6 422.8 377.4 408.4 389.2 402.5C413.6 390.3 440.5 384 467.7 384L471.9 384C485.2 384 495.9 394.7 495.9 408C495.9 421.3 485.2 432 471.9 432L467.7 432C447.9 432 428.4 436.6 410.7 445.5C398.8 451.4 384.4 446.6 378.5 434.8z"/><path d="M276.4 169.8L296 178L296 522.4C248.4 505 198 496 147.2 496L112 496L112 144L147.2 144C191.6 144 235.5 152.8 276.4 169.8zM492.8 496C442 496 391.6 505 344 522.4L344 178L363.6 169.8C404.5 152.8 448.4 144 492.8 144L528 144L528 496L492.8 496zM320 136L294.9 125.5C248.1 106 197.9 96 147.2 96L112 96C85.5 96 64 117.5 64 144L64 496C64 522.5 85.5 544 112 544L147.2 544C197.9 544 248.1 554 294.9 573.5L307.7 578.8C315.6 582.1 324.4 582.1 332.3 578.8L345.1 573.5C391.9 554 442.1 544 492.8 544L528 544C554.5 544 576 522.5 576 496L576 144C576 117.5 554.5 96 528 96L492.8 96C442.1 96 391.9 106 345.1 125.5L320 136zM168 192C154.7 192 144 202.7 144 216C144 229.3 154.7 240 168 240L172.2 240C192 240 211.5 244.6 229.2 253.5C241.1 259.4 255.5 254.6 261.4 242.8C267.3 231 262.5 216.5 250.7 210.6C226.3 198.4 199.4 192.1 172.2 192.1L168 192.1zM467.8 192C440.5 192 413.7 198.3 389.3 210.5C377.4 216.4 372.6 230.8 378.6 242.7C384.6 254.6 398.9 259.4 410.8 253.4C428.5 244.5 448 239.9 467.8 239.9L472 239.9C485.3 239.9 496 229.2 496 215.9C496 202.6 485.3 191.9 472 191.9L467.8 191.9zM168 288C154.7 288 144 298.7 144 312C144 325.3 154.7 336 168 336L172.2 336C192 336 211.5 340.6 229.2 349.5C241.1 355.4 255.5 350.6 261.4 338.8C267.3 327 262.5 312.5 250.7 306.6C226.3 294.4 199.4 288.1 172.2 288.1L168 288.1zM467.8 288C440.5 288 413.7 294.3 389.3 306.5C377.4 312.4 372.6 326.8 378.6 338.7C384.6 350.6 398.9 355.4 410.8 349.4C428.5 340.5 448 335.9 467.8 335.9L472 335.9C485.3 335.9 496 325.2 496 311.9C496 298.6 485.3 287.9 472 287.9L467.8 287.9zM168 384C154.7 384 144 394.7 144 408C144 421.3 154.7 432 168 432L172.2 432C192 432 211.5 436.6 229.2 445.5C241.1 451.4 255.5 446.6 261.4 434.8C267.3 423 262.5 408.5 250.7 402.6C226.3 390.4 199.4 384.1 172.2 384.1L168 384.1zM467.8 384C440.5 384 413.7 390.3 389.3 402.5C377.4 408.4 372.6 422.8 378.6 434.7C384.6 446.6 398.9 451.4 410.8 445.4C428.5 436.5 448 431.9 467.8 431.9L472 431.9C485.3 431.9 496 421.2 496 407.9C496 394.6 485.3 383.9 472 383.9L467.8 383.9z"/></svg>`,
// 'shuffle': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d=""/><path d="M489 95L569 175C578.4 184.4 578.4 199.6 569 208.9L489 288.9C479.6 298.3 464.4 298.3 455.1 288.9C445.8 279.5 445.7 264.3 455.1 255L494.1 216L420 216C404.9 216 390.7 223.1 381.6 235.2L348 280L318 240L343.2 206.4C361.3 182.2 389.8 168 420 168L494.1 168L455.1 129C445.7 119.6 445.7 104.4 455.1 95.1C464.5 85.8 479.7 85.7 489 95.1zM258 400L232.8 433.6C214.7 457.8 186.2 472 156 472L88 472C74.7 472 64 461.3 64 448C64 434.7 74.7 424 88 424L156 424C171.1 424 185.3 416.9 194.4 404.8L228 360L258 400zM455 351C464.4 341.6 479.6 341.6 488.9 351L568.9 431C578.3 440.4 578.3 455.6 568.9 464.9L488.9 544.9C479.5 554.3 464.3 554.3 455 544.9C445.7 535.5 445.6 520.3 455 511L494 472L419.9 472C389.7 472 361.2 457.8 343.1 433.6L194.4 235.2C185.3 223.1 171.1 216 156 216L88 216C74.7 216 64 205.3 64 192C64 178.7 74.7 168 88 168L156 168C186.2 168 214.7 182.2 232.8 206.4L381.6 404.8C390.7 416.9 404.9 424 420 424L494.1 424L455.1 385C445.7 375.6 445.7 360.4 455.1 351.1z"/></svg>`,
// 'template': ``,
// 'share': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 320C112 346.5 133.5 368 160 368C186.5 368 208 346.5 208 320C208 293.5 186.5 272 160 272C133.5 272 112 293.5 112 320zM400 160C400 186.5 421.5 208 448 208C474.5 208 496 186.5 496 160C496 133.5 474.5 112 448 112C421.5 112 400 133.5 400 160zM400 480C400 506.5 421.5 528 448 528C474.5 528 496 506.5 496 480C496 453.5 474.5 432 448 432C421.5 432 400 453.5 400 480z"/><path d="M496 160C496 133.5 474.5 112 448 112C421.5 112 400 133.5 400 160C400 186.5 421.5 208 448 208C474.5 208 496 186.5 496 160zM544 160C544 213 501 256 448 256C420.6 256 395.9 244.5 378.4 226.1L252.9 295.8C254.9 303.5 256 311.6 256 320C256 328.4 254.9 336.5 252.9 344.2L378.4 413.9C395.9 395.5 420.6 384 448 384C501 384 544 427 544 480C544 533 501 576 448 576C395 576 352 533 352 480C352 471.7 353.1 463.5 355.1 455.8L229.6 386.1C212.1 404.5 187.4 416 160 416C107 416 64 373 64 320C64 267 107 224 160 224C187.4 224 212.1 235.5 229.6 253.9L355.1 184.2C353.1 176.5 352 168.4 352 160C352 107 395 64 448 64C501 64 544 107 544 160zM208 320C208 293.5 186.5 272 160 272C133.5 272 112 293.5 112 320C112 346.5 133.5 368 160 368C186.5 368 208 346.5 208 320zM448 528C474.5 528 496 506.5 496 480C496 453.5 474.5 432 448 432C421.5 432 400 453.5 400 480C400 506.5 421.5 528 448 528z"/></svg>`,
// 'list-checks': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d=""/><path d="M203.7 133.8C211.3 122.9 208.7 108 197.8 100.4C186.9 92.8 172 95.4 164.4 106.3L124.7 162.8L105 143C95.6 133.7 80.4 133.7 71 143C61.6 152.3 61.7 167.6 71 177L111 217C116 222 123 224.6 130.1 223.9C137.2 223.2 143.6 219.6 147.7 213.8L203.7 133.8zM203.7 293.8C211.3 282.9 208.7 268 197.8 260.4C186.9 252.8 172 255.4 164.4 266.3L124.7 322.8L105 303C95.6 293.6 80.4 293.6 71.1 303C61.8 312.4 61.7 327.6 71 337L111 377C116 382 123 384.6 130.1 383.9C137.2 383.2 143.6 379.6 147.7 373.8L203.7 293.8zM256 160C256 173.3 266.7 184 280 184L552 184C565.3 184 576 173.3 576 160C576 146.7 565.3 136 552 136L280 136C266.7 136 256 146.7 256 160zM256 320C256 333.3 266.7 344 280 344L552 344C565.3 344 576 333.3 576 320C576 306.7 565.3 296 552 296L280 296C266.7 296 256 306.7 256 320zM224 480C224 493.3 234.7 504 248 504L552 504C565.3 504 576 493.3 576 480C576 466.7 565.3 456 552 456L248 456C234.7 456 224 466.7 224 480zM160 480C160 462.3 145.7 448 128 448C110.3 448 96 462.3 96 480C96 497.7 110.3 512 128 512C145.7 512 160 497.7 160 480z"/></svg>`,
// 'clipboard-list': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d=""/><path d="M203.7 133.8C211.3 122.9 208.7 108 197.8 100.4C186.9 92.8 172 95.4 164.4 106.3L124.7 162.8L105 143C95.6 133.7 80.4 133.7 71 143C61.6 152.3 61.7 167.6 71 177L111 217C116 222 123 224.6 130.1 223.9C137.2 223.2 143.6 219.6 147.7 213.8L203.7 133.8zM203.7 293.8C211.3 282.9 208.7 268 197.8 260.4C186.9 252.8 172 255.4 164.4 266.3L124.7 322.8L105 303C95.6 293.6 80.4 293.6 71.1 303C61.8 312.4 61.7 327.6 71 337L111 377C116 382 123 384.6 130.1 383.9C137.2 383.2 143.6 379.6 147.7 373.8L203.7 293.8zM256 160C256 173.3 266.7 184 280 184L552 184C565.3 184 576 173.3 576 160C576 146.7 565.3 136 552 136L280 136C266.7 136 256 146.7 256 160zM256 320C256 333.3 266.7 344 280 344L552 344C565.3 344 576 333.3 576 320C576 306.7 565.3 296 552 296L280 296C266.7 296 256 306.7 256 320zM224 480C224 493.3 234.7 504 248 504L552 504C565.3 504 576 493.3 576 480C576 466.7 565.3 456 552 456L248 456C234.7 456 224 466.7 224 480zM160 480C160 462.3 145.7 448 128 448C110.3 448 96 462.3 96 480C96 497.7 110.3 512 128 512C145.7 512 160 497.7 160 480z"/></svg>`,
// 'edit-3': ``,
// 'mail-check': ``,
// 'eye': ``,
// 'star': ``,
// 'wifi': ``,
// 'play-circle': ``,
// 'formula': ``,
// 'default': ``,
};
+12 -6
View File
@@ -75,42 +75,48 @@ A slow DNS resolver can add hundreds of milliseconds to every page load, making
title: 'Public DNS Resolvers',
resolvers: [
{
name: 'Cloudflare (1.1.1.1)',
name: 'Cloudflare',
ip: '1.1.1.1',
description: 'Privacy-focused, claims to be fastest',
pros: ['Very fast', 'Strong privacy policy', 'No logging', 'Global anycast network'],
cons: ['Relatively new (2018)', 'Some ISPs may block it'],
bestFor: 'Privacy-conscious users wanting speed',
},
{
name: 'Google (8.8.8.8)',
name: 'Google',
ip: '8.8.8.8',
description: 'Most widely used public resolver',
pros: ['Excellent reliability', 'Fast response times', 'Good global coverage', 'Well-established'],
cons: ['Privacy concerns (Google)', 'Logs queries', 'May track usage'],
bestFor: 'Users prioritizing reliability over privacy',
},
{
name: 'Quad9 (9.9.9.9)',
name: 'Quad9',
ip: '9.9.9.9',
description: 'Security and privacy focused',
pros: ['Blocks malware domains', 'No logging', 'Privacy-focused', 'Threat intelligence'],
cons: ['Slightly slower than top competitors', 'Blocking may cause issues'],
bestFor: 'Security-conscious users',
},
{
name: 'OpenDNS (208.67.222.222)',
name: 'OpenDNS',
ip: '208.67.222.222',
description: 'Cisco-owned, customizable filtering',
pros: ['Content filtering options', 'Phishing protection', 'Reliable', 'Dashboard for monitoring'],
cons: ['Logs queries', 'Redirects NXDOMAIN', 'Can be slower'],
bestFor: 'Families wanting content filtering',
},
{
name: 'ControlD (76.76.2.0)',
name: 'ControlD',
ip: '76.76.2.0',
description: 'Modern resolver with extensive customization',
pros: ['Highly customizable', 'Multiple blocking lists', 'Fast', 'Detailed analytics'],
cons: ['Newer service', 'Some features require account', 'Less proven'],
bestFor: 'Advanced users wanting control',
},
{
name: 'AdGuard (94.140.14.14)',
name: 'AdGuard',
ip: '94.140.14.14',
description: 'Ad-blocking DNS service',
pros: ['Blocks ads and trackers', 'Privacy-focused', 'No logging', 'Multiple variants'],
cons: ['May break some sites', 'Can be slower', 'Aggressive blocking'],
@@ -43,6 +43,8 @@ const RESOLVERS = [
const DNS_TIMEOUT_MS = 5000;
const RECORD_TYPES = ['A', 'AAAA', 'MX', 'TXT', 'NS', 'CNAME', 'SOA'] as const;
const MAX_DOMAIN_LENGTH = 253;
const DOMAIN_PATTERN = /^([a-zA-Z0-9_]([a-zA-Z0-9_-]{0,61}[a-zA-Z0-9_])?\.)+[a-zA-Z]{2,}$/;
function withTimeout<T>(promise: Promise<T>, ms = DNS_TIMEOUT_MS): Promise<T> {
return Promise.race([
@@ -53,6 +55,11 @@ function withTimeout<T>(promise: Promise<T>, ms = DNS_TIMEOUT_MS): Promise<T> {
]);
}
function validateDomain(domain: string): boolean {
if (!domain || domain.length > MAX_DOMAIN_LENGTH) return false;
return DOMAIN_PATTERN.test(domain);
}
async function queryResolver(
domain: string,
recordType: string,
@@ -104,7 +111,12 @@ async function queryResolver(
export const POST: RequestHandler = async ({ request }) => {
try {
const body: DNSPerformanceRequest = await request.json();
let body: DNSPerformanceRequest;
try {
body = await request.json();
} catch {
throw error(400, 'Invalid JSON in request body');
}
const { domain, recordType = 'A' } = body;
if (!domain || typeof domain !== 'string' || !domain.trim()) {
@@ -113,6 +125,11 @@ export const POST: RequestHandler = async ({ request }) => {
const trimmedDomain = domain.trim().toLowerCase();
// Validate domain format
if (!validateDomain(trimmedDomain)) {
throw error(400, 'Invalid domain name format');
}
// Validate record type
if (!RECORD_TYPES.includes(recordType.toUpperCase() as any)) {
throw error(400, `Invalid record type. Supported types: ${RECORD_TYPES.join(', ')}`);
@@ -2,91 +2,150 @@
import { tooltip } from '$lib/actions/tooltip';
import Icon from '$lib/components/global/Icon.svelte';
import { dnsPerformanceContent } from '$lib/content/dns-performance';
import '../../../../styles/diagnostics-pages.scss';
import '$lib/../styles/diagnostics-pages.scss';
let domain = $state('');
let recordType = $state('A');
let loading = $state(false);
let results = $state<any>(null);
let error = $state<string | null>(null);
let selectedExampleIndex = $state<number | null>(null);
type ResolverResult = {
resolver: string;
resolverName: string;
success: boolean;
responseTime: number;
records?: string[];
error?: string;
};
const examples = [
type PerfStats = {
fastest: { resolver: string; time: number };
slowest: { resolver: string; time: number };
average: number;
median: number;
successRate: number;
};
type PerfResponse = {
domain: string;
recordType: string;
timestamp: string;
results: ResolverResult[];
statistics: PerfStats;
};
const API_ENDPOINT = '/api/internal/diagnostics/dns-performance';
const RECORD_TYPES = ['A', 'AAAA', 'MX', 'TXT', 'NS', 'CNAME', 'SOA'] as const;
const EXAMPLES = [
{ domain: 'google.com', type: 'A', description: 'Google.com A records' },
{ domain: 'cloudflare.com', type: 'AAAA', description: 'Cloudflare IPv6' },
{ domain: 'github.com', type: 'MX', description: 'GitHub mail servers' },
{ domain: 'example.com', type: 'NS', description: 'Example.com nameservers' },
];
] as const;
const recordTypes = ['A', 'AAAA', 'MX', 'TXT', 'NS', 'CNAME', 'SOA'];
const PERF_RANGES = [
{ max: 20, class: 'excellent', label: 'Excellent' },
{ max: 50, class: 'good', label: 'Good' },
{ max: 100, class: 'acceptable', label: 'Acceptable' },
{ max: 200, class: 'slow', label: 'Slow' },
{ max: Infinity, class: 'very-slow', label: 'Very Slow' },
] as const;
let domain = $state('');
let recordType = $state('A');
let loading = $state(false);
let results = $state<PerfResponse | null>(null);
let error = $state<string | null>(null);
let selectedExampleIndex = $state<number | null>(null);
let abortController = $state<AbortController | null>(null);
let requestId = $state(0);
const isInputValid = $derived.by(() => {
const trimmed = domain.trim();
if (!trimmed) return false;
const domainPattern = /^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
// Support underscores for _acme-challenge and similar
const domainPattern = /^([a-zA-Z0-9_]([a-zA-Z0-9_-]{0,61}[a-zA-Z0-9_])?\.)+[a-zA-Z]{2,}$/;
return domainPattern.test(trimmed);
});
const sortedResults = $derived.by(() => {
if (!results?.results) return [];
return [...results.results].sort((a: any, b: any) =>
return [...results.results].sort((a, b) =>
a.success && b.success ? a.responseTime - b.responseTime : a.success ? -1 : 1
);
});
function getPerformanceClass(time: number): string {
if (time < 20) return 'excellent';
if (time < 50) return 'good';
if (time < 100) return 'acceptable';
if (time < 200) return 'slow';
return 'very-slow';
}
const successCount = $derived(results?.results.filter((r) => r.success).length ?? 0);
const totalCount = $derived(results?.results.length ?? 0);
const formattedTimestamp = $derived(
results?.timestamp ? new Date(results.timestamp).toLocaleString() : ''
);
const totalRecords = $derived(
sortedResults.reduce((sum, r) => sum + (r.records?.length ?? 0), 0)
);
const fastestResolver = $derived(results?.statistics.fastest.resolver ?? '');
const performanceSpread = $derived(
results
? Math.round(
(results.statistics.slowest.time - results.statistics.fastest.time) * 100
) / 100
: 0
);
function getPerformanceLabel(time: number): string {
if (time < 20) return 'Excellent';
if (time < 50) return 'Good';
if (time < 100) return 'Acceptable';
if (time < 200) return 'Slow';
return 'Very Slow';
function getPerformance(time: number) {
const range = PERF_RANGES.find((r) => time < r.max)!;
return { class: range.class, label: range.label };
}
async function testPerformance() {
if (!isInputValid) return;
// Cancel previous request
abortController?.abort();
const controller = new AbortController();
abortController = controller;
const currentRequestId = ++requestId;
loading = true;
error = null;
results = null;
try {
const response = await fetch('/api/internal/diagnostics/dns-performance', {
const response = await fetch(API_ENDPOINT, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ domain: domain.trim(), recordType }),
signal: controller.signal,
});
// Ignore stale responses
if (currentRequestId !== requestId) return;
if (!response.ok) {
const data = await response.json();
throw new Error(data.message || 'Failed to test DNS performance');
let errorMsg = 'Failed to test DNS performance';
try {
const data = await response.json();
errorMsg = data.message || errorMsg;
} catch {
errorMsg = await response.text();
}
throw new Error(errorMsg);
}
results = await response.json();
} catch (err) {
if (currentRequestId !== requestId) return;
if (err instanceof Error && err.name === 'AbortError') return;
error = err instanceof Error ? err.message : 'An unexpected error occurred';
} finally {
loading = false;
if (currentRequestId === requestId) {
loading = false;
}
}
}
function loadExample(example: (typeof examples)[0], index: number) {
function loadExample(index: number) {
const example = EXAMPLES[index];
domain = example.domain;
recordType = example.type;
selectedExampleIndex = index;
testPerformance();
}
function clearExampleSelection() {
selectedExampleIndex = null;
}
</script>
<svelte:head>
@@ -115,11 +174,11 @@
<h4>Quick Examples</h4>
</summary>
<div class="examples-grid">
{#each examples as example, i (i)}
{#each EXAMPLES as example, i (i)}
<button
class="example-card"
class:selected={selectedExampleIndex === i}
onclick={() => loadExample(example, i)}
onclick={() => loadExample(i)}
use:tooltip={`Test ${example.domain} ${example.type} records`}
>
<h5>{example.description}</h5>
@@ -138,6 +197,7 @@
e.preventDefault();
testPerformance();
}}
aria-busy={loading}
>
<div class="form-group flex-grow">
<label for="domain">Domain Name</label>
@@ -150,17 +210,25 @@
}}
placeholder="e.g., google.com"
disabled={loading}
autocomplete="off"
inputmode="url"
aria-invalid={!!(domain && !isInputValid)}
/>
</div>
<div class="form-group">
<label for="recordType">Record Type</label>
<select id="recordType" bind:value={recordType} disabled={loading}>
{#each recordTypes as type (type)}
{#each RECORD_TYPES as type (type)}
<option value={type}>{type}</option>
{/each}
</select>
</div>
<button type="submit" disabled={loading || !isInputValid} class="primary submit-btn">
<button
type="submit"
disabled={loading || !isInputValid}
class="primary submit-btn"
aria-busy={loading}
>
{#if loading}
<Icon name="loader" size="sm" animate="spin" />
Testing...
@@ -184,7 +252,7 @@
{/if}
{#if loading}
<div class="card">
<div class="card" role="status" aria-live="polite">
<div class="card-content">
<div class="loading-state">
<Icon name="loader" size="lg" animate="spin" />
@@ -235,9 +303,7 @@
<div class="stat-content">
<span class="stat-label">Success Rate</span>
<span class="stat-value">{results.statistics.successRate}%</span>
<span class="stat-detail"
>{results.results.filter((r: any) => r.success).length}/{results.results.length}</span
>
<span class="stat-detail">{successCount}/{totalCount}</span>
</div>
</div>
</div>
@@ -245,16 +311,32 @@
<!-- Query Info -->
<div class="query-info">
<div class="info-item">
<span class="label">Domain:</span>
<span class="label">Domain</span>
<span class="value">{results.domain}</span>
</div>
<div class="info-item">
<span class="label">Record Type:</span>
<span class="label">Record Type</span>
<span class="value">{results.recordType}</span>
</div>
<div class="info-item">
<span class="label">Timestamp:</span>
<span class="value">{new Date(results.timestamp).toLocaleString()}</span>
<span class="label">Total Records</span>
<span class="value">{totalRecords}</span>
</div>
<div class="info-item">
<span class="label">Resolvers Tested</span>
<span class="value">{successCount} of {totalCount} successful</span>
</div>
<div class="info-item">
<span class="label">Performance Spread</span>
<span class="value">{performanceSpread}ms</span>
</div>
<div class="info-item">
<span class="label">Fastest</span>
<span class="value">{fastestResolver}</span>
</div>
<div class="info-item">
<span class="label">Tested</span>
<span class="value">{formattedTimestamp}</span>
</div>
</div>
@@ -263,16 +345,17 @@
<h3>Resolver Comparison</h3>
<div class="resolvers-list">
{#each sortedResults as result (result.resolver)}
{@const perf = result.success ? getPerformance(result.responseTime) : null}
<div class="resolver-card" class:failed={!result.success}>
<div class="resolver-header">
<div class="resolver-info">
<strong>{result.resolverName}</strong>
<span class="resolver-ip">{result.resolver}</span>
</div>
{#if result.success}
<div class="performance-badge {getPerformanceClass(result.responseTime)}">
{#if perf}
<div class="performance-badge {perf.class}">
<span class="time">{result.responseTime}ms</span>
<span class="label">{getPerformanceLabel(result.responseTime)}</span>
<span class="label">{perf.label}</span>
</div>
{:else}
<div class="error-badge">
@@ -282,7 +365,7 @@
{/if}
</div>
{#if result.success && result.records && result.records.length > 0}
{#if result.records?.length}
<details class="records-details">
<summary>
<Icon name="chevron-right" size="xs" />
@@ -350,7 +433,7 @@
{#each dnsPerformanceContent.sections.publicResolvers.resolvers as resolver (resolver.name)}
<div class="resolver-info-card">
<div class="resolver-info-header">
<strong>{resolver.name}</strong>
<h4>{resolver.name} (<a href={`https://${resolver.ip}`} target="_blank" rel="nofollow">{resolver.ip}</a>)</h4>
</div>
<p class="resolver-desc">{resolver.description}</p>
<div class="pros-cons">
@@ -376,9 +459,13 @@
{/each}
</ul>
</div>
</div>
<div class="best-for">
<strong>Best for:</strong> {resolver.bestFor}
<h5>
<Icon name="info-circle" size="xs" />
Best for
</h5>
<p>{resolver.bestFor}</p>
</div>
</div>
</div>
{/each}
@@ -394,10 +481,7 @@
<div class="tips-list">
{#each dnsPerformanceContent.sections.optimization.tips as tip (tip.tip)}
<div class="tip-item">
<h4>
<Icon name="lightbulb" size="xs" />
{tip.tip}
</h4>
<h4>{tip.tip}</h4>
<p>{tip.description}</p>
</div>
{/each}
@@ -462,28 +546,24 @@
.stat-card {
display: flex;
align-items: center;
gap: var(--spacing-md);
gap: var(--spacing-sm);
padding: var(--spacing-md);
background: var(--bg-secondary);
border-radius: var(--radius-md);
border-left: 3px solid var(--border-primary);
&.fastest {
border-left-color: var(--color-success);
background: linear-gradient(
135deg,
color-mix(in srgb, var(--color-success), transparent 95%),
color-mix(in srgb, var(--color-success), transparent 98%)
);
:global(.icon) { color: var(--color-success); }
}
&.slowest {
border-left-color: var(--color-warning);
background: linear-gradient(
135deg,
color-mix(in srgb, var(--color-warning), transparent 95%),
color-mix(in srgb, var(--color-warning), transparent 98%)
);
:global(.icon) { color: var(--color-warning); }
}
&.average {
:global(.icon) { color: var(--color-info); }
}
&.success {
:global(.icon) { color: var(--color-info); }
}
.stat-content {
@@ -514,16 +594,20 @@
.query-info {
display: flex;
gap: var(--spacing-lg);
gap: var(--spacing-sm);
padding: var(--spacing-md);
background: var(--bg-tertiary);
background: var(--bg-secondary);
border-radius: var(--radius-sm);
flex-wrap: wrap;
justify-content: space-evenly;
.info-item {
display: flex;
gap: var(--spacing-xs);
font-size: var(--font-size-sm);
background: var(--bg-tertiary);
padding: var(--spacing-xs) var(--spacing-sm);
border-radius: var(--radius-sm);
text-align: center;
.label {
color: var(--text-tertiary);
@@ -590,8 +674,7 @@
display: flex;
flex-direction: column;
align-items: center;
gap: var(--spacing-2xs);
padding: var(--spacing-sm);
padding: var(--spacing-xs) var(--spacing-sm);
border-radius: var(--radius-sm);
min-width: 90px;
@@ -647,7 +730,7 @@
}
.records-details {
margin-top: var(--spacing-md);
margin-top: var(--spacing-xs);
summary {
display: flex;
@@ -730,7 +813,6 @@
p {
color: var(--text-secondary);
line-height: 1.6;
margin-bottom: var(--spacing-md);
}
}
}
@@ -749,14 +831,17 @@
&.success {
border-left-color: var(--color-success);
.range-perf { color: var(--color-success); }
}
&.warning {
border-left-color: var(--color-warning);
.range-perf { color: var(--color-warning); }
}
&.error {
border-left-color: var(--color-error);
.range-perf { color: var(--color-error); }
}
.range-header {
@@ -774,7 +859,6 @@
.range-perf {
font-size: var(--font-size-sm);
font-weight: 600;
color: var(--text-secondary);
}
}
@@ -800,9 +884,13 @@
.resolver-info-header {
margin-bottom: var(--spacing-sm);
strong {
h4 {
font-size: var(--font-size-md);
color: var(--text-primary);
a {
color: var(--text-primary);
text-decoration: underline;
}
}
}
@@ -816,7 +904,6 @@
display: flex;
flex-direction: column;
gap: var(--spacing-md);
margin-bottom: var(--spacing-md);
h5 {
display: flex;
@@ -834,6 +921,9 @@
.cons :global(.icon) {
color: var(--color-error);
}
.best-for :global(.icon) {
color: var(--color-info);
}
ul {
margin: 0;
@@ -849,11 +939,8 @@
}
.best-for {
padding-top: var(--spacing-sm);
border-top: 1px solid var(--border-primary);
font-size: var(--font-size-sm);
color: var(--text-secondary);
strong {
color: var(--text-primary);
}
@@ -870,7 +957,6 @@
padding: var(--spacing-md);
background: var(--bg-primary);
border-radius: var(--radius-md);
border-left: 3px solid var(--color-info);
h4 {
display: flex;
@@ -879,10 +965,6 @@
margin: 0 0 var(--spacing-sm) 0;
color: var(--color-primary);
font-size: var(--font-size-md);
:global(.icon) {
color: var(--color-info);
}
}
p {
+1 -1
View File
@@ -7,7 +7,7 @@
/* Text colors */
--text-primary: #c9d1d9;
--text-secondary: #7d8590;
--text-secondary: #9098a4;
--text-tertiary: #6272a4;
/* Primary brand color */