Advertisement
Guest User

Untitled

a guest
Apr 12th, 2023
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. So for example dig shows:
  2.  
  3. ```
  4. Z:\Backup> dig pa.example.com
  5.  
  6. ; <<>> DiG 9.16.8 <<>> pa.example.com
  7. ;; global options: +cmd
  8. ;; Got answer:
  9. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11731
  10. ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
  11.  
  12. ;; OPT PSEUDOSECTION:
  13. ; EDNS: version: 0, flags:; udp: 512
  14. ;; QUESTION SECTION:
  15. ;pa.example.com. IN A
  16.  
  17. ;; ANSWER SECTION:
  18. pa.example.com. 59 IN A 192.168.0.223
  19.  
  20. ;; Query time: 20 msec
  21. ;; SERVER: 8.8.8.8#53(8.8.8.8)
  22. ;; WHEN: Wed Apr 12 19:47:46 Pacific Daylight Time 2023
  23. ;; MSG SIZE rcvd: 70
  24. ```
  25.  
  26. (Which points to the correct local ip).
  27.  
  28. If i just go to 192.168.0.223 in chrome/curl/etc, it works fine, but if i do the same on pa.example.com i get:
  29.  
  30. ```
  31. Z:\Backup>curl -vvv http://pa.example.com
  32. * Trying 192.168.0.223:80...
  33. * Connected to pa.example.com (192.168.0.223) port 80 (#0)
  34. > GET / HTTP/1.1
  35. > Host: pa.example.com
  36. > User-Agent: curl/7.83.1
  37. > Accept: */*
  38. >
  39. * Mark bundle as not supporting multiuse
  40. < HTTP/1.1 302 Found
  41. < Content-Type: text/plain
  42. < Location: http://PurpleAir-f63d.lan/redirect
  43. < Pragma: no-cache
  44. < Cache-Control: no-cache
  45. < Content-Length: 0
  46. < Connection: close
  47. <
  48. * Closing connection 0
  49. ```
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement